Skip to content

Commit 6e68028

Browse files
triniwizNathanWalker
authored andcommitted
fix(android): get file (#11)
1 parent 0148d89 commit 6e68028

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/http/http.android.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,8 @@ export class Http {
531531

532532
}
533533

534-
// Investigate why a timeout is needed 🤔
535-
setTimeout(()=>{
536-
resolve(result.filePath);
537-
requestCallbacks.delete(id);
538-
},500)
534+
resolve(result.filePath);
535+
requestCallbacks.delete(id);
539536
},
540537
onError(param0: string, param1: java.lang.Exception): void {
541538
reject({

src/platforms/android/include.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88

99
dependencies {
1010
def androidxVersion = project.hasProperty("androidxVersion") ? project.androidxVersion : "1.0.0"
11-
implementation 'com.squareup.okio:okio:2.2.2'
11+
implementation 'com.squareup.okio:okio:2.4.2'
1212
implementation 'com.squareup.okhttp3:okhttp:3.14.2'
1313
implementation "androidx.annotation:annotation:$androidxVersion"
1414
}

0 commit comments

Comments
 (0)