mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-27 11:43:47 +01:00 
			
		
		
		
	Merge pull request #193 from ImranR98/dev
Track-only source bugfix + better http errors
This commit is contained in:
		| @@ -46,7 +46,7 @@ class APKMirror extends AppSource { | ||||
|       } | ||||
|       return APKDetails(version, [], getAppNames(standardUrl)); | ||||
|     } else { | ||||
|       throw NoReleasesError(); | ||||
|       throw getObtainiumHttpError(res); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -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); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -80,7 +80,7 @@ class FDroidRepo extends AppSource { | ||||
|           .toList(); | ||||
|       return APKDetails(latestVersion, apkUrls, AppNames(authorName, appName)); | ||||
|     } else { | ||||
|       throw NoReleasesError(); | ||||
|       throw getObtainiumHttpError(res); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -59,7 +59,7 @@ class GitLab extends AppSource { | ||||
|       } | ||||
|       return APKDetails(version, apkUrls, GitHub().getAppNames(standardUrl)); | ||||
|     } else { | ||||
|       throw NoReleasesError(); | ||||
|       throw getObtainiumHttpError(res); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -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); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -33,7 +33,7 @@ class Signal extends AppSource { | ||||
|       } | ||||
|       return APKDetails(version, apkUrls, AppNames(name, 'Signal')); | ||||
|     } else { | ||||
|       throw NoReleasesError(); | ||||
|       throw getObtainiumHttpError(res); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -57,7 +57,7 @@ class SourceForge extends AppSource { | ||||
|           AppNames( | ||||
|               name, standardUrl.substring(standardUrl.lastIndexOf('/') + 1))); | ||||
|     } else { | ||||
|       throw NoReleasesError(); | ||||
|       throw getObtainiumHttpError(res); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -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); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -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.7'; | ||||
| const String currentReleaseTag = | ||||
|     'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES | ||||
|  | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
| @@ -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.7+95 # When changing this, update the tag in main() accordingly | ||||
|  | ||||
| environment: | ||||
|   sdk: '>=2.18.2 <3.0.0' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user