mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-17 07:06:43 +02:00
Started switching additionaldata to map
This commit is contained in:
@ -11,11 +11,10 @@ class FDroidRepo extends AppSource {
|
||||
|
||||
additionalSourceAppSpecificFormItems = [
|
||||
[
|
||||
GeneratedFormItem(
|
||||
GeneratedFormItem('appIdOrName',
|
||||
label: tr('appIdOrName'),
|
||||
hint: tr('reposHaveMultipleApps'),
|
||||
required: true,
|
||||
key: 'appIdOrName')
|
||||
required: true)
|
||||
]
|
||||
];
|
||||
}
|
||||
@ -33,13 +32,9 @@ class FDroidRepo extends AppSource {
|
||||
|
||||
@override
|
||||
Future<APKDetails> getLatestAPKDetails(
|
||||
String standardUrl, List<String> additionalData,
|
||||
String standardUrl, Map<String, String> additionalData,
|
||||
{bool trackOnly = false}) async {
|
||||
String? appIdOrName = findGeneratedFormValueByKey(
|
||||
additionalSourceAppSpecificFormItems
|
||||
.reduce((value, element) => [...value, ...element]),
|
||||
additionalData,
|
||||
'appIdOrName');
|
||||
String? appIdOrName = additionalData['appIdOrName'];
|
||||
if (appIdOrName == null) {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
|
Reference in New Issue
Block a user