Skip to content

Commit 4040bf4

Browse files
committed
chore: address PR comments
1 parent a59b412 commit 4040bf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/services/android-project-service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,11 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
261261

262262
let stringsFilePath: string;
263263

264+
const appResourcesDestinationDirectoryPath = this.getAppResourcesDestinationDirectoryPath(projectData);
264265
if (this.$androidResourcesMigrationService.hasMigrated(appResourcesDirectoryPath)) {
265-
stringsFilePath = path.join(this.getAppResourcesDestinationDirectoryPath(projectData), constants.MAIN_DIR, constants.RESOURCES_DIR, 'values', 'strings.xml');
266+
stringsFilePath = path.join(appResourcesDestinationDirectoryPath, constants.MAIN_DIR, constants.RESOURCES_DIR, 'values', 'strings.xml');
266267
} else {
267-
stringsFilePath = path.join(this.getAppResourcesDestinationDirectoryPath(projectData), 'values', 'strings.xml');
268+
stringsFilePath = path.join(appResourcesDestinationDirectoryPath, 'values', 'strings.xml');
268269
}
269270

270271
shell.sed('-i', /__NAME__/, projectData.projectName, stringsFilePath);

0 commit comments

Comments
 (0)