@@ -66,7 +66,9 @@ export class ProjectChangesService implements IProjectChangesService {
66
66
this . _changesInfo . appFilesChanged = await this . hasChangedAppFiles ( projectData ) ;
67
67
68
68
this . _changesInfo . packageChanged = this . isProjectFileChanged ( projectData , platform ) ;
69
- this . _changesInfo . appResourcesChanged = this . containsNewerFiles ( projectData . appResourcesDirectoryPath , null , projectData ) ;
69
+
70
+ const platformResourcesDir = path . join ( projectData . appResourcesDirectoryPath , platformData . normalizedPlatformName ) ;
71
+ this . _changesInfo . appResourcesChanged = this . containsNewerFiles ( platformResourcesDir , null , projectData ) ;
70
72
/*done because currently all node_modules are traversed, a possible improvement could be traversing only the production dependencies*/
71
73
this . _changesInfo . nativeChanged = this . containsNewerFiles (
72
74
path . join ( projectData . projectDir , NODE_MODULES_FOLDER_NAME ) ,
@@ -77,7 +79,6 @@ export class ProjectChangesService implements IProjectChangesService {
77
79
if ( this . _newFiles > 0 || this . _changesInfo . nativeChanged ) {
78
80
this . _changesInfo . modulesChanged = true ;
79
81
}
80
- const platformResourcesDir = path . join ( projectData . appResourcesDirectoryPath , platformData . normalizedPlatformName ) ;
81
82
if ( platform === this . $devicePlatformsConstants . iOS . toLowerCase ( ) ) {
82
83
this . _changesInfo . configChanged = this . filesChanged ( [ path . join ( platformResourcesDir , platformData . configurationFileName ) ,
83
84
path . join ( platformResourcesDir , "LaunchScreen.storyboard" ) ,
0 commit comments