Skip to content

Commit 874d3a0

Browse files
committed
keep debug target
1 parent 72413b5 commit 874d3a0

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

src/processing/mode/android/AndroidBuild.java

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,11 @@ public File build(String target) throws IOException, SketchException {
166166
// so the watchface can be uninstalled from the phone, and can be
167167
// published on Google Play.
168168
File wearFolder = createProject(targetID, true);
169-
if (wearFolder != null) {
170-
if (!antBuild()) {
171-
return null;
172-
}
173-
}
174-
169+
if (wearFolder == null) return null;
170+
if (!antBuild()) return null;
175171
File folder = createHandheldProject(targetID, wearFolder, null);
176-
if (folder != null) {
177-
if (!antBuild()) {
178-
return null;
179-
}
180-
}
172+
if (folder == null) return null;
173+
if (!antBuild()) return null;
181174
return folder;
182175
} else {
183176
File folder = createProject(targetID, false);
@@ -592,14 +585,15 @@ public File exportProject() throws IOException, SketchException {
592585
Preferences.set("android.export.build_system", buildSystem);
593586
}
594587

595-
if (buildSystem.equals("ant")) {
596-
// this will set debuggable to true in the manifest file
597-
target = "debug";
598-
} else {
599-
// debuggable property should not set in the manifest file when building
600-
// with gradle
601-
target = "";
602-
}
588+
// if (buildSystem.equals("ant")) {
589+
// // this will set debuggable to true in the manifest file
590+
// target = "debug";
591+
// } else {
592+
// // debuggable property should not set in the manifest file when building
593+
// // with gradle
594+
// target = "";
595+
// }
596+
target = "debug";
603597

604598
String targetID = getTargetID();
605599

0 commit comments

Comments
 (0)