@@ -235,7 +235,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
235
235
const frameworkBinaryPath = path . join ( bundlePath , frameworkName ) ;
236
236
237
237
const fileResult = ( await this . $childProcess . spawnFromEvent ( "file" , [ frameworkBinaryPath ] , "close" ) ) . stdout ;
238
- const isDynamicallyLinked = _ . includes ( fileResult , "dynamically linked" ) ;
238
+ const isDynamicallyLinked = _ . includes ( fileResult , "dynamically linked" ) ;
239
239
return isDynamicallyLinked ;
240
240
} ;
241
241
@@ -289,23 +289,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
289
289
this . savePbxProj ( project , projectData ) ;
290
290
}
291
291
292
- public canUpdatePlatform ( installedModuleDir : string , projectData : IProjectData ) : boolean {
293
- const currentXcodeProjectFile = this . buildPathToCurrentXcodeProjectFile ( projectData ) ;
294
- const currentXcodeProjectFileContent = this . $fs . readFile ( currentXcodeProjectFile ) ;
295
-
296
- const newXcodeProjectFile = this . buildPathToNewXcodeProjectFile ( installedModuleDir ) ;
297
- this . replaceFileContent ( newXcodeProjectFile , projectData ) ;
298
- const newXcodeProjectFileContent = this . $fs . readFile ( newXcodeProjectFile ) ;
299
-
300
- const contentIsTheSame = currentXcodeProjectFileContent . toString ( ) === newXcodeProjectFileContent . toString ( ) ;
301
-
302
- if ( ! contentIsTheSame ) {
303
- this . $logger . warn ( `The content of the current project file: ${ currentXcodeProjectFile } and the new project file: ${ newXcodeProjectFile } is different.` ) ;
304
- }
305
-
306
- return contentIsTheSame ;
307
- }
308
-
309
292
public async prepareProject ( projectData : IProjectData , prepareData : IOSPrepareData ) : Promise < void > {
310
293
const projectRoot = path . join ( projectData . platformsDir , "ios" ) ;
311
294
const platformData = this . getPlatformData ( projectData ) ;
@@ -620,18 +603,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
620
603
private getAllLibsForPluginWithFileExtension ( pluginData : IPluginData , fileExtension : string | string [ ] ) : string [ ] {
621
604
const fileExtensions = _ . isArray ( fileExtension ) ? fileExtension : [ fileExtension ] ;
622
605
const filterCallback = ( fileName : string , pluginPlatformsFolderPath : string ) =>
623
- fileExtensions . indexOf ( path . extname ( fileName ) ) !== - 1 ;
606
+ fileExtensions . indexOf ( path . extname ( fileName ) ) !== - 1 ;
624
607
return this . getAllNativeLibrariesForPlugin ( pluginData , IOSProjectService . IOS_PLATFORM_NAME , filterCallback ) ;
625
608
}
626
609
627
- private buildPathToCurrentXcodeProjectFile ( projectData : IProjectData ) : string {
628
- return path . join ( projectData . platformsDir , "ios" , `${ projectData . projectName } .xcodeproj` , "project.pbxproj" ) ;
629
- }
630
-
631
- private buildPathToNewXcodeProjectFile ( newModulesDir : string ) : string {
632
- return path . join ( newModulesDir , constants . PROJECT_FRAMEWORK_FOLDER_NAME , `${ IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER } .xcodeproj` , "project.pbxproj" ) ;
633
- }
634
-
635
610
private validateFramework ( libraryPath : string ) : void {
636
611
const infoPlistPath = path . join ( libraryPath , constants . INFO_PLIST_FILE_NAME ) ;
637
612
if ( ! this . $fs . exists ( infoPlistPath ) ) {
0 commit comments