mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
Merge pull request #2299 from ImranR98/dev
Attempt to fix RuStore charset bug (#2294)
This commit is contained in:
@ -33,6 +33,16 @@ class RuStore extends AppSource {
|
|||||||
return Uri.parse(standardUrl).pathSegments.last;
|
return Uri.parse(standardUrl).pathSegments.last;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<String> decodeString(String str) async {
|
||||||
|
try {
|
||||||
|
return (await CharsetDetector.autoDecode(
|
||||||
|
Uint8List.fromList(str.codeUnits)))
|
||||||
|
.string;
|
||||||
|
} catch (e) {
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<APKDetails> getLatestAPKDetails(
|
Future<APKDetails> getLatestAPKDetails(
|
||||||
String standardUrl,
|
String standardUrl,
|
||||||
@ -73,17 +83,9 @@ class RuStore extends AppSource {
|
|||||||
throw NoAPKError();
|
throw NoAPKError();
|
||||||
}
|
}
|
||||||
|
|
||||||
appName = (await CharsetDetector.autoDecode(
|
appName = await decodeString(appName);
|
||||||
Uint8List.fromList(appName.codeUnits)))
|
author = await decodeString(author);
|
||||||
.string;
|
changeLog = changeLog != null ? await decodeString(changeLog) : null;
|
||||||
author =
|
|
||||||
(await CharsetDetector.autoDecode(Uint8List.fromList(author.codeUnits)))
|
|
||||||
.string;
|
|
||||||
changeLog = changeLog != null
|
|
||||||
? (await CharsetDetector.autoDecode(
|
|
||||||
Uint8List.fromList(changeLog.codeUnits)))
|
|
||||||
.string
|
|
||||||
: null;
|
|
||||||
|
|
||||||
return APKDetails(
|
return APKDetails(
|
||||||
version,
|
version,
|
||||||
|
@ -16,7 +16,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: 1.1.53+2310
|
version: 1.1.54+2311
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.6.0
|
sdk: ^3.6.0
|
||||||
|
Reference in New Issue
Block a user