mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-22 22:19:29 +02:00
Add Custom app ID
This commit is contained in:
@@ -571,7 +571,8 @@ abstract class AppSource {
|
|||||||
GeneratedFormSwitch('skipUpdateNotifications',
|
GeneratedFormSwitch('skipUpdateNotifications',
|
||||||
label: tr('skipUpdateNotifications'))
|
label: tr('skipUpdateNotifications'))
|
||||||
],
|
],
|
||||||
[GeneratedFormTextField('about', label: tr('about'), required: false)]
|
[GeneratedFormTextField('about', label: tr('about'), required: false)],
|
||||||
|
[GeneratedFormTextField('appId', label: tr('appId'), required: false)]
|
||||||
];
|
];
|
||||||
|
|
||||||
// Previous 2 variables combined into one at runtime for convenient usage
|
// Previous 2 variables combined into one at runtime for convenient usage
|
||||||
@@ -922,6 +923,9 @@ class SourceProvider {
|
|||||||
name = name.isNotEmpty ? name : apk.names.name;
|
name = name.isNotEmpty ? name : apk.names.name;
|
||||||
App finalApp = App(
|
App finalApp = App(
|
||||||
currentApp?.id ??
|
currentApp?.id ??
|
||||||
|
((additionalSettings['appId'] != null)
|
||||||
|
? additionalSettings['appId']
|
||||||
|
: null) ??
|
||||||
(!trackOnly &&
|
(!trackOnly &&
|
||||||
(!source.appIdInferIsOptional ||
|
(!source.appIdInferIsOptional ||
|
||||||
(source.appIdInferIsOptional && inferAppIdIfOptional))
|
(source.appIdInferIsOptional && inferAppIdIfOptional))
|
||||||
|
Reference in New Issue
Block a user