|
@@ -1,9 +1,5 @@
|
1
|
1
|
package com.RNFetchBlob;
|
2
|
2
|
|
3
|
|
-import android.app.DownloadManager;
|
4
|
|
-import android.content.Context;
|
5
|
|
-import android.net.Uri;
|
6
|
|
-
|
7
|
3
|
import com.facebook.react.bridge.Callback;
|
8
|
4
|
import com.facebook.react.bridge.ReactApplicationContext;
|
9
|
5
|
import com.facebook.react.bridge.ReadableArray;
|
|
@@ -102,6 +98,8 @@ public class RNFetchBlobReq implements Runnable{
|
102
|
98
|
|
103
|
99
|
try {
|
104
|
100
|
|
|
101
|
+ req = new AsyncHttpClient();
|
|
102
|
+
|
105
|
103
|
// use trusty SSL socket
|
106
|
104
|
if(this.options.trusty) {
|
107
|
105
|
KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());
|