rewritten android side from Fetch to DownloadManager. Everything works except manual pause/resume

This commit is contained in:
Kesha Antonov
2023-12-22 15:16:46 +03:00
parent 401d31ce43
commit bd1e4adfc6
14 changed files with 727 additions and 446 deletions
-9
View File
@@ -1,7 +1,5 @@
apply plugin: 'com.android.library'
def useAndroidX = (project.hasProperty('android.useAndroidX')) ? project.property('android.useAndroidX') : false
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
@@ -26,11 +24,4 @@ android {
dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+'
if (useAndroidX) {
api 'com.github.tonyofrancis.Fetch:xfetch2:3.1.6'
implementation 'com.github.tonyofrancis.Fetch:xfetch2okhttp:3.1.6'
} else {
api 'com.tonyodev.fetch2:fetch2:3.0.12'
implementation 'com.tonyodev.fetch2okhttp:fetch2okhttp:3.0.12'
}
}