@@ -952,7 +952,6 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
952
952
await this . prepareResources ( pluginPlatformsFolderPath , pluginData , projectData ) ;
953
953
await this . prepareFrameworks ( pluginPlatformsFolderPath , pluginData , projectData ) ;
954
954
await this . prepareStaticLibs ( pluginPlatformsFolderPath , pluginData , projectData ) ;
955
- //await this.prepareApplicationExtensions(pluginPlatformsFolderPath, pluginData, projectData);
956
955
957
956
const projectRoot = this . getPlatformData ( projectData ) . projectRoot ;
958
957
await this . $cocoapodsService . applyPodfileToProject ( pluginData . name , this . $cocoapodsService . getPluginPodfilePath ( pluginData ) , projectData , projectRoot ) ;
@@ -984,15 +983,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
984
983
}
985
984
986
985
this . removeExtensions ( projectData ) ;
987
- await this . prepareExtensionsCode ( path . join ( projectData . getAppResourcesDirectoryPath ( ) , this . getPlatformData ( projectData ) . normalizedPlatformName , constants . NATIVE_EXTENSION_FOLDER ) , projectData ) ;
988
- const plugins = await this . getAllInstalledPlugins ( projectData ) ;
989
- for ( const pluginIndex in plugins ) {
990
- const pluginData = plugins [ pluginIndex ] ;
991
- const pluginPlatformsFolderPath = pluginData . pluginPlatformsFolderPath ( IOSProjectService . IOS_PLATFORM_NAME ) ;
992
-
993
- const extensionPath = path . join ( pluginPlatformsFolderPath , constants . NATIVE_EXTENSION_FOLDER ) ;
994
- await this . prepareExtensionsCode ( extensionPath , projectData ) ;
995
- } ;
986
+ await this . addExtensions ( projectData ) ;
996
987
}
997
988
public beforePrepareAllPlugins ( ) : Promise < void > {
998
989
return Promise . resolve ( ) ;
@@ -1108,6 +1099,18 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1108
1099
this . savePbxProj ( project , projectData ) ;
1109
1100
}
1110
1101
1102
+ private async addExtensions ( projectData : IProjectData ) : Promise < void > {
1103
+ await this . prepareExtensionsCode ( path . join ( projectData . getAppResourcesDirectoryPath ( ) , this . getPlatformData ( projectData ) . normalizedPlatformName , constants . NATIVE_EXTENSION_FOLDER ) , projectData ) ;
1104
+ const plugins = await this . getAllInstalledPlugins ( projectData ) ;
1105
+ for ( const pluginIndex in plugins ) {
1106
+ const pluginData = plugins [ pluginIndex ] ;
1107
+ const pluginPlatformsFolderPath = pluginData . pluginPlatformsFolderPath ( IOSProjectService . IOS_PLATFORM_NAME ) ;
1108
+
1109
+ const extensionPath = path . join ( pluginPlatformsFolderPath , constants . NATIVE_EXTENSION_FOLDER ) ;
1110
+ await this . prepareExtensionsCode ( extensionPath , projectData ) ;
1111
+ } ;
1112
+ }
1113
+
1111
1114
private async prepareExtensionsCode ( extensionsFolderPath : string , projectData : IProjectData ) : Promise < void > {
1112
1115
const targetUuids : string [ ] = [ ] ;
1113
1116
if ( ! this . $fs . exists ( extensionsFolderPath ) ) {
@@ -1216,10 +1219,6 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1216
1219
}
1217
1220
}
1218
1221
1219
- // private prepareApplicationExtensions(pluginPlatformsFolderPath: string, pluginData: IPluginData, projectData: IProjectData): Promise<void> {
1220
-
1221
- // }
1222
-
1223
1222
private removeNativeSourceCode ( pluginPlatformsFolderPath : string , pluginData : IPluginData , projectData : IProjectData ) : void {
1224
1223
const project = this . createPbxProj ( projectData ) ;
1225
1224
const group = this . getRootGroup ( pluginData . name , pluginPlatformsFolderPath ) ;
0 commit comments