ANDROID-16201 - Update API 34 and some components such AGP and Kotlin versions#21
ANDROID-16201 - Update API 34 and some components such AGP and Kotlin versions#21dhonti-axpe merged 7 commits intomainfrom
Conversation
- Update AGP 7.4 --> 8.11 - compileSdk and targetSdk 31 --> 34
There was a problem hiding this comment.
Following ticket is created to do corresponding migration to "shared-workflows": https://jira.tid.es/browse/ANDROID-16907
build.gradle
Outdated
| id 'org.jetbrains.kotlin.android' version '1.6.21' apply false | ||
| id 'com.android.application' version '8.11.2' apply false | ||
| id 'com.android.library' version '8.11.2' apply false | ||
| id 'org.jetbrains.kotlin.android' version '2.2.20' apply false |
There was a problem hiding this comment.
I would update to Kotlin 2.1 as we have in the rest of the apps
There was a problem hiding this comment.
Applied changes here: bdb1c13
To last stable 2.1.X Kotlin version: https://kotlinlang.org/docs/whatsnew2120.html
| # 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.nonFinalResIds=false |
There was a problem hiding this comment.
I followed the Android Studio AGP assistant update to do this task quicker and it added this line.
Checking the documentation:
https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes?hl=es-419#default-changes
This line disables the new generation of non-final resources introduced in AGP, causing R ID's to return to final. It's usually added automatically when you migrate an old project to maintain compatibility, although it's recommended to gradually remove this dependency and leave it as true (or simply not declare it, since the current default is true).
If you consider necessary I would remove this line. WDYT?
|
I would generate a snapshot and test it with android-messenger repo to be sure that it works. |
Tested this snapshot "0.2.0-SNAPSHOT" version: |
🎟️ Jira ticket
ANDROID-16201
🥅 What's the goal?
Update the current Android API level 31 -> 34
🚧 How do we do it?
The apply this update is necessary to apply next upgrades:
compileSdkandtargetSdk31 --> 34test.ymlfile to fit corresponding workflow to use Java 17✅ Documentation changes?
🧪 How can I test this?