diff --git a/lib/app_sources/codeberg.dart b/lib/app_sources/codeberg.dart index e0335cd..1e38a4e 100644 --- a/lib/app_sources/codeberg.dart +++ b/lib/app_sources/codeberg.dart @@ -99,8 +99,8 @@ class Codeberg extends AppSource { if (releases[i]['draft'] == true) { // Draft releases not supported } - var nameToFilter = releases[i]['name'] as String; - if (nameToFilter.trim().isEmpty) { + var nameToFilter = releases[i]['name'] as String?; + if (nameToFilter == null || nameToFilter.trim().isEmpty) { // Some leave titles empty so tag is used nameToFilter = releases[i]['tag_name'] as String; } diff --git a/lib/app_sources/github.dart b/lib/app_sources/github.dart index 84d6599..f17adf9 100644 --- a/lib/app_sources/github.dart +++ b/lib/app_sources/github.dart @@ -141,8 +141,8 @@ class GitHub extends AppSource { if (!includePrereleases && releases[i]['prerelease'] == true) { continue; } - var nameToFilter = releases[i]['name'] as String; - if (nameToFilter.trim().isEmpty) { + var nameToFilter = releases[i]['name'] as String?; + if (nameToFilter == null || nameToFilter.trim().isEmpty) { // Some leave titles empty so tag is used nameToFilter = releases[i]['tag_name'] as String; } diff --git a/lib/main.dart b/lib/main.dart index b0656dd..68e8959 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.10.2'; +const String currentVersion = '0.10.3'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/pubspec.lock b/pubspec.lock index da6ebed..45b5d1c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,7 +28,7 @@ packages: name: args url: "https://pub.dartlang.org" source: hosted - version: "2.3.1" + version: "2.3.2" async: dependency: transitive description: @@ -321,7 +321,7 @@ packages: name: json_annotation url: "https://pub.dartlang.org" source: hosted - version: "4.7.0" + version: "4.8.0" lints: dependency: transitive description: @@ -739,7 +739,7 @@ packages: name: webview_flutter_android url: "https://pub.dartlang.org" source: hosted - version: "3.1.3" + version: "3.2.0" webview_flutter_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 597cc77..460fb15 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.10.2+108 # When changing this, update the tag in main() accordingly +version: 0.10.3+109 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'