@@ -90,7 +90,6 @@ export class ProjectData implements IProjectData {
9090 public appResourcesDirectoryPath : string ;
9191 public dependencies : any ;
9292 public devDependencies : IStringDictionary ;
93- public ignoredDependencies : string [ ] ;
9493 public projectType : string ;
9594 public androidManifestPath : string ;
9695 public infoPlistPath : string ;
@@ -180,7 +179,6 @@ export class ProjectData implements IProjectData {
180179 this . dependencies = packageJsonData . dependencies ;
181180 this . devDependencies = packageJsonData . devDependencies ;
182181 this . projectType = this . getProjectType ( ) ;
183- this . ignoredDependencies = nsConfig ?. ignoredNativeDependencies ;
184182 this . appDirectoryPath = this . getAppDirectoryPath ( ) ;
185183 this . appResourcesDirectoryPath = this . getAppResourcesDirectoryPath ( ) ;
186184 this . androidManifestPath = this . getPathToAndroidManifest (
@@ -359,6 +357,18 @@ export class ProjectData implements IProjectData {
359357 return identifier ;
360358 }
361359
360+ getIgnoredDependencies ( platform : string ) {
361+ let ignoredNativeDependencies = this . nsConfig ?. ignoredNativeDependencies ?? [ ] ;
362+ if ( platform === constants . PlatformTypes . visionos ) {
363+ ignoredNativeDependencies = ignoredNativeDependencies . concat ( this . nsConfig ?. visionos ?. ignoredNativeDependencies ?? [ ] )
364+ } else if ( platform === constants . PlatformTypes . ios ) {
365+ ignoredNativeDependencies = ignoredNativeDependencies . concat ( this . nsConfig ?. ios ?. ignoredNativeDependencies ?? [ ] )
366+ } else if ( platform === constants . PlatformTypes . android ) {
367+ ignoredNativeDependencies = ignoredNativeDependencies . concat ( this . nsConfig ?. android ?. ignoredNativeDependencies ?? [ ] )
368+ }
369+ return ignoredNativeDependencies ;
370+ }
371+
362372 private getProjectType ( ) : string {
363373 let detectedProjectType = _ . find (
364374 ProjectData . PROJECT_TYPES ,
0 commit comments