From 0a64a92815cbd755daed7777b99631d91c600bab Mon Sep 17 00:00:00 2001 From: Francesco Persico Date: Sat, 5 Nov 2022 20:57:58 +0100 Subject: [PATCH] fix(Platform): [IOAPPFD0-12] Fix Android bundling (#4160) --- android/build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index ca00383f2ac..7e39632370c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -36,6 +36,20 @@ buildscript { allprojects { repositories { + exclusiveContent { + // We get React Native's Android binaries exclusively through npm, + // from a local Maven repo inside node_modules/react-native/. + // (The use of exclusiveContent prevents looking elsewhere like Maven Central + // and potentially getting a wrong version.) + filter { + includeGroup "com.facebook.react" + } + forRepository { + maven { + url "$rootDir/../node_modules/react-native/android" + } + } + } mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm