mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
Add allowOverride app source option
This commit is contained in:
@ -13,6 +13,7 @@ class CoolApk extends AppSource {
|
|||||||
hosts = ['www.coolapk.com', 'api2.coolapk.com'];
|
hosts = ['www.coolapk.com', 'api2.coolapk.com'];
|
||||||
allowSubDomains = true;
|
allowSubDomains = true;
|
||||||
naiveStandardVersionDetection = true;
|
naiveStandardVersionDetection = true;
|
||||||
|
allowOverride = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -170,4 +171,4 @@ class CoolApk extends AppSource {
|
|||||||
|
|
||||||
return {'deviceCode': deviceCode, 'token': finalToken};
|
return {'deviceCode': deviceCode, 'token': finalToken};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -407,8 +407,14 @@ class AddAppPageState extends State<AddAppPage> {
|
|||||||
defaultValue: pickedSourceOverride ?? '',
|
defaultValue: pickedSourceOverride ?? '',
|
||||||
[
|
[
|
||||||
MapEntry('', tr('none')),
|
MapEntry('', tr('none')),
|
||||||
...sourceProvider.sources.map(
|
...sourceProvider.sources
|
||||||
(s) => MapEntry(s.runtimeType.toString(), s.name))
|
.where((s) =>
|
||||||
|
s.allowOverride ||
|
||||||
|
(pickedSource != null &&
|
||||||
|
pickedSource.runtimeType ==
|
||||||
|
s.runtimeType))
|
||||||
|
.map((s) =>
|
||||||
|
MapEntry(s.runtimeType.toString(), s.name))
|
||||||
],
|
],
|
||||||
label: tr('overrideSource'))
|
label: tr('overrideSource'))
|
||||||
]
|
]
|
||||||
|
@ -586,6 +586,7 @@ abstract class AppSource {
|
|||||||
bool appIdInferIsOptional = false;
|
bool appIdInferIsOptional = false;
|
||||||
bool allowSubDomains = false;
|
bool allowSubDomains = false;
|
||||||
bool naiveStandardVersionDetection = false;
|
bool naiveStandardVersionDetection = false;
|
||||||
|
bool allowOverride = true;
|
||||||
bool neverAutoSelect = false;
|
bool neverAutoSelect = false;
|
||||||
bool showReleaseDateAsVersionToggle = false;
|
bool showReleaseDateAsVersionToggle = false;
|
||||||
bool versionDetectionDisallowed = false;
|
bool versionDetectionDisallowed = false;
|
||||||
|
Reference in New Issue
Block a user