@@ -166,18 +166,11 @@ public File build(String target) throws IOException, SketchException {
166
166
// so the watchface can be uninstalled from the phone, and can be
167
167
// published on Google Play.
168
168
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 ;
175
171
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 ;
181
174
return folder ;
182
175
} else {
183
176
File folder = createProject (targetID , false );
@@ -592,14 +585,15 @@ public File exportProject() throws IOException, SketchException {
592
585
Preferences .set ("android.export.build_system" , buildSystem );
593
586
}
594
587
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" ;
603
597
604
598
String targetID = getTargetID ();
605
599
0 commit comments