@@ -1010,30 +1010,30 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1010
1010
1011
1011
private mergeProjectXcconfigFiles ( ) : IFuture < void > {
1012
1012
return ( ( ) => {
1013
- this . $fs . deleteFile ( this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1014
- this . $fs . deleteFile ( this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1013
+ this . $fs . deleteFile ( this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1015
1014
1016
1015
let allPlugins : IPluginData [ ] = ( < IPluginsService > this . $injector . resolve ( "pluginsService" ) ) . getAllInstalledPlugins ( ) . wait ( ) ;
1017
1016
for ( let plugin of allPlugins ) {
1018
1017
let pluginPlatformsFolderPath = plugin . pluginPlatformsFolderPath ( IOSProjectService . IOS_PLATFORM_NAME ) ;
1019
1018
let pluginXcconfigFilePath = path . join ( pluginPlatformsFolderPath , "build.xcconfig" ) ;
1020
1019
if ( this . $fs . exists ( pluginXcconfigFilePath ) . wait ( ) ) {
1021
- this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1022
- this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1020
+ this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1023
1021
}
1024
1022
}
1025
1023
1026
1024
let appResourcesXcconfigPath = path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME , constants . APP_RESOURCES_FOLDER_NAME , this . platformData . normalizedPlatformName , "build.xcconfig" ) ;
1027
1025
if ( this . $fs . exists ( appResourcesXcconfigPath ) . wait ( ) ) {
1028
- this . mergeXcconfigFiles ( appResourcesXcconfigPath , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1029
- this . mergeXcconfigFiles ( appResourcesXcconfigPath , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1026
+ this . mergeXcconfigFiles ( appResourcesXcconfigPath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1030
1027
}
1031
1028
1032
1029
let podFilesRootDirName = path . join ( "Pods" , "Target Support Files" , `Pods-${ this . $projectData . projectName } ` ) ;
1033
1030
let podFolder = path . join ( this . platformData . projectRoot , podFilesRootDirName ) ;
1034
1031
if ( this . $fs . exists ( podFolder ) . wait ( ) ) {
1035
- this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .debug.xcconfig` ) , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1036
- this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .release.xcconfig` ) , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1032
+ if ( this . $options . release ) {
1033
+ this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .release.xcconfig` ) , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1034
+ } else {
1035
+ this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .debug.xcconfig` ) , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1036
+ }
1037
1037
}
1038
1038
} ) . future < void > ( ) ( ) ;
1039
1039
}
0 commit comments