From 666941350e5ed4ec042f735a793d3219c68e226f Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 15 Apr 2023 14:28:00 -0400 Subject: [PATCH 1/3] APK name bugfix --- lib/providers/source_provider.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/providers/source_provider.dart b/lib/providers/source_provider.dart index 24449d4..da871cd 100644 --- a/lib/providers/source_provider.dart +++ b/lib/providers/source_provider.dart @@ -266,10 +266,12 @@ Map getDefaultValuesFromFormItems( .reduce((value, element) => [...value, ...element])); } -getApkUrlsFromUrls(List urls) => urls - .map((e) => - MapEntry(e.split('/').where((el) => el.trim().isNotEmpty).last, e)) - .toList(); +List> getApkUrlsFromUrls(List urls) => + urls.map((e) { + var segments = e.split('/').where((el) => el.trim().isNotEmpty); + var apkSegs = segments.where((s) => s.toLowerCase().endsWith('.apk')); + return MapEntry(apkSegs.isNotEmpty ? apkSegs.last : segments.last, e); + }).toList(); class AppSource { String? host; From 1090f15508da6951967eba441be1a4c7f6dc23d4 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 15 Apr 2023 14:34:14 -0400 Subject: [PATCH 2/3] Sourceforge bugfix --- lib/app_sources/sourceforge.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app_sources/sourceforge.dart b/lib/app_sources/sourceforge.dart index 11aec8e..88017dd 100644 --- a/lib/app_sources/sourceforge.dart +++ b/lib/app_sources/sourceforge.dart @@ -31,7 +31,7 @@ class SourceForge extends AppSource { getVersion(String url) { try { var tokens = url.split('/'); - return tokens[tokens.length - 3]; + return tokens[tokens.length - 2]; } catch (e) { return null; } From ad250c30e4ab3cb645693f406919bba610858744 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 15 Apr 2023 14:41:38 -0400 Subject: [PATCH 3/3] Increment version --- lib/main.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 9382420..32043e1 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.11.31'; +const String currentVersion = '0.11.32'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/pubspec.yaml b/pubspec.yaml index 1cf3391..59b8686 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.11.31+153 # When changing this, update the tag in main() accordingly +version: 0.11.32+154 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'