Skip to content

Commit e3df73a

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #928 from NativeScript/fatme/correct-project-name
Set correct projectName in settings.gradle when projectDir name is different from projectId
2 parents 4a92ac3 + 6547f16 commit e3df73a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/android-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
142142
shell.sed('-i', /__TITLE_ACTIVITY__/, this.$projectData.projectName, stringsFilePath);
143143

144144
let gradleSettingsFilePath = path.join(this.platformData.projectRoot, "settings.gradle");
145-
shell.sed('-i', /__PROJECT_NAME__/, this.$projectData.projectName, gradleSettingsFilePath);
145+
shell.sed('-i', /__PROJECT_NAME__/, this.$projectData.projectId.split(".")[2], gradleSettingsFilePath);
146146
shell.sed('-i', /__APILEVEL__/, this.$options.sdk || this.$androidToolsInfo.getToolsInfo().wait().compileSdkVersion.toString(), manifestPath);
147147
}).future<void>()();
148148
}

0 commit comments

Comments
 (0)