mirror of
https://github.com/zoriya/react-native-background-downloader.git
synced 2026-06-01 17:45:14 +00:00
upd from local changes to work correctly
This commit is contained in:
@@ -5,11 +5,11 @@ def safeExtGet(prop, fallback) {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion safeExtGet("compileSdkVersion", 28)
|
||||
compileSdkVersion safeExtGet("compileSdkVersion", 30)
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion safeExtGet('minSdkVersion', 16)
|
||||
targetSdkVersion safeExtGet('targetSdkVersion', 28)
|
||||
minSdkVersion safeExtGet('minSdkVersion', 21)
|
||||
targetSdkVersion safeExtGet('targetSdkVersion', 30)
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
ndk {
|
||||
@@ -22,8 +22,10 @@ dependencies {
|
||||
//noinspection GradleDynamicVersion
|
||||
implementation 'com.facebook.react:react-native:+'
|
||||
if (project.properties['android.useAndroidX'] == 'true' || project.properties['android.useAndroidX'] == true) {
|
||||
api "androidx.tonyodev.fetch2:xfetch2:3.1.4"
|
||||
api "androidx.tonyodev.fetch2:xfetch2:3.1.6"
|
||||
implementation "androidx.tonyodev.fetch2okhttp:xfetch2okhttp:3.1.6"
|
||||
} else {
|
||||
api "com.tonyodev.fetch2:fetch2:3.0.10"
|
||||
api "com.tonyodev.fetch2:fetch2:3.0.12"
|
||||
implementation "com.tonyodev.fetch2okhttp:fetch2okhttp:3.0.12"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user