mirror of
https://github.com/zoriya/react-native-background-downloader.git
synced 2026-06-04 10:44:44 +00:00
rewritten android side from Fetch to DownloadManager. Everything works except manual pause/resume
This commit is contained in:
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user