File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 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
677677 projectAppResourcesPath
678678 ) ;
679679 if ( appResourcesDirStructureHasMigrated ) {
680+
681+ const resourcesPath = path . join (
682+ projectAppResourcesPath ,
683+ platformData . normalizedPlatformName ) ;
680684 this . $fs . copyFile (
681685 path . join (
682- projectAppResourcesPath ,
683- platformData . normalizedPlatformName ,
686+ resourcesPath ,
684687 constants . SRC_DIR ,
685688 "*"
686689 ) ,
687690 platformsAppResourcesPath
688691 ) ;
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+ } ) ;
689705 } else {
690706 this . $fs . copyFile (
691707 path . join (
You can’t perform that action at this time.
0 commit comments