Skip to content

Commit

Permalink
fix(app): BuildActivity crash when package.json is illegal
Browse files Browse the repository at this point in the history
  • Loading branch information
hyb1996 committed May 29, 2018
1 parent 0ffb8d1 commit aa770b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static ProjectConfig fromJson(String json) {
public static ProjectConfig fromAssets(Context context, String path) {
try {
return fromJson(PFiles.read(context.getAssets().open(path)));
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
return null;
}
Expand All @@ -64,7 +64,7 @@ public static ProjectConfig fromAssets(Context context, String path) {
public static ProjectConfig fromFile(String path) {
try {
return fromJson(PFiles.read(path));
} catch (UncheckedIOException e) {
} catch (Exception e) {
e.printStackTrace();
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion common/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":263},"path":"commonRelease-4.0.0 Alpha.apk","properties":{"packageId":"org.autojs.autojs","split":"","minSdkVersion":"17"}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":401},"path":"commonRelease-4.0.0 Alpha1.apk","properties":{"packageId":"org.autojs.autojs","split":"","minSdkVersion":"17"}}]

0 comments on commit aa770b2

Please sign in to comment.