Skip to content

Instantly share code, notes, and snippets.

@badpenguin
Last active February 6, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badpenguin/fbe57832f425792be540b8fe73aaa603 to your computer and use it in GitHub Desktop.
Save badpenguin/fbe57832f425792be540b8fe73aaa603 to your computer and use it in GitHub Desktop.
snippets of android/build.gradle used to fix compilation problems with outdated subprojects in React Native 0.58.3
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android") && VersionNumber.parse(project.property("android").buildToolsVersion) < VersionNumber.parse("28.0.2")) {
def oldver = VersionNumber.parse(project.property("android").buildToolsVersion)
println ""
println "(*) UPGRADING $project.name from $oldver ..."
println ""
android {
compileSdkVersion 28
buildToolsVersion '28.0.2'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment