App ID infer bugfix for GitHub

This commit is contained in:
Imran Remtulla
2023-06-23 16:30:35 -04:00
parent 5b05745b02
commit 7577f3ac9b
3 changed files with 10 additions and 7 deletions

View File

@@ -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;

View File

@@ -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