Skip to content

Commit 07dfe3e

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #878 from NativeScript/fatme/fix-ant-apk-path
Fix path to .apk file when building ant project
2 parents d90b9fd + c729a2a commit 07dfe3e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/android-project-service.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
6363

6464
public getAppResourcesDestinationDirectoryPath(): IFuture<string> {
6565
return (() => {
66-
return path.join(this.platformData.projectRoot, "src", "main", "res");
66+
if(this.canUseGradle().wait()) {
67+
return path.join(this.platformData.projectRoot, "src", "main", "res");
68+
}
69+
70+
return path.join(this.platformData.projectRoot, "res");
6771
}).future<string>()();
6872
}
6973

@@ -190,6 +194,8 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
190194

191195
let args = this.getAntArgs(this.$options.release ? "release" : "debug", projectRoot);
192196
this.spawn('ant', args).wait();
197+
198+
this.platformData.deviceBuildOutputPath = path.join(this.platformData.projectRoot, "bin");
193199
}
194200
}).future<void>()();
195201
}

0 commit comments

Comments
 (0)