Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Apr 22, 2024
1 parent ae7847f commit 4c493e7
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 35 deletions.
14 changes: 14 additions & 0 deletions cli/commands/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:args/command_runner.dart';
import 'package:path/path.dart';
import 'package:pub_semver/pub_semver.dart';
import 'package:pubspec/pubspec.dart';
import 'package:toml/toml.dart';

class VersionCommand extends Command {
@override
Expand Down Expand Up @@ -96,5 +97,18 @@ class VersionCommand extends Command {

await buildFile.writeAsString(content);
}

final cargoToml = File(join(projectDir, "native", "Cargo.toml"));

if (await cargoToml.exists()) {
final content =
TomlDocument.parse(await cargoToml.readAsString()).toMap();

content["package"]["version"] = newVersion.toString();

await cargoToml.writeAsString(
TomlDocument.fromMap(content).toString(),
);
}
}
}
3 changes: 0 additions & 3 deletions packages/metadata_god/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2023-10-07

### Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata_god/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/metadata_god/android/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(LibraryVersion "metadata_god-v0.5.2") # generated; do not edit
set(LibraryVersion "metadata_god-v0.5.3") # generated; do not edit

# Unlike the Windows & Linux CMakeLists.txt, this Android equivalent is just here
# to download the Android binaries into src/main/jniLibs/ and does not build anything.
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata_god/ios/metadata_god.podspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
release_tag_name = 'metadata_god-v0.5.2' # generated; do not edit
release_tag_name = 'metadata_god-v0.5.3' # generated; do not edit

# We cannot distribute the XCFramework alongside the library directly,
# so we have to fetch the correct version here.
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata_god/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(LibraryVersion "metadata_god-v0.5.2") # generated; do not edit
set(LibraryVersion "metadata_god-v0.5.3") # generated; do not edit

# The Flutter tooling requires that developers have CMake 3.10 or later
# installed. You should not increase this version, as doing so will cause
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata_god/macos/metadata_god.podspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
release_tag_name = 'metadata_god-v0.5.2' # generated; do not edit
release_tag_name = 'metadata_god-v0.5.3' # generated; do not edit

# We cannot distribute the XCFramework alongside the library directly,
# so we have to fetch the correct version here.
Expand Down
16 changes: 8 additions & 8 deletions packages/metadata_god/native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "metadata_god"
version = "0.5.2"
edition = "2021"
name = 'metadata_god'
version = '0.5.3'
edition = '2021'

[lib]
crate-type = ["staticlib", "cdylib"]
crate-type = ['staticlib', 'cdylib']

[build-dependencies]
flutter_rust_bridge_codegen = "1.82.*"
flutter_rust_bridge_codegen = '1.82.*'

[dependencies]
flutter_rust_bridge = "1.82.*"
anyhow = "1"
lofty = "0.19.*"
flutter_rust_bridge = '1.82.*'
anyhow = '1'
lofty = '0.19.*'
2 changes: 1 addition & 1 deletion packages/metadata_god/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(LibraryVersion "metadata_god-v0.5.2") # generated; do not edit
set(LibraryVersion "metadata_god-v0.5.3") # generated; do not edit

# The Flutter tooling requires that developers have a version of Visual Studio
# installed that includes CMake 3.14 or later. You should not increase this
Expand Down
3 changes: 0 additions & 3 deletions packages/smtc_windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
## 0.1.3

- **FIX**: prefix the tag name with project name while declaring tag var in build files.
- **FIX**: asset download.
- **FEAT**(metadata_god): upgrade lofty and uuid packages.
- **FEAT**: add smtc_windows library.

# Change Log

Expand Down
2 changes: 1 addition & 1 deletion packages/smtc_windows/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions packages/smtc_windows/native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[package]
name = "smtc_windows"
version = "0.0.0"
edition = "2021"
name = 'smtc_windows'
version = '0.1.3'
edition = '2021'

[lib]
name = "smtc_windows"
path = "src/lib.rs"
crate-type = ["staticlib", "cdylib"]
name = 'smtc_windows'
path = 'src/lib.rs'
crate-type = ['staticlib', 'cdylib']

[[bin]]
name = "smtc_windows_bin"
path = "src/main.rs"
name = 'smtc_windows_bin'
path = 'src/main.rs'

[build-dependencies]
flutter_rust_bridge_codegen = "1.82.*"
flutter_rust_bridge_codegen = '1.82.*'

[dependencies]
flutter_rust_bridge = "1.82.*"
anyhow = "1.0.*"
flutter_rust_bridge = '1.82.*'
anyhow = '1.0.*'

[dependencies.windows]
version = "0.56.*"
features = ["Media", "Media_Playback", "Foundation", "Storage_Streams"]
version = '0.56.*'
features = ['Media', 'Media_Playback', 'Foundation', 'Storage_Streams']
2 changes: 1 addition & 1 deletion packages/smtc_windows/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(LibraryVersion "smtc_windows-v0.1.2") # generated; do not edit
set(LibraryVersion "smtc_windows-v0.1.3") # generated; do not edit

# The Flutter tooling requires that developers have a version of Visual Studio
# installed that includes CMake 3.14 or later. You should not increase this
Expand Down
16 changes: 16 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.9.0"
petitparser:
dependency: transitive
description:
name: petitparser
sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
url: "https://pub.dev"
source: hosted
version: "6.0.2"
platform:
dependency: transitive
description:
Expand Down Expand Up @@ -305,6 +313,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.1"
toml:
dependency: "direct main"
description:
name: toml
sha256: "9968de24e45b632bf1a654fe1ac7b6fe5261c349243df83fd262397799c45a2d"
url: "https://pub.dev"
source: hosted
version: "0.15.0"
typed_data:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dependencies:
process_run: ^0.14.2
pub_semver: ^2.1.4
pubspec: ^2.3.0
toml: ^0.15.0

0 comments on commit 4c493e7

Please sign in to comment.