@@ -235,7 +235,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
235235 const frameworkBinaryPath = path . join ( bundlePath , frameworkName ) ;
236236
237237 const fileResult = ( await this . $childProcess . spawnFromEvent ( "file" , [ frameworkBinaryPath ] , "close" ) ) . stdout ;
238- const isDynamicallyLinked = _ . includes ( fileResult , "dynamically linked" ) ;
238+ const isDynamicallyLinked = _ . includes ( fileResult , "dynamically linked" ) ;
239239 return isDynamicallyLinked ;
240240 } ;
241241
@@ -289,23 +289,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
289289 this . savePbxProj ( project , projectData ) ;
290290 }
291291
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-
309292 public async prepareProject ( projectData : IProjectData , prepareData : IOSPrepareData ) : Promise < void > {
310293 const projectRoot = path . join ( projectData . platformsDir , "ios" ) ;
311294 const platformData = this . getPlatformData ( projectData ) ;
@@ -620,18 +603,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
620603 private getAllLibsForPluginWithFileExtension ( pluginData : IPluginData , fileExtension : string | string [ ] ) : string [ ] {
621604 const fileExtensions = _ . isArray ( fileExtension ) ? fileExtension : [ fileExtension ] ;
622605 const filterCallback = ( fileName : string , pluginPlatformsFolderPath : string ) =>
623- fileExtensions . indexOf ( path . extname ( fileName ) ) !== - 1 ;
606+ fileExtensions . indexOf ( path . extname ( fileName ) ) !== - 1 ;
624607 return this . getAllNativeLibrariesForPlugin ( pluginData , IOSProjectService . IOS_PLATFORM_NAME , filterCallback ) ;
625608 }
626609
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-
635610 private validateFramework ( libraryPath : string ) : void {
636611 const infoPlistPath = path . join ( libraryPath , constants . INFO_PLIST_FILE_NAME ) ;
637612 if ( ! this . $fs . exists ( infoPlistPath ) ) {
0 commit comments