Last active
February 6, 2019 19:11
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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