Skip to content

Commit 8534b22

Browse files
petekanevrosen-vladimirov
authored andcommitted
add interpolation for app.gradle applicationId value in android projects
1 parent eacad19 commit 8534b22

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
@@ -166,6 +166,10 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
166166

167167
let gradleSettingsFilePath = path.join(this.platformData.projectRoot, "settings.gradle");
168168
shell.sed('-i', /__PROJECT_NAME__/, this.getProjectNameFromId(), gradleSettingsFilePath);
169+
170+
// will replace applicationId in app/App_Resources/Android/app.gradle if it has not been edited by the user
171+
let userAppGradleFilePath = path.join(this.$projectData.appResourcesDirectoryPath, this.$devicePlatformsConstants.Android, "app.gradle");
172+
shell.sed('-i', /__PACKAGE__/, this.$projectData.projectId, userAppGradleFilePath);
169173
}).future<void>()();
170174
}
171175

0 commit comments

Comments
 (0)