This repository was archived by the owner on Feb 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
android/src/main/java/com/eko Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,6 @@ public void onError(Download download) {
242
242
Error error = download .getError ();
243
243
Throwable throwable = error .getThrowable ();
244
244
245
- Log .e (getName (), error .toString ());
246
245
WritableMap params = Arguments .createMap ();
247
246
params .putString ("id" , requestIdToConfig .get (download .getId ()).id );
248
247
if (error == Error .UNKNOWN && throwable != null ) {
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ + (void)setCompletionHandlerWithIdentifier: (NSString *)identifier completionHan
110
110
NSString *url = options[@" url" ];
111
111
NSString *destination = options[@" destination" ];
112
112
if (identifier == nil || url == nil || destination == nil ) {
113
- NSLog (@" [RNFileBackgroundDownload] [Error] id, url and destination must be set" );
113
+ NSLog (@" [RNFileBackgroundDownload] - [Error] id, url and destination must be set" );
114
114
return ;
115
115
}
116
116
@@ -152,7 +152,6 @@ + (void)setCompletionHandlerWithIdentifier: (NSString *)identifier completionHan
152
152
NSMutableArray *idsFound = [[NSMutableArray alloc ] init ];
153
153
for (NSURLSessionDownloadTask *foundTask in downloadTasks) {
154
154
NSURLSessionDownloadTask __strong *task = foundTask;
155
- NSLog (@" Found task with url: %@ " , task.currentRequest .URL .absoluteString );
156
155
RNBGDTaskConfig *taskConfig = urlToConfigMap[task.currentRequest.URL.absoluteString];
157
156
if (taskConfig) {
158
157
if (task.state == NSURLSessionTaskStateCompleted && task.countOfBytesReceived < task.countOfBytesExpectedToReceive ) {
@@ -246,7 +245,6 @@ - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didComp
246
245
}
247
246
248
247
- (void )URLSessionDidFinishEventsForBackgroundURLSession : (NSURLSession *)session {
249
- NSLog (@" in URLSessionDidFinishEventsForBackgroundURLSession" );
250
248
if (storedCompletionHandler) {
251
249
[[NSOperationQueue mainQueue ] addOperationWithBlock: ^{
252
250
storedCompletionHandler ();
You can’t perform that action at this time.
0 commit comments