From db5e32e5cf638e5930d2463ccb7d84bd5ddb5a73 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Wed, 18 Aug 2021 19:41:19 +0500 Subject: [PATCH] shifted repo to mavenCentral with exception of few selective group remove when replacement for selective groups is available the jcenter will be accessible as read-only indefinitely so we should be good for now with these selective packages as they are not available off of jCenter --- android/build.gradle | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 26e7d0778..a1886f493 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,8 +23,10 @@ buildscript { firebaseVersion = "17.3.4" } repositories { + mavenCentral() google() - jcenter() + + } dependencies { classpath('com.android.tools.build:gradle:4.1.0') @@ -37,6 +39,7 @@ buildscript { allprojects { repositories { + mavenCentral() mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm @@ -50,9 +53,22 @@ allprojects { maven { url 'https://maven.google.com' } google() - jcenter() maven { url "https://www.jitpack.io" } - // mavenCentral() + + + //TODO: remove when replacement for selective groups is available + //the jcenter will be accessible as read-only indefinitely so we should be + //good for now with these selective packages as they are not available off of + //jCenter + jcenter() { + content { + // these groups only available in jcenter otherwise we don't want to rely on jcenter. + includeGroup("com.facebook.yoga") + includeGroup("com.facebook.fbjni") + includeGroup("com.henninghall.android") + includeGroup("org.matomo.sdk") + } + } } }