From 5477b3f93694afad3dcf89f27ff3c51e1b46d205 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sun, 17 Dec 2023 14:54:54 -0500 Subject: [PATCH] Update packages, increment version, run dart fix --- lib/main.dart | 2 +- lib/providers/apps_provider.dart | 2 +- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 824818e..620f4bd 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,7 +19,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.14.37'; +const String currentVersion = '0.14.38'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/lib/providers/apps_provider.dart b/lib/providers/apps_provider.dart index e76c1fd..35fbfcc 100644 --- a/lib/providers/apps_provider.dart +++ b/lib/providers/apps_provider.dart @@ -1230,7 +1230,7 @@ class AppsProvider with ChangeNotifier { Future> import(String appsJSON) async { var decodedJSON = jsonDecode(appsJSON); - var newFormat = !(decodedJSON is List); + var newFormat = decodedJSON is! List; List importedApps = ((newFormat ? decodedJSON['apps'] : decodedJSON) as List) .map((e) => App.fromJson(e)) diff --git a/pubspec.lock b/pubspec.lock index 72e6244..a84bba6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -783,10 +783,10 @@ packages: dependency: transitive description: name: synchronized - sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60" + sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.0+1" term_glyph: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 79739f3..f4b095a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.14.37+231 # When changing this, update the tag in main() accordingly +version: 0.14.38+232 # When changing this, update the tag in main() accordingly environment: sdk: '>=3.0.0 <4.0.0'