Skip to content

Commit 777e18e

Browse files
Merge pull request #1694 from NativeScript/vladimirov/fix-android-symlink
Do not symlink build-tools directory
2 parents b2789a8 + 2b51d61 commit 777e18e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/services/android-project-service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,9 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
117117
let targetSdkVersion = androidToolsInfo.targetSdkVersion;
118118
this.$logger.trace(`Using Android SDK '${targetSdkVersion}'.`);
119119
if(this.$options.symlink) {
120-
this.symlinkDirectory("build-tools", this.platformData.projectRoot, frameworkDir).wait();
121120
this.symlinkDirectory("libs", this.platformData.projectRoot, frameworkDir).wait();
122121
} else {
123-
this.copy(this.platformData.projectRoot, frameworkDir, "build-tools libs", "-R");
122+
this.copy(this.platformData.projectRoot, frameworkDir, "libs", "-R");
124123
}
125124

126125
// These files and directories should not be symlinked as CLI is modifying them and we'll change the original values as well.
@@ -129,7 +128,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
129128
this.$fs.createDirectory(mainPath).wait();
130129
shell.cp("-R", path.join(path.resolve(pathToTemplate), "*"), mainPath);
131130
} else {
132-
this.copy(this.platformData.projectRoot, frameworkDir, "src", "-R");
131+
this.copy(this.platformData.projectRoot, frameworkDir, "src build-tools", "-R");
133132
}
134133
this.copy(this.platformData.projectRoot, frameworkDir, "build.gradle settings.gradle gradle.properties", "-f");
135134

0 commit comments

Comments
 (0)