File tree 1 file changed +18
-2
lines changed 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -677,15 +677,31 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
677
677
projectAppResourcesPath
678
678
) ;
679
679
if ( appResourcesDirStructureHasMigrated ) {
680
+
681
+ const resourcesPath = path . join (
682
+ projectAppResourcesPath ,
683
+ platformData . normalizedPlatformName ) ;
680
684
this . $fs . copyFile (
681
685
path . join (
682
- projectAppResourcesPath ,
683
- platformData . normalizedPlatformName ,
686
+ resourcesPath ,
684
687
constants . SRC_DIR ,
685
688
"*"
686
689
) ,
687
690
platformsAppResourcesPath
688
691
) ;
692
+
693
+ const destinationFolder = this . getPlatformData ( projectData ) . projectRoot ;
694
+ const contents = this . $fs . readDirectory ( resourcesPath ) ;
695
+ _ . each ( contents , ( fileName ) => {
696
+ const filePath = path . join ( resourcesPath , fileName ) ;
697
+ const fsStat = this . $fs . getFsStats ( filePath ) ;
698
+ if ( fsStat . isDirectory ( ) && fileName !== constants . SRC_DIR ) {
699
+ console . log ( 'copying folder' , filePath )
700
+ this . $fs . copyFile ( filePath ,
701
+ destinationFolder
702
+ ) ;
703
+ }
704
+ } ) ;
689
705
} else {
690
706
this . $fs . copyFile (
691
707
path . join (
You can’t perform that action at this time.
0 commit comments