diff --git a/android/build.gradle b/android/build.gradle index 2bcef7af..ce6bda81 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -10,9 +10,13 @@ buildscript { allprojects { repositories { + mavenLocal() + maven { + // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm + url("$rootDir/../node_modules/react-native-electrode-bridge/android/electrode-reactnative-bridge") + } google() jcenter() - mavenLocal() } } diff --git a/android/lib/build.gradle b/android/lib/build.gradle index e34086ab..9a4bf984 100644 --- a/android/lib/build.gradle +++ b/android/lib/build.gradle @@ -26,7 +26,8 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' - api ('com.walmartlabs.ern:local-container:1.0.0') {changing=true} +// api ('com.walmartlabs.ern:local-container:1.0.0') {changing=true} + implementation project(":electrode-reactnative-bridge") testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' diff --git a/android/settings.gradle b/android/settings.gradle index d91182fb..14128d98 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1 +1,3 @@ include ':lib', ':moviesreloaded' +include ':electrode-reactnative-bridge' +project(':electrode-reactnative-bridge').projectDir = new File('../node_modules/react-native-electrode-bridge/android/electrode-reactnative-bridge')