Skip to content

Commit 0d190ef

Browse files
committed
pass debug options to gradle build
1 parent 1cbfe4c commit 0d190ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,11 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
252252
return (() => {
253253
if (this.canUseGradle().wait()) {
254254
let buildOptions = this.getBuildOptions();
255+
if (this.$logger.getLevel() === "TRACE") {
256+
buildOptions.unshift("--stacktrace");
257+
buildOptions.unshift("--debug");
258+
}
255259
buildOptions.unshift("buildapk");
256-
257260
let gradleBin = this.useGradleWrapper(projectRoot) ? path.join(projectRoot, "gradlew") : "gradle";
258261
if (this.$hostInfo.isWindows) {
259262
gradleBin += ".bat"; // cmd command line parsing rules are weird. Avoid issues with quotes. See https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/builders/GradleBuilder.js for another approach

0 commit comments

Comments
 (0)