@@ -100,15 +100,14 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
100
100
if ( this . $options . symlink ) {
101
101
this . symlinkDirectory ( "build-tools" , this . platformData . projectRoot , frameworkDir ) . wait ( ) ;
102
102
this . symlinkDirectory ( "libs" , this . platformData . projectRoot , frameworkDir ) . wait ( ) ;
103
- this . symlinkDirectory ( "src" , this . platformData . projectRoot , frameworkDir ) . wait ( ) ;
104
-
105
- this . $fs . symlink ( path . join ( frameworkDir , "build.gradle" ) , path . join ( this . platformData . projectRoot , "build.gradle" ) ) . wait ( ) ;
106
- this . $fs . symlink ( path . join ( frameworkDir , "settings.gradle" ) , path . join ( this . platformData . projectRoot , "settings.gradle" ) ) . wait ( ) ;
107
103
} else {
108
- this . copy ( this . platformData . projectRoot , frameworkDir , "build-tools libs src" , "-R" ) ;
109
- this . copy ( this . platformData . projectRoot , frameworkDir , "build.gradle settings.gradle" , "-f" ) ;
104
+ this . copy ( this . platformData . projectRoot , frameworkDir , "build-tools libs" , "-R" ) ;
110
105
}
111
106
107
+ // These files and directories should not be symlinked as CLI is modifying them and we'll change the original values as well.
108
+ this . copy ( this . platformData . projectRoot , frameworkDir , "src" , "-R" ) ;
109
+ this . copy ( this . platformData . projectRoot , frameworkDir , "build.gradle settings.gradle" , "-f" ) ;
110
+
112
111
this . cleanResValues ( targetSdkVersion , frameworkVersion ) . wait ( ) ;
113
112
114
113
} ) . future < any > ( ) ( ) ;
0 commit comments