From e90dfb4065f1d5c77d9e793eca224b1f07c4e51d Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Sat, 5 Nov 2022 10:10:02 +0200 Subject: [PATCH] apply android rn build fix --- android/build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 07108cfd8a..28378bf2ef 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -38,6 +38,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" + } + } + } google() mavenCentral() mavenLocal()