mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 06:36:44 +02:00
Lint all files
This commit is contained in:
@ -11,20 +11,23 @@ class DirectAPKLink extends AppSource {
|
||||
name = tr('directAPKLink');
|
||||
additionalSourceAppSpecificSettingFormItems = [
|
||||
...html.additionalSourceAppSpecificSettingFormItems
|
||||
.where((element) => element
|
||||
.where((element) => element.key == 'requestHeader')
|
||||
.isNotEmpty)
|
||||
.where(
|
||||
(element) => element
|
||||
.where((element) => element.key == 'requestHeader')
|
||||
.isNotEmpty,
|
||||
)
|
||||
.toList(),
|
||||
[
|
||||
GeneratedFormDropdown(
|
||||
'defaultPseudoVersioningMethod',
|
||||
[
|
||||
MapEntry('partialAPKHash', tr('partialAPKHash')),
|
||||
MapEntry('ETag', 'ETag')
|
||||
],
|
||||
label: tr('defaultPseudoVersioningMethod'),
|
||||
defaultValue: 'partialAPKHash')
|
||||
]
|
||||
'defaultPseudoVersioningMethod',
|
||||
[
|
||||
MapEntry('partialAPKHash', tr('partialAPKHash')),
|
||||
MapEntry('ETag', 'ETag'),
|
||||
],
|
||||
label: tr('defaultPseudoVersioningMethod'),
|
||||
defaultValue: 'partialAPKHash',
|
||||
),
|
||||
],
|
||||
];
|
||||
excludeCommonSettingKeys = [
|
||||
'versionExtractionRegEx',
|
||||
@ -32,7 +35,7 @@ class DirectAPKLink extends AppSource {
|
||||
'versionDetection',
|
||||
'useVersionCodeAsOSVersion',
|
||||
'apkFilterRegEx',
|
||||
'autoApkFilterByArch'
|
||||
'autoApkFilterByArch',
|
||||
];
|
||||
}
|
||||
|
||||
@ -51,10 +54,13 @@ class DirectAPKLink extends AppSource {
|
||||
|
||||
@override
|
||||
Future<Map<String, String>?> getRequestHeaders(
|
||||
Map<String, dynamic> additionalSettings,
|
||||
{bool forAPKDownload = false}) {
|
||||
return html.getRequestHeaders(additionalSettings,
|
||||
forAPKDownload: forAPKDownload);
|
||||
Map<String, dynamic> additionalSettings, {
|
||||
bool forAPKDownload = false,
|
||||
}) {
|
||||
return html.getRequestHeaders(
|
||||
additionalSettings,
|
||||
forAPKDownload: forAPKDownload,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
@ -62,8 +68,9 @@ class DirectAPKLink extends AppSource {
|
||||
String standardUrl,
|
||||
Map<String, dynamic> additionalSettings,
|
||||
) async {
|
||||
var additionalSettingsNew =
|
||||
getDefaultValuesFromFormItems(html.combinedAppSpecificSettingFormItems);
|
||||
var additionalSettingsNew = getDefaultValuesFromFormItems(
|
||||
html.combinedAppSpecificSettingFormItems,
|
||||
);
|
||||
for (var s in additionalSettings.keys) {
|
||||
if (additionalSettingsNew.containsKey(s)) {
|
||||
additionalSettingsNew[s] = additionalSettings[s];
|
||||
|
Reference in New Issue
Block a user