about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoão Ferreiro <ferreiro@pinkroom.dev>2022-12-15 16:23:31 +0000
committerPaul Frazee <pfrazee@gmail.com>2022-12-19 19:26:54 -0600
commit19d5496bfc5cdc913c5b84fd7ef5a4d330c72d2c (patch)
treeee4640e76c0999b20b88c15418f04dda3e479e59
parent723bad1a28ef6dc659708a47c58b916cd3447c2b (diff)
downloadvoidsky-19d5496bfc5cdc913c5b84fd7ef5a4d330c72d2c.tar.zst
rn-fetch-blob android setup
-rw-r--r--android/app/build.gradle2
-rw-r--r--android/settings.gradle3
2 files changed, 4 insertions, 1 deletions
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 932c12d13..8c1b2cbe3 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -267,6 +267,8 @@ dependencies {
     implementation "com.facebook.react:react-native:+"  // From node_modules
 
     implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
+    
+    implementation project(':rn-fetch-blob')                                                                      
 
     debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
         exclude group:'com.facebook.fbjni'
diff --git a/android/settings.gradle b/android/settings.gradle
index 3c22b7a2c..aed268ab2 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -2,7 +2,8 @@ rootProject.name = 'app'
 apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
 include ':app'
 includeBuild('../node_modules/react-native-gradle-plugin')
-
+include ':rn-fetch-blob'
+project(':rn-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/rn-fetch-blob/android')
 if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
     include(":ReactAndroid")
     project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid')