Skip to content

Commit

Permalink
dx: fix android builds after jcenter-pocalypse
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Oct 31, 2022
1 parent cf1b72a commit b2dd0c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ android {
}
}

lintOptions {
checkReleaseBuilds false
}

// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
Expand Down
9 changes: 9 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b2dd0c4

Please sign in to comment.