mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-30 21:13:28 +01:00 
			
		
		
		
	Merge pull request #626 from ImranR98/dev
App ID infer bugfix for GitHub
This commit is contained in:
		| @@ -102,15 +102,18 @@ class GitHub extends AppSource { | ||||
|                 .split('\n') | ||||
|                 .map((e) => e.trim()); | ||||
|             var appId = trimmedLines | ||||
|                 .where((l) => l.startsWith('applicationId "')) | ||||
|                 .first | ||||
|                 .split('"')[1]; | ||||
|                 .where((l) => | ||||
|                     l.startsWith('applicationId "') || | ||||
|                     l.startsWith('applicationId \'')) | ||||
|                 .first; | ||||
|             appId = appId | ||||
|                 .split(appId.startsWith('applicationId "') ? '"' : '\'')[1]; | ||||
|             if (appId.startsWith('\${') && appId.endsWith('}')) { | ||||
|               appId = trimmedLines | ||||
|                   .where((l) => l.startsWith( | ||||
|                       'def ${appId.substring(2, appId.length - 1)}')) | ||||
|                   .first | ||||
|                   .split('"')[1]; | ||||
|                   .first; | ||||
|               appId = appId.split(appId.contains('"') ? '"' : '\'')[1]; | ||||
|             } | ||||
|             if (appId.isNotEmpty) { | ||||
|               return appId; | ||||
|   | ||||
| @@ -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.9'; | ||||
| const String currentVersion = '0.13.10'; | ||||
| const String currentReleaseTag = | ||||
|     'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES | ||||
|  | ||||
|   | ||||
| @@ -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.9+173 # When changing this, update the tag in main() accordingly | ||||
| version: 0.13.10+174 # When changing this, update the tag in main() accordingly | ||||
|  | ||||
| environment: | ||||
|   sdk: '>=2.18.2 <3.0.0' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user