Add Custom app ID

This commit is contained in:
Praveen Kumar
2024-10-20 19:56:19 +05:30
parent 344a6efbf6
commit 5e0333c4c8

View File

@@ -571,7 +571,8 @@ abstract class AppSource {
GeneratedFormSwitch('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
@@ -922,6 +923,9 @@ class SourceProvider {
name = name.isNotEmpty ? name : apk.names.name;
App finalApp = App(
currentApp?.id ??
((additionalSettings['appId'] != null)
? additionalSettings['appId']
: null) ??
(!trackOnly &&
(!source.appIdInferIsOptional ||
(source.appIdInferIsOptional && inferAppIdIfOptional))