From c359148a62e8f251f24d7ecbba2de0815ef35cb9 Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Thu, 27 Apr 2023 06:39:36 +0200 Subject: [PATCH] Fix set_version --- app/android/build.gradle | 2 +- app/linux/debian/DEBIAN/control | 2 +- app/pubspec.lock | 28 ++++++++++++++-------------- app/pubspec.yaml | 2 +- tools/set_version.dart | 10 ---------- 5 files changed, 17 insertions(+), 27 deletions(-) diff --git a/app/android/build.gradle b/app/android/build.gradle index 81dbbb4c4f0..380bfb15f62 100644 --- a/app/android/build.gradle +++ b/app/android/build.gradle @@ -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() diff --git a/app/linux/debian/DEBIAN/control b/app/linux/debian/DEBIAN/control index 355e368b99f..259344a402c 100644 --- a/app/linux/debian/DEBIAN/control +++ b/app/linux/debian/DEBIAN/control @@ -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 diff --git a/app/pubspec.lock b/app/pubspec.lock index 20a9df0e261..af72a292285 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/app/pubspec.yaml b/app/pubspec.yaml index c60581501ab..06f794112c7 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -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 diff --git a/tools/set_version.dart b/tools/set_version.dart index 3b112ce8bac..7f6cc4ebec8 100644 --- a/tools/set_version.dart +++ b/tools/set_version.dart @@ -53,7 +53,6 @@ Future main(List 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'); @@ -83,15 +82,6 @@ Future updateDebianVersion(String version) async { print('Successfully updated debian version to $version'); } -Future 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('-'); }