From 33c87b51b597aeb0cb10c6e20cc8139b8952d312 Mon Sep 17 00:00:00 2001 From: Peter Kanev Date: Thu, 23 Jun 2016 08:30:23 +0300 Subject: [PATCH] add interpolation for app.gradle applicationId value in android projects --- lib/services/android-project-service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index 91fc2211fa..5c4d8b5ae5 100644 --- a/lib/services/android-project-service.ts +++ b/lib/services/android-project-service.ts @@ -211,6 +211,10 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject let gradleSettingsFilePath = path.join(this.platformData.projectRoot, "settings.gradle"); shell.sed('-i', /__PROJECT_NAME__/, this.getProjectNameFromId(), gradleSettingsFilePath); + + // will replace applicationId in app/App_Resources/Android/app.gradle if it has not been edited by the user + let userAppGradleFilePath = path.join(this.$projectData.appResourcesDirectoryPath, this.$devicePlatformsConstants.Android, "app.gradle"); + shell.sed('-i', /__PACKAGE__/, this.$projectData.projectId, userAppGradleFilePath); }).future()(); }