Skip to content

Commit ef11930

Browse files
Use baseConfig when merging Info.plist files
When --baseConfig is passed, we should use it when merging Info.plist files.
1 parent 9935fd6 commit ef11930

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/services/ios-project-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
417417
public ensureConfigurationFileInAppResources(): IFuture<void> {
418418
return (() => {
419419
let projectDir = this.$projectData.projectDir;
420-
let infoPlistPath = path.join(projectDir, constants.APP_FOLDER_NAME, constants.APP_RESOURCES_FOLDER_NAME, this.platformData.normalizedPlatformName, this.platformData.configurationFileName);
420+
let infoPlistPath = this.$options.baseConfig || path.join(projectDir, constants.APP_FOLDER_NAME, constants.APP_RESOURCES_FOLDER_NAME, this.platformData.normalizedPlatformName, this.platformData.configurationFileName);
421421

422422
if (!this.$fs.exists(infoPlistPath).wait()) {
423423
// The project is missing Info.plist, try to populate it from the project template.
@@ -442,7 +442,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
442442
private mergeInfoPlists(): IFuture<void> {
443443
return (() => {
444444
let projectDir = this.$projectData.projectDir;
445-
let infoPlistPath = path.join(projectDir, constants.APP_FOLDER_NAME, constants.APP_RESOURCES_FOLDER_NAME, this.platformData.normalizedPlatformName, this.platformData.configurationFileName);
445+
let infoPlistPath = this.$options.baseConfig || path.join(projectDir, constants.APP_FOLDER_NAME, constants.APP_RESOURCES_FOLDER_NAME, this.platformData.normalizedPlatformName, this.platformData.configurationFileName);
446446
this.ensureConfigurationFileInAppResources().wait();
447447

448448
if (!this.$fs.exists(infoPlistPath).wait()) {

lib/services/platform-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ export class PlatformService implements IPlatformService {
296296
let excludedDirs = [constants.APP_RESOURCES_FOLDER_NAME];
297297
this.$projectFilesManager.processPlatformSpecificFiles(directoryPath, platform, excludedDirs).wait();
298298

299+
this.applyBaseConfigOption(platformData).wait();
300+
299301
// Process configurations files from App_Resources
300302
platformData.platformProjectService.processConfigurationFilesFromAppResources().wait();
301303

302-
this.applyBaseConfigOption(platformData).wait();
303-
304304
// Replace placeholders in configuration files
305305
platformData.platformProjectService.interpolateConfigurationFile().wait();
306306

0 commit comments

Comments
 (0)