Skip to content

Commit

Permalink
Fix set_version
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Apr 27, 2023
1 parent f84921c commit c359148
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 27 deletions.
2 changes: 1 addition & 1 deletion app/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.8.20'
ext.kotlin_version = '1.8.21'
ext.multidex_version = '2.0.1'
repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion app/linux/debian/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: linwood-flow
Version: 1.0.0
Version: 0.1.0
Section: base
Priority: optional
Homepage: https://github.com/LinwoodDev/Flo
Expand Down
28 changes: 14 additions & 14 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ packages:
dependency: "direct dev"
description:
name: espresso
sha256: "3fee4b5bc850eea6d9b8c08cb8f5f7aaf06172f583623771a42c56aa31a75b02"
sha256: "1378a63ee1fecc3fc7c0ac22ba5d62df3783f5e8eacf7d0fb82898bee8430800"
url: "https://pub.dev"
source: hosted
version: "0.3.0"
version: "0.3.0+3"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -367,10 +367,10 @@ packages:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: c224ac897bed083dabf11f238dd11a239809b446740be0c2044608c50029ffdf
sha256: "2818f5233cf8fa5fc51f6d78ce0028feb4e7c18d0b6d40b57b91f366eea7e656"
url: "https://pub.dev"
source: hosted
version: "2.0.9"
version: "2.0.12"
flutter_secure_storage:
dependency: "direct main"
description:
Expand Down Expand Up @@ -683,10 +683,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: da97262be945a72270513700a92b39dd2f4a54dad55d061687e2e37a6390366a
sha256: "3e58242edc02624f2c712e3f8bea88e0e341c4ae1abd3a6ff661318a3aefd829"
url: "https://pub.dev"
source: hosted
version: "2.0.25"
version: "2.0.26"
path_provider_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -826,10 +826,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_android
sha256: "7fa90471a6875d26ad78c7e4a675874b2043874586891128dc5899662c97db46"
sha256: "5d7b3bd0400bdd0c03e59a3d3d5314651141a145b58196cd9018b12a2adc0c1b"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
shared_preferences_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -1111,10 +1111,10 @@ packages:
dependency: transitive
description:
name: url_launcher_android
sha256: a52628068d282d01a07cd86e6ba99e497aa45ce8c91159015b2416907d78e411
sha256: "40612cd31902fe46b5158693faa65781b1ca7adfb883d77fa6f0d6dcf0317d85"
url: "https://pub.dev"
source: hosted
version: "6.0.27"
version: "6.0.30"
url_launcher_ios:
dependency: transitive
description:
Expand All @@ -1127,10 +1127,10 @@ packages:
dependency: transitive
description:
name: url_launcher_linux
sha256: "206fb8334a700ef7754d6a9ed119e7349bc830448098f21a69bf1b4ed038cabc"
sha256: "207f4ddda99b95b4d4868320a352d374b0b7e05eefad95a4a26f57da413443f5"
url: "https://pub.dev"
source: hosted
version: "3.0.4"
version: "3.0.5"
url_launcher_macos:
dependency: transitive
description:
Expand Down Expand Up @@ -1159,10 +1159,10 @@ packages:
dependency: transitive
description:
name: url_launcher_windows
sha256: a83ba3607a507758669cfafb03f9de09bf6e6280c14d9b9cb18f013e406dcacd
sha256: "254708f17f7c20a9c8c471f67d86d76d4a3f9c1591aad1e15292008aceb82771"
url: "https://pub.dev"
source: hosted
version: "3.0.5"
version: "3.0.6"
vector_math:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ dev_dependencies:
sdk: flutter
freezed: ^2.3.2
json_serializable: ^6.6.1
espresso: ^0.3.0
espresso: ^0.3.0+3
dependency_overrides:
collection: 1.17.1
path: 1.8.3
Expand Down
10 changes: 0 additions & 10 deletions tools/set_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Future<void> main(List<String> args) async {

await updateAppImageVersion(version);
await updateDebianVersion(version);
await updateSnapcraftVersion(version);
if (results['changelog']) {
var changelogFile =
File('fastlane/metadata/android/en-US/changelogs/$newBuildNumber.txt');
Expand Down Expand Up @@ -83,15 +82,6 @@ Future<void> updateDebianVersion(String version) async {
print('Successfully updated debian version to $version');
}

Future<void> updateSnapcraftVersion(String version) async {
var file = File('app/snap/snapcraft.yaml');
var lines = await file.readAsLines();
lines[1] = 'version: $version';
lines.add('');
await file.writeAsString(lines.join('\r\n'));
print('Successfully updated snapcraft version to $version');
}

bool isPreRelease(String version) {
return version.contains('-');
}
Expand Down

0 comments on commit c359148

Please sign in to comment.