Skip to content

Commit 31e78b3

Browse files
petekanevTsvetanMilanov
authored andcommitted
add interpolation for app.gradle applicationId value in android projects
1 parent bc80be9 commit 31e78b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/services/android-project-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
196196

197197
let gradleSettingsFilePath = path.join(this.platformData.projectRoot, "settings.gradle");
198198
shell.sed('-i', /__PROJECT_NAME__/, this.getProjectNameFromId(), gradleSettingsFilePath);
199+
200+
// will replace applicationId in app/App_Resources/Android/app.gradle if it has not been edited by the user
201+
let userAppGradleFilePath = path.join(this.$projectData.appResourcesDirectoryPath, this.$devicePlatformsConstants.Android, "app.gradle");
202+
shell.sed('-i', /__PACKAGE__/, this.$projectData.projectId, userAppGradleFilePath);
199203
}).future<void>()();
200204
}
201205

0 commit comments

Comments
 (0)