diff --git a/android/app/build.gradle b/android/app/build.gradle index 616da0a..a2776bb 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -183,7 +183,7 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) //noinspection GradleDynamicVersion - implementation "com.facebook.react:react-native:+" // From node_modules + implementation project(':ReactAndroid') implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" @@ -208,6 +208,10 @@ dependencies { } } +configurations.all { + exclude group: 'com.facebook.react', module: 'react-native' +} + // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { diff --git a/android/build.gradle b/android/build.gradle index ed5a568..dcffcd2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -13,6 +13,7 @@ buildscript { } dependencies { classpath("com.android.tools.build:gradle:3.5.3") + classpath 'de.undercouch:gradle-download-task:4.0.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/android/settings.gradle b/android/settings.gradle index dcae3d9..20cf62a 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,3 +1,7 @@ rootProject.name = 'LogBoxTest' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) + +include ':ReactAndroid' +project(':ReactAndroid').projectDir = new File(rootProject.projectDir, '../node_modules/react-native/ReactAndroid') + include ':app'