support package without bundle.
This commit is contained in:
parent
40bf697f76
commit
611b0570f8
@ -151,7 +151,12 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, Void, Void> {
|
||||
}
|
||||
|
||||
private byte[] readOriginBundle() throws IOException {
|
||||
InputStream in = context.getAssets().open("index.android.bundle");
|
||||
InputStream in;
|
||||
try {
|
||||
in = context.getAssets().open("index.android.bundle");
|
||||
} catch (Exception e) {
|
||||
return new byte[0];
|
||||
}
|
||||
int count;
|
||||
|
||||
ByteArrayOutputStream fout = new ByteArrayOutputStream();
|
||||
|
Loading…
Reference in New Issue
Block a user