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

Update AGP, Kotlin, Compose, Api level and other dependecies #40

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

yamal-alm
Copy link
Contributor

@yamal-alm yamal-alm commented Apr 23, 2024

🥅 What's the goal?

Update AGP, Kotlin, Compose, Api level and other dependencies

🚧 How do we do it?

  • Kotlin to 1.9.23
  • Use latest BOM at the moment: 2024.04.01
  • Use corresponding kotlin compose compiler version according to this table: 1.5.12 in this case
  • AGP 8.2.2
  • Target and compile sdk to 34
  • Java 17
  • Update every other dependencies

📘 Documentation changes?

  • No docs to update nor create

🧪 How can I test this?

  • Everything looks ok in demo app

Comment on lines 15 to 20
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ubuntu-latests uses Java 11 by default, we need to set 17 explicitly

@@ -4,12 +4,13 @@ plugins {
}

android {
compileSdk 33
namespace "com.telefonica.tweaks.demo"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new namespace declaration coming from AGP 8.2.2

Comment on lines -4 to +7
compose_compiler_version = '1.4.2'
kotlin_version = '1.8.10'
compose_version = '1.3.2'
compose_material_version = '1.4.0'
dagger_version = "2.43.2"
compose_compiler_version = '1.5.12'
compose_bom_version = '2024.04.01'
kotlin_version = '1.9.23'
dagger_version = "2.51.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ideally we should use a toml catalog, but that is out of scope of this task

dagger_version = "2.43.2"
compose_compiler_version = '1.5.12'
compose_bom_version = '2024.04.01'
kotlin_version = '1.9.23'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

latest kotlin version

compose_version = '1.3.2'
compose_material_version = '1.4.0'
dagger_version = "2.43.2"
compose_compiler_version = '1.5.12'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

compose kotlin compiler accoding to this table based on kotlin version

Comment on lines -18 to +17
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.2.2'
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 updated as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

library module:

  • target 34
  • java 17
  • use latest compose version through BOM
  • Use ksp instead of kapt for Dagger
  • other dependencies updates

build.gradle Outdated
@@ -24,6 +23,7 @@ buildscript {
plugins {
id("io.gitlab.arturbosch.detekt").version("1.18.1")
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' apply false
id("com.google.devtools.ksp") version "1.9.23-1.0.20" apply false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

using ksp instead of kapt

@yamal-alm yamal-alm marked this pull request as ready for review April 23, 2024 13:16
@yamal-alm yamal-alm requested review from a team, pmartinbTEF, juangardi21 and jdelga and removed request for a team and juangardi21 April 23, 2024 13:16
Copy link
Member

@jdelga jdelga left a comment

Choose a reason for hiding this comment

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

Great 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.

Great job!

@yamal-alm yamal-alm merged commit 3a49297 into main Apr 25, 2024
3 checks passed
@yamal-alm yamal-alm deleted the update-deps branch April 25, 2024 09:53
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.

3 participants