mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	Merge pull request #1188 from ImranR98/dev
Typo, minor error reporting bug
This commit is contained in:
		| @@ -95,7 +95,7 @@ class HTML extends AppSource { | |||||||
|             label: tr('sortByFileNamesNotLinks')) |             label: tr('sortByFileNamesNotLinks')) | ||||||
|       ], |       ], | ||||||
|       [GeneratedFormSwitch('skipSort', label: tr('skipSort'))], |       [GeneratedFormSwitch('skipSort', label: tr('skipSort'))], | ||||||
|       [GeneratedFormSwitch('reverseSort', label: tr('takeTopLink'))], |       [GeneratedFormSwitch('reverseSort', label: tr('takeFirstLink'))], | ||||||
|       [ |       [ | ||||||
|         GeneratedFormSwitch('supportFixedAPKURL', |         GeneratedFormSwitch('supportFixedAPKURL', | ||||||
|             defaultValue: true, label: tr('supportFixedAPKURL')), |             defaultValue: true, label: tr('supportFixedAPKURL')), | ||||||
|   | |||||||
| @@ -19,7 +19,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.14.40'; | const String currentVersion = '0.14.41'; | ||||||
| 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 | ||||||
|  |  | ||||||
|   | |||||||
| @@ -520,11 +520,17 @@ class AppsProvider with ChangeNotifier { | |||||||
|     int? code; |     int? code; | ||||||
|     switch (settingsProvider.installMethod) { |     switch (settingsProvider.installMethod) { | ||||||
|       case InstallMethodSettings.normal: |       case InstallMethodSettings.normal: | ||||||
|         code = await AndroidPackageInstaller.installApk(apkFilePath: file.file.path); |         code = await AndroidPackageInstaller.installApk( | ||||||
|  |             apkFilePath: file.file.path); | ||||||
|       case InstallMethodSettings.shizuku: |       case InstallMethodSettings.shizuku: | ||||||
|         code = (await Installers.installWithShizuku(apkFileUri: file.file.uri.toString())) ? 0 : 1; |         code = (await Installers.installWithShizuku( | ||||||
|  |                 apkFileUri: file.file.uri.toString())) | ||||||
|  |             ? 0 | ||||||
|  |             : 1; | ||||||
|       case InstallMethodSettings.root: |       case InstallMethodSettings.root: | ||||||
|         code = (await Installers.installWithRoot(apkFilePath: file.file.path)) ? 0 : 1; |         code = (await Installers.installWithRoot(apkFilePath: file.file.path)) | ||||||
|  |             ? 0 | ||||||
|  |             : 1; | ||||||
|     } |     } | ||||||
|     bool installed = false; |     bool installed = false; | ||||||
|     if (code != null && code != 0 && code != 3) { |     if (code != null && code != 0 && code != 3) { | ||||||
| @@ -683,7 +689,8 @@ class AppsProvider with ChangeNotifier { | |||||||
|         bool willBeSilent = await canInstallSilently(apps[appId]!.app); |         bool willBeSilent = await canInstallSilently(apps[appId]!.app); | ||||||
|         switch (settingsProvider.installMethod) { |         switch (settingsProvider.installMethod) { | ||||||
|           case InstallMethodSettings.normal: |           case InstallMethodSettings.normal: | ||||||
|             if (!(await settingsProvider.getInstallPermission(enforce: false))) { |             if (!(await settingsProvider.getInstallPermission( | ||||||
|  |                 enforce: false))) { | ||||||
|               throw ObtainiumError(tr('cancelled')); |               throw ObtainiumError(tr('cancelled')); | ||||||
|             } |             } | ||||||
|           case InstallMethodSettings.shizuku: |           case InstallMethodSettings.shizuku: | ||||||
| @@ -743,9 +750,11 @@ class AppsProvider with ChangeNotifier { | |||||||
|       await Future.wait( |       await Future.wait( | ||||||
|           appsToInstall.map((id) => updateFn(id, skipInstalls: true))); |           appsToInstall.map((id) => updateFn(id, skipInstalls: true))); | ||||||
|       for (var id in appsToInstall) { |       for (var id in appsToInstall) { | ||||||
|  |         if (!errors.appIdNames.containsKey(id)) { | ||||||
|           await updateFn(id); |           await updateFn(id); | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     if (errors.idsByErrorString.isNotEmpty) { |     if (errors.idsByErrorString.isNotEmpty) { | ||||||
|       throw errors; |       throw errors; | ||||||
|   | |||||||
| @@ -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.14.40+234 # When changing this, update the tag in main() accordingly | version: 0.14.41+235 # When changing this, update the tag in main() accordingly | ||||||
|  |  | ||||||
| environment: | environment: | ||||||
|   sdk: '>=3.0.0 <4.0.0' |   sdk: '>=3.0.0 <4.0.0' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user