UI: Fixed mobile center congiguration dialog

This commit is contained in:
Vladyslav_Prykhodko 2024-11-28 14:19:52 +02:00
parent 05690fce5d
commit d2cb95d0ce
2 changed files with 13 additions and 3 deletions

View File

@ -66,11 +66,21 @@ export class MobileAppConfigurationDialogComponent extends DialogComponent<Mobil
this.configureApi += '\n'; this.configureApi += '\n';
if (!!this.data.androidApp) { if (!!this.data.androidApp) {
this.configureApi += `\nstatic const thingsboardAndroidAppSecret = '${this.data.androidApp.appSecret}';`; this.configureApi += `\nstatic const thingsboardAndroidAppSecret = '${this.data.androidApp.appSecret}';`;
this.renameCommands.push(`rename setBundleId --targets android --value "${this.data.androidApp.pkgName}"`);
} }
if (!!this.data.iosApp) { if (!!this.data.iosApp) {
this.configureApi += `\nstatic const thingsboardIOSAppSecret = '${this.data.iosApp.appSecret}';`; this.configureApi += `\nstatic const thingsboardIOSAppSecret = '${this.data.iosApp.appSecret}';`;
this.renameCommands.push(`rename setBundleId --targets ios --value "${this.data.iosApp.pkgName}"`); }
}
if (this.setApplication) {
if (this.data.androidApp?.pkgName === this.data.iosApp?.pkgName) {
this.renameCommands.push(`rename setBundleId --targets android, ios --value "${this.data.androidApp.pkgName}"`);
} else {
if (!!this.data.androidApp) {
this.renameCommands.push(`rename setBundleId --targets android --value "${this.data.androidApp.pkgName}"`);
}
if (!!this.data.iosApp) {
this.renameCommands.push(`rename setBundleId --targets ios --value "${this.data.iosApp.pkgName}"`);
}
} }
} }
} }

View File

@ -3548,7 +3548,7 @@
"configure-package-title": "Configure application package", "configure-package-title": "Configure application package",
"configure-package-text": "You can manually change the Application Package or use third party CLI tool.", "configure-package-text": "You can manually change the Application Package or use third party CLI tool.",
"configure-package-text-install": "To install the Rename CLI Tool, execute the following command:", "configure-package-text-install": "To install the Rename CLI Tool, execute the following command:",
"configure-package-run-commands": "Run these commands in the root directory of your projectЖ" "configure-package-run-commands": "Run these commands in the root directory of your project:"
} }
}, },
"notification": { "notification": {