@@ -765,9 +765,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
765765
766766 private getInfoPlistPath ( projectData : IProjectData ) : string {
767767 return path . join (
768- projectData . projectDir ,
769- constants . APP_FOLDER_NAME ,
770- constants . APP_RESOURCES_FOLDER_NAME ,
768+ projectData . getAppResourcesDirectoryPath ( ) ,
771769 this . getPlatformData ( projectData ) . normalizedPlatformName ,
772770 this . getPlatformData ( projectData ) . configurationFileName
773771 ) ;
@@ -787,7 +785,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
787785
788786 private async mergeInfoPlists ( buildOptions : IRelease , projectData : IProjectData ) : Promise < void > {
789787 const projectDir = projectData . projectDir ;
790- const infoPlistPath = path . join ( projectDir , constants . APP_FOLDER_NAME , constants . APP_RESOURCES_FOLDER_NAME , this . getPlatformData ( projectData ) . normalizedPlatformName , this . getPlatformData ( projectData ) . configurationFileName ) ;
788+ const infoPlistPath = path . join ( projectData . getAppResourcesDirectoryPath ( ) , this . getPlatformData ( projectData ) . normalizedPlatformName , this . getPlatformData ( projectData ) . configurationFileName ) ;
791789 this . ensureConfigurationFileInAppResources ( ) ;
792790
793791 if ( ! this . $fs . exists ( infoPlistPath ) ) {
@@ -1217,7 +1215,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
12171215 }
12181216 }
12191217
1220- const appResourcesXcconfigPath = path . join ( projectData . projectDir , constants . APP_FOLDER_NAME , constants . APP_RESOURCES_FOLDER_NAME , this . getPlatformData ( projectData ) . normalizedPlatformName , "build.xcconfig" ) ;
1218+ const appResourcesXcconfigPath = path . join ( projectData . getAppResourcesDirectoryPath ( ) , this . getPlatformData ( projectData ) . normalizedPlatformName , "build.xcconfig" ) ;
12211219 if ( this . $fs . exists ( appResourcesXcconfigPath ) ) {
12221220 await this . mergeXcconfigFiles ( appResourcesXcconfigPath , pluginsXcconfigFilePath ) ;
12231221 }
@@ -1272,7 +1270,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
12721270 }
12731271
12741272 private getBuildXCConfigFilePath ( projectData : IProjectData ) : string {
1275- const buildXCConfig = path . join ( projectData . appResourcesDirectoryPath ,
1273+ const buildXCConfig = path . join ( projectData . getAppResourcesDirectoryPath ( ) ,
12761274 this . getPlatformData ( projectData ) . normalizedPlatformName , "build.xcconfig" ) ;
12771275 return buildXCConfig ;
12781276 }
@@ -1334,7 +1332,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
13341332 const choicePersist = await this . $prompter . promptForChoice ( "Do you want to make teamId: " + teamId + " a persistent choice for your app?" , choicesPersist ) ;
13351333 switch ( choicesPersist . indexOf ( choicePersist ) ) {
13361334 case 0 :
1337- const xcconfigFile = path . join ( projectData . appResourcesDirectoryPath , this . getPlatformData ( projectData ) . normalizedPlatformName , "build.xcconfig" ) ;
1335+ const xcconfigFile = path . join ( projectData . getAppResourcesDirectoryPath ( ) , this . getPlatformData ( projectData ) . normalizedPlatformName , "build.xcconfig" ) ;
13381336 this . $fs . appendFile ( xcconfigFile , "\nDEVELOPMENT_TEAM = " + teamId + "\n" ) ;
13391337 break ;
13401338 case 1 :
@@ -1352,8 +1350,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
13521350 }
13531351
13541352 private validateApplicationIdentifier ( projectData : IProjectData ) : void {
1355- const projectDir = projectData . projectDir ;
1356- const infoPlistPath = path . join ( projectDir , constants . APP_FOLDER_NAME , constants . APP_RESOURCES_FOLDER_NAME , this . getPlatformData ( projectData ) . normalizedPlatformName , this . getPlatformData ( projectData ) . configurationFileName ) ;
1353+ const infoPlistPath = path . join ( projectData . getAppResourcesDirectoryPath ( ) , this . getPlatformData ( projectData ) . normalizedPlatformName , this . getPlatformData ( projectData ) . configurationFileName ) ;
13571354 const mergedPlistPath = this . getPlatformData ( projectData ) . configurationFilePath ;
13581355
13591356 if ( ! this . $fs . exists ( infoPlistPath ) || ! this . $fs . exists ( mergedPlistPath ) ) {
0 commit comments