Android: expose Fetch to app as api

This commit is contained in:
Elad Gil
2019-12-09 15:16:22 +02:00
parent 4a3b3752d8
commit 41b9af5817

View File

@@ -19,8 +19,8 @@ dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+'
if (project.properties['android.useAndroidX'] == true) {
implementation "androidx.tonyodev.fetch2:xfetch2:3.1.4"
api "androidx.tonyodev.fetch2:xfetch2:3.1.4"
} else {
implementation "com.tonyodev.fetch2:fetch2:3.0.10"
api "com.tonyodev.fetch2:fetch2:3.0.10"
}
}