From 5e0333c4c8530bab1346b240ad19803a9a961e22 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Sun, 20 Oct 2024 19:56:19 +0530 Subject: [PATCH] Add Custom app ID --- lib/providers/source_provider.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/providers/source_provider.dart b/lib/providers/source_provider.dart index 8e77f54..74052df 100644 --- a/lib/providers/source_provider.dart +++ b/lib/providers/source_provider.dart @@ -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))