|
@@ -92,7 +92,6 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
92
|
92
|
RNFetchBlobFS.createFile(path, content, encode, callback);
|
93
|
93
|
}
|
94
|
94
|
});
|
95
|
|
-
|
96
|
95
|
}
|
97
|
96
|
|
98
|
97
|
@ReactMethod
|
|
@@ -136,7 +135,6 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
136
|
135
|
RNFetchBlobFS.createFileASCII(path, dataArray, callback);
|
137
|
136
|
}
|
138
|
137
|
});
|
139
|
|
-
|
140
|
138
|
}
|
141
|
139
|
|
142
|
140
|
@ReactMethod
|
|
@@ -167,7 +165,6 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
167
|
165
|
RNFetchBlobFS.cp(path, dest, callback);
|
168
|
166
|
}
|
169
|
167
|
});
|
170
|
|
-
|
171
|
168
|
}
|
172
|
169
|
|
173
|
170
|
@ReactMethod
|
|
@@ -228,7 +225,6 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
228
|
225
|
RNFetchBlobFS.writeFile(path, encoding, data, append, promise);
|
229
|
226
|
}
|
230
|
227
|
});
|
231
|
|
-
|
232
|
228
|
}
|
233
|
229
|
|
234
|
230
|
@ReactMethod
|
|
@@ -263,7 +259,6 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
263
|
259
|
new RNFetchBlobFS(ctx).scanFile(p, m, callback);
|
264
|
260
|
}
|
265
|
261
|
});
|
266
|
|
-
|
267
|
262
|
}
|
268
|
263
|
|
269
|
264
|
@ReactMethod
|
|
@@ -324,7 +319,7 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
324
|
319
|
@ReactMethod
|
325
|
320
|
public void fetchBlob(ReadableMap options, String taskId, String method, String url, ReadableMap headers, String body, final Callback callback) {
|
326
|
321
|
new RNFetchBlobReq(options, taskId, method, url, headers, body, null, mClient, callback).run();
|
327
|
|
-}
|
|
322
|
+ }
|
328
|
323
|
|
329
|
324
|
@ReactMethod
|
330
|
325
|
public void fetchBlobForm(ReadableMap options, String taskId, String method, String url, ReadableMap headers, ReadableArray body, final Callback callback) {
|
|
@@ -370,4 +365,13 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
370
|
365
|
|
371
|
366
|
}
|
372
|
367
|
|
|
368
|
+ @ReactMethod
|
|
369
|
+ public void getSDCardDir(Promise promise) {
|
|
370
|
+ RNFetchBlobFS.getSDCardDir(promise);
|
|
371
|
+ }
|
|
372
|
+
|
|
373
|
+ @ReactMethod
|
|
374
|
+ public void getSDCardApplicationDir(Promise promise) {
|
|
375
|
+ RNFetchBlobFS.getSDCardApplicationDir(this.getReactApplicationContext(), promise);
|
|
376
|
+ }
|
373
|
377
|
}
|