mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 22:56:44 +02:00
Track-only source bugfix + better http errors
+ increment version
This commit is contained in:
@ -46,7 +46,7 @@ class APKMirror extends AppSource {
|
|||||||
}
|
}
|
||||||
return APKDetails(version, [], getAppNames(standardUrl));
|
return APKDetails(version, [], getAppNames(standardUrl));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class FDroid extends AppSource {
|
|||||||
return APKDetails(latestVersion, apkUrls,
|
return APKDetails(latestVersion, apkUrls,
|
||||||
AppNames(name, Uri.parse(standardUrl).pathSegments.last));
|
AppNames(name, Uri.parse(standardUrl).pathSegments.last));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class FDroidRepo extends AppSource {
|
|||||||
.toList();
|
.toList();
|
||||||
return APKDetails(latestVersion, apkUrls, AppNames(authorName, appName));
|
return APKDetails(latestVersion, apkUrls, AppNames(authorName, appName));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ class GitLab extends AppSource {
|
|||||||
}
|
}
|
||||||
return APKDetails(version, apkUrls, GitHub().getAppNames(standardUrl));
|
return APKDetails(version, apkUrls, GitHub().getAppNames(standardUrl));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ class Mullvad extends AppSource {
|
|||||||
['https://mullvad.net/download/app/apk/latest'],
|
['https://mullvad.net/download/app/apk/latest'],
|
||||||
AppNames(name, 'Mullvad-VPN'));
|
AppNames(name, 'Mullvad-VPN'));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ class Signal extends AppSource {
|
|||||||
}
|
}
|
||||||
return APKDetails(version, apkUrls, AppNames(name, 'Signal'));
|
return APKDetails(version, apkUrls, AppNames(name, 'Signal'));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ class SourceForge extends AppSource {
|
|||||||
AppNames(
|
AppNames(
|
||||||
name, standardUrl.substring(standardUrl.lastIndexOf('/') + 1)));
|
name, standardUrl.substring(standardUrl.lastIndexOf('/') + 1)));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ class SteamMobile extends AppSource {
|
|||||||
var apkUrls = [links[0]];
|
var apkUrls = [links[0]];
|
||||||
return APKDetails(version, apkUrls, AppNames(name, apks[apkNamePrefix]!));
|
return APKDetails(version, apkUrls, AppNames(name, apks[apkNamePrefix]!));
|
||||||
} else {
|
} else {
|
||||||
throw NoReleasesError();
|
throw getObtainiumHttpError(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
|
|||||||
// ignore: implementation_imports
|
// ignore: implementation_imports
|
||||||
import 'package:easy_localization/src/localization.dart';
|
import 'package:easy_localization/src/localization.dart';
|
||||||
|
|
||||||
const String currentVersion = '0.9.6';
|
const String currentVersion = '0.9.7';
|
||||||
const String currentReleaseTag =
|
const String currentReleaseTag =
|
||||||
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
|
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
|
||||||
|
|
||||||
|
@ -331,13 +331,13 @@ class SourceProvider {
|
|||||||
{App? currentApp,
|
{App? currentApp,
|
||||||
bool trackOnlyOverride = false,
|
bool trackOnlyOverride = false,
|
||||||
noVersionDetectionOverride = false}) async {
|
noVersionDetectionOverride = false}) async {
|
||||||
if (trackOnlyOverride) {
|
if (trackOnlyOverride || source.enforceTrackOnly) {
|
||||||
additionalSettings['trackOnly'] = true;
|
additionalSettings['trackOnly'] = true;
|
||||||
}
|
}
|
||||||
if (noVersionDetectionOverride) {
|
if (noVersionDetectionOverride) {
|
||||||
additionalSettings['noVersionDetection'] = true;
|
additionalSettings['noVersionDetection'] = true;
|
||||||
}
|
}
|
||||||
var trackOnly = currentApp?.additionalSettings['trackOnly'] == true;
|
var trackOnly = additionalSettings['trackOnly'] == true;
|
||||||
String standardUrl = source.standardizeURL(preStandardizeUrl(url));
|
String standardUrl = source.standardizeURL(preStandardizeUrl(url));
|
||||||
APKDetails apk =
|
APKDetails apk =
|
||||||
await source.getLatestAPKDetails(standardUrl, additionalSettings);
|
await source.getLatestAPKDetails(standardUrl, additionalSettings);
|
||||||
|
@ -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
|
# 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
|
# 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.
|
# 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.7+95 # When changing this, update the tag in main() accordingly
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.18.2 <3.0.0'
|
sdk: '>=2.18.2 <3.0.0'
|
||||||
|
Reference in New Issue
Block a user