From b2dd0c405e204eba3f5a70dcc498f62aba7f23ab Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Mon, 31 Oct 2022 14:42:50 +0200 Subject: [PATCH] dx: fix android builds after jcenter-pocalypse See https://blog.gradle.org/jcenter-shutdown and https://github.com/facebook/react-native/issues/35145 --- android/app/build.gradle | 4 ++++ android/build.gradle | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/android/app/build.gradle b/android/app/build.gradle index 02247e61e..cf88a7d58 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -251,6 +251,10 @@ android { } } + lintOptions { + checkReleaseBuilds false + } + // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> diff --git a/android/build.gradle b/android/build.gradle index 4db49da69..a6d1359cc 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -39,6 +39,15 @@ allprojects { excludeGroup "com.facebook.react" } } + all { ArtifactRepository repo -> + if (repo instanceof MavenArtifactRepository) { + def url = repo.url.toString() + if (url.startsWith('https://jcenter.bintray.com/')) { + project.logger.lifecycle "Repository ${repo.url} dropped" + remove repo + } + } + } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android")