mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 06:36:44 +02:00
Compare commits
2 Commits
v0.13.7-be
...
v0.13.8-be
Author | SHA1 | Date | |
---|---|---|---|
e0c4ec5028 | |||
7fcba6c911 |
@ -96,14 +96,22 @@ class GitHub extends AppSource {
|
|||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
try {
|
try {
|
||||||
var body = jsonDecode(res.body);
|
var body = jsonDecode(res.body);
|
||||||
var appId = utf8
|
var trimmedLines = utf8
|
||||||
.decode(base64
|
.decode(base64
|
||||||
.decode(body['content'].toString().split('\n').join('')))
|
.decode(body['content'].toString().split('\n').join('')))
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.map((e) => e.trim())
|
.map((e) => e.trim());
|
||||||
|
var appId = trimmedLines
|
||||||
.where((l) => l.startsWith('applicationId "'))
|
.where((l) => l.startsWith('applicationId "'))
|
||||||
.first
|
.first
|
||||||
.split('"')[1];
|
.split('"')[1];
|
||||||
|
if (appId.startsWith('\${') && appId.endsWith('}')) {
|
||||||
|
appId = trimmedLines
|
||||||
|
.where((l) => l.startsWith(
|
||||||
|
'def ${appId.substring(2, appId.length - 1)}'))
|
||||||
|
.first
|
||||||
|
.split('"')[1];
|
||||||
|
}
|
||||||
if (appId.isNotEmpty) {
|
if (appId.isNotEmpty) {
|
||||||
return appId;
|
return appId;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,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.13.7';
|
const String currentVersion = '0.13.8';
|
||||||
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
|
||||||
|
|
||||||
|
@ -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.13.7+171 # When changing this, update the tag in main() accordingly
|
version: 0.13.8+172 # When changing this, update the tag in main() accordingly
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.18.2 <3.0.0'
|
sdk: '>=2.18.2 <3.0.0'
|
||||||
|
Reference in New Issue
Block a user