diff --git a/lib/app_sources/html.dart b/lib/app_sources/html.dart
index 7b69ade..47d6acd 100644
--- a/lib/app_sources/html.dart
+++ b/lib/app_sources/html.dart
@@ -111,8 +111,7 @@ class HTML extends AppSource {
.where((element) =>
Uri.parse(element).path.toLowerCase().endsWith('.apk'))
.toList();
- links.sort(
- (a, b) => compareAlphaNumeric(a.split('/').last, b.split('/').last));
+ links.sort((a, b) => compareAlphaNumeric(a, b));
if (additionalSettings['apkFilterRegEx'] != null) {
var reg = RegExp(additionalSettings['apkFilterRegEx']);
links = links.where((element) => reg.hasMatch(element)).toList();
@@ -121,12 +120,11 @@ class HTML extends AppSource {
throw NoReleasesError();
}
var rel = links.last;
- var apkName = rel.split('/').last;
- var version = apkName.substring(0, apkName.length - 4);
+ var version = rel.hashCode.toString();
List apkUrls =
[rel].map((e) => ensureAbsoluteUrl(e, uri)).toList();
- return APKDetails(
- version, getApkUrlsFromUrls(apkUrls), AppNames(uri.host, tr('app')));
+ return APKDetails(version, apkUrls.map((e) => MapEntry(e, e)).toList(),
+ AppNames(uri.host, tr('app')));
} else {
throw getObtainiumHttpError(res);
}
diff --git a/lib/main.dart b/lib/main.dart
index bc1ab9c..a46ca2d 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.13.11';
+const String currentVersion = '0.13.12';
const String currentReleaseTag =
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
diff --git a/pubspec.yaml b/pubspec.yaml
index 915f307..7e0c65b 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.13.11+175 # When changing this, update the tag in main() accordingly
+version: 0.13.12+176 # When changing this, update the tag in main() accordingly
environment:
sdk: '>=2.18.2 <3.0.0'