Compare commits

...

3 Commits

Author SHA1 Message Date
b40be7569b Bugfix (#197) 2022-12-24 23:17:03 -05:00
a173be11eb Merge pull request #193 from ImranR98/dev
Track-only source bugfix +  better http errors
2022-12-23 23:53:08 -05:00
0c97b25d99 Track-only source bugfix + better http errors
+ increment version
2022-12-23 23:52:32 -05:00
12 changed files with 19 additions and 14 deletions

View File

@ -46,7 +46,7 @@ class APKMirror extends AppSource {
}
return APKDetails(version, [], getAppNames(standardUrl));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}

View File

@ -54,7 +54,7 @@ class FDroid extends AppSource {
return APKDetails(latestVersion, apkUrls,
AppNames(name, Uri.parse(standardUrl).pathSegments.last));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}

View File

@ -80,7 +80,7 @@ class FDroidRepo extends AppSource {
.toList();
return APKDetails(latestVersion, apkUrls, AppNames(authorName, appName));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}
}

View File

@ -59,7 +59,7 @@ class GitLab extends AppSource {
}
return APKDetails(version, apkUrls, GitHub().getAppNames(standardUrl));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}
}

View File

@ -43,7 +43,7 @@ class Mullvad extends AppSource {
['https://mullvad.net/download/app/apk/latest'],
AppNames(name, 'Mullvad-VPN'));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}
}

View File

@ -33,7 +33,7 @@ class Signal extends AppSource {
}
return APKDetails(version, apkUrls, AppNames(name, 'Signal'));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}
}

View File

@ -57,7 +57,7 @@ class SourceForge extends AppSource {
AppNames(
name, standardUrl.substring(standardUrl.lastIndexOf('/') + 1)));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}
}

View File

@ -54,7 +54,7 @@ class SteamMobile extends AppSource {
var apkUrls = [links[0]];
return APKDetails(version, apkUrls, AppNames(name, apks[apkNamePrefix]!));
} else {
throw NoReleasesError();
throw getObtainiumHttpError(res);
}
}
}

View File

@ -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.9.6';
const String currentVersion = '0.9.8';
const String currentReleaseTag =
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES

View File

@ -338,7 +338,9 @@ class _ImportExportPageState extends State<ImportExportPage> {
? null
: () {
() async {
var values = await showDialog(
var values = await showDialog<
Map<String,
dynamic>?>(
context: context,
builder:
(BuildContext ctx) {
@ -365,7 +367,10 @@ class _ImportExportPageState extends State<ImportExportPage> {
var urlsWithDescriptions =
await source
.getUrlsWithDescriptions(
values);
values.values
.map((e) =>
e.toString())
.toList());
var selectedUrls =
await showDialog<
List<String>?>(

View File

@ -331,13 +331,13 @@ class SourceProvider {
{App? currentApp,
bool trackOnlyOverride = false,
noVersionDetectionOverride = false}) async {
if (trackOnlyOverride) {
if (trackOnlyOverride || source.enforceTrackOnly) {
additionalSettings['trackOnly'] = true;
}
if (noVersionDetectionOverride) {
additionalSettings['noVersionDetection'] = true;
}
var trackOnly = currentApp?.additionalSettings['trackOnly'] == true;
var trackOnly = additionalSettings['trackOnly'] == true;
String standardUrl = source.standardizeURL(preStandardizeUrl(url));
APKDetails apk =
await source.getLatestAPKDetails(standardUrl, additionalSettings);

View File

@ -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.9.6+94 # When changing this, update the tag in main() accordingly
version: 0.9.8+96 # When changing this, update the tag in main() accordingly
environment:
sdk: '>=2.18.2 <3.0.0'