Skip to content
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

Upgrade Gradle to 7.3.3 & Android Gradle Plugin to 7.1.1 #3

Merged
merged 4 commits into from
Feb 11, 2022

Conversation

oguzkocer
Copy link
Collaborator

This PR updates Gradle and Android Gradle Plugin to their latest versions. It builds on top of #2 and should be reviewed/merged after it.

  • In 6dba9fb, Gradle wrapper is updated with the ./gradlew wrapper --gradle-version 7.3.3 --distribution-type all command.
  • 059c313 updates Android Gradle Plugin to its latest version 7.1.0. I was a little reluctant to go to the latest version, but since there weren't any build errors specific to this version, I figured this way we'd test everything only once. I am open to suggestions if there is any preference for going with another version.
  • d38059a updates the compile & target sdk's to 30. This is a required change for the Android Gradle Plugin update and would have been necessary even if we upgraded to 4.2.2. (latest version before 7.0) It also drops the buildToolsVersion which has been deprecated and no longer necessary.

I have some reservations about upgrading the target sdk due to my unfamiliarity with the project as the change needs to be tested thoroughly. I am hoping the reviewers can help me with this.

There is a good chance we'd want to test its integration to the Tumblr app before we approve this PR, which is completely fine by me. I'll keep opening PRs that build on top of each other and when we get to publishing the library artifacts, we can test the integration. This approach should still make it easier to review the PRs & follow along the changes. 🤞

Copy link
Collaborator

@obsantos obsantos left a comment

Choose a reason for hiding this comment

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

LGTM 👍


defaultConfig {
applicationId "com.tumblr.permissme.sample"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 30
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we target 31? We are working on upgrading this on the main repo, and the main blocker we have is the lack of Jdk 11 on Jenkins (which is also required for AGP 7.x), so we can do both at the same time

Copy link
Collaborator

Choose a reason for hiding this comment

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

same for compileSdkVersion

Copy link
Collaborator Author

@oguzkocer oguzkocer Feb 1, 2022

Choose a reason for hiding this comment

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

@obsantos Sounds good, addressed it in 3b617ac.

Note that there was a spacing issue in the AndroidManifest file in my initial commit. The force push only updates that and doesn't change the previous commits. I didn't want to create a secondary commit just for that.

@oguzkocer oguzkocer mentioned this pull request Feb 10, 2022
Base automatically changed from fix/lint-and-powermock-errors to master February 11, 2022 20:05
@oguzkocer oguzkocer merged commit 5ab7352 into master Feb 11, 2022
@oguzkocer oguzkocer deleted the upgrade-gradle-and-agp branch February 11, 2022 20:05
@oguzkocer oguzkocer changed the title Upgrade Gradle to 7.3.3 & Android Gradle Plugin to 7.1.0 Upgrade Gradle to 7.3.3 & Android Gradle Plugin to 7.1.1 Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants