Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

update gradle build tools and gradle version used #1000

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

harkin
Copy link
Contributor

@harkin harkin commented Oct 22, 2018

3.2.1 requires gradle 4.6 or above and adds a bunch of build errors and warnings.

It has a default buildToolsVersion now so specifying one is no longer necessary. it also errors on sdk versions being specified in the manifest

Copy link
Collaborator

@thearaks thearaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gradle 4.6 and Gradle plugin 3.2.1 are fine, even needed I'd say, while for a couple of other changes I've left a comment.
Thank you for your contribution!

@@ -72,7 +72,6 @@ android {
* Update (both Gradle and local SDK) whenever possible
*/
compileSdkVersion 27
buildToolsVersion '27.0.3'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be set to buildToolsVersion "28.0.3"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment below 👍

@@ -2,7 +2,6 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be set to buildToolsVersion "28.0.3"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, as mentioned in the PR description the new gradle build tools have their own internal default for android.buildToolsVersion. For gradle build tools 3.2.1 that default is 28.0.*. Not specifying this is fine and reduces the overhead to keeping an app up to date - keep gradle build tools up to date and you'll be up to date with android build tools too


<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" />
</manifest>
android:versionName="3.3.0" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a bit unrelated to the topic of this PR but it's OK.
Next time I'd put it, at least, in a separate commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not, as mentioned in the PR description build tools 3.2.1 added a bunch of warnings and errors. One was an error when SDK versions are specified in the manifest. If I remember right it actually only errors on targetSdkVersion and minSdkVersion was a warning but I figured removing one would be a less clear change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I split it out anyone into #1006, if that gets merged first I'll rebase this branch 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants