mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 22:56:44 +02:00
Started switching additionaldata to map
This commit is contained in:
@ -11,11 +11,8 @@ class SteamMobile extends AppSource {
|
||||
name = tr('steam');
|
||||
additionalSourceAppSpecificFormItems = [
|
||||
[
|
||||
GeneratedFormItem(
|
||||
label: tr('app'),
|
||||
key: 'app',
|
||||
required: true,
|
||||
opts: apks.entries.toList())
|
||||
GeneratedFormItem('app',
|
||||
label: tr('app'), required: true, opts: apks.entries.toList())
|
||||
]
|
||||
];
|
||||
}
|
||||
@ -32,15 +29,11 @@ class SteamMobile extends AppSource {
|
||||
|
||||
@override
|
||||
Future<APKDetails> getLatestAPKDetails(
|
||||
String standardUrl, List<String> additionalData,
|
||||
String standardUrl, Map<String, String> additionalData,
|
||||
{bool trackOnly = false}) async {
|
||||
Response res = await get(Uri.parse('https://$host/mobile'));
|
||||
if (res.statusCode == 200) {
|
||||
var apkNamePrefix = findGeneratedFormValueByKey(
|
||||
additionalSourceAppSpecificFormItems
|
||||
.reduce((value, element) => [...value, ...element]),
|
||||
additionalData,
|
||||
'app');
|
||||
var apkNamePrefix = additionalData['app'];
|
||||
if (apkNamePrefix == null) {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
|
Reference in New Issue
Block a user