Skip to content

Conversation

@jmanriquehiberus
Copy link
Contributor

🎟️ Jira ticket

ANDROID-17069

πŸ₯… What's the goal?

We need to update the android gradle plugin version to 8.13.1.

🚧 How do we do it?

Replace in app's build.gradle:

classpath 'com.android.tools.build:gradle:8.11.2'

with

classpath 'com.android.tools.build:gradle:8.13.1'

Out of scope

Given that I had to set the AGP version, previously 8.11.2 in several places, I decided to extract it to variables, creating a libs.versions.tomlfile. It did not took to much effort to do the same with the few libraries implemented in this repo, so I extracted them too tolibs.versions.toml`.

…bview into jmanrique/ANDROID-17069-update-agp

# Conflicts:
#	app/build.gradle
#	build.gradle
#	gradle.properties
#	gradle/wrapper/gradle-wrapper.properties
#	nestedscrollwebview/build.gradle
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Part of the AGP update to 8.13.1

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this documented? can't find it here: https://developer.android.com/build/releases/gradle-plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AGP 8.0 and higher changed several default configurations. Specifically, the BuildConfig.java file stopped being generated automatically unless you explicitly request it.
The update assistant detected that the project probably used it.

HOWEVER, we were not using BuildConfig, so we can get rid of it jejejejeje

@jmanriquehiberus jmanriquehiberus requested review from a team, hjorrod and pmartinbTEF and removed request for a team November 24, 2025 12:43
versionCode = "1"
versionName = "1.0"
agp = "8.13.1"
kotlin = "1.8.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be updated too?

Copy link
Contributor Author

@jmanriquehiberus jmanriquehiberus Nov 25, 2025

Choose a reason for hiding this comment

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

I think it is not necessary at the moment.

org.jetbrains.kotlin.android

was recently updated to version 2.1.20, but

androidx.core:core-ktx

and

com.google.android.material:material

were not. In this case, it is not necessary to update those for the AGP update.

Copy link
Contributor

@pmartinbTEF pmartinbTEF left a comment

Choose a reason for hiding this comment

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

Nice! Just one question

Copy link
Contributor

@pmartinbTEF pmartinbTEF left a comment

Choose a reason for hiding this comment

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

Good job!

@jmanriquehiberus jmanriquehiberus merged commit 993b12f into main Nov 25, 2025
1 check passed
@jmanriquehiberus jmanriquehiberus deleted the jmanrique/ANDROID-17069-update-agp branch November 25, 2025 12:55
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.

4 participants