-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build tools and sdk update #147
Conversation
@jasonalmaturner Thank you for the changes, would you mind making the build tools use the root project versions like following:
|
Totally. That's a much better solution. |
android/build.gradle
Outdated
|
||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 23 | ||
targetSdkVersion 26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I use safeExtGet
for the targetSdkVersion
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have seen most of the react-native packages using this on buildToolsVersion
and targetSdkVersion
as well.
This is required to be released soon to work with RN 0.56 |
android/build.gradle
Outdated
|
||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 26 | ||
targetSdkVersion safeExtGet('compileSdkVersion', 26) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be safeExtGet('targetSdkVersion', 26)
?
android/build.gradle
Outdated
compileSdkVersion 25 | ||
buildToolsVersion "25.0.3" | ||
compileSdkVersion safeExtGet('compileSdkVersion', 26) | ||
buildToolsVersion safeExtGet('compileSdkVersion', "26.0.3") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one needs to be safeExtGet('buildToolsVersion', "26.0.3")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gosh. I'm dumb. Yes. I'll fix that right now.
What's the timeline for this being merged and released? We need this for an upcoming release and I'd like to avoid forking this project. |
Will try to look into this. In the meantime you can still use the following in your root subprojects { subproject ->
afterEvaluate{
if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
} |
Any other changes need to be made to this pr before it's merged? |
Update the Android build tools and sdk to work with React Native 0.56.