mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
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;
|
||||
|
Reference in New Issue
Block a user