@@ -42,9 +42,10 @@ export class PreparePlatformNativeService extends PreparePlatformService impleme
42
42
await config . platformData . platformProjectService . prepareProject ( config . projectData , config . platformSpecificData ) ;
43
43
}
44
44
45
- const shouldPrepareModules = ! config . changesInfo || config . changesInfo . modulesChanged ;
45
+ const hasModulesChange = ! config . changesInfo || config . changesInfo . modulesChanged ;
46
+ const hasConfigChange = ! config . changesInfo || config . changesInfo . configChanged ;
46
47
47
- if ( shouldPrepareModules ) {
48
+ if ( hasModulesChange ) {
48
49
await this . $pluginsService . validate ( config . platformData , config . projectData ) ;
49
50
50
51
const appDestinationDirectoryPath = path . join ( config . platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
@@ -64,9 +65,9 @@ export class PreparePlatformNativeService extends PreparePlatformService impleme
64
65
await this . $nodeModulesBuilder . prepareNodeModules ( { nodeModulesData, release : config . appFilesUpdaterOptions . release } ) ;
65
66
}
66
67
67
- if ( ! config . changesInfo || config . changesInfo . configChanged || config . changesInfo . modulesChanged ) {
68
- // Passing !shouldPrepareModules` we assume that if the node modules are prepared base Podfile content is added and `pod install` is executed.
69
- await config . platformData . platformProjectService . processConfigurationFilesFromAppResources ( config . projectData , { release : config . appFilesUpdaterOptions . release , installPods : ! shouldPrepareModules } ) ;
68
+ if ( hasModulesChange || hasConfigChange ) {
69
+ await config . platformData . platformProjectService . processConfigurationFilesFromAppResources ( config . projectData , { release : config . appFilesUpdaterOptions . release } ) ;
70
+ await config . platformData . platformProjectService . afterPrepareAllPlugins ( config . projectData ) ;
70
71
}
71
72
72
73
config . platformData . platformProjectService . interpolateConfigurationFile ( config . projectData , config . platformSpecificData ) ;
0 commit comments