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 {
|
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;
|
int count;
|
||||||
|
|
||||||
ByteArrayOutputStream fout = new ByteArrayOutputStream();
|
ByteArrayOutputStream fout = new ByteArrayOutputStream();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user