Skip to content

Commit

Permalink
update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
quanda-0562 committed Nov 14, 2023
1 parent df499b8 commit 898e83f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
31 changes: 15 additions & 16 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ plugins {
jacoco
}

@Suppress("UnstableApiUsage")
android {
namespace = "com.example.moviedb"
defaultConfig {
Expand Down Expand Up @@ -132,14 +131,15 @@ android {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
// https://developer.android.com/topic/libraries/data-binding
buildFeatures {
buildConfig = true
// https://developer.android.com/topic/libraries/data-binding
dataBinding = true
compose = true
}
composeOptions {
// check version here https://developer.android.com/jetpack/androidx/releases/compose-kotlin
kotlinCompilerExtensionVersion = "1.5.3"
kotlinCompilerExtensionVersion = "1.5.4"
}
lint {
// checkReleaseBuilds = false
Expand All @@ -154,15 +154,15 @@ dependencies {
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.recyclerview:recyclerview:1.3.2")
implementation("com.google.android.material:material:1.10.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.10")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.20")
implementation("androidx.multidex:multidex:2.0.1")

// List of KTX extensions
// https://developer.android.com/kotlin/ktx/extensions-list
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.activity:activity-ktx:1.8.0")
implementation("androidx.fragment:fragment-ktx:1.6.1")
implementation("androidx.fragment:fragment-ktx:1.6.2")

// Lifecycle
// https://developer.android.com/jetpack/androidx/releases/lifecycle
Expand All @@ -187,9 +187,9 @@ dependencies {

// navigation
// https://developer.android.com/jetpack/androidx/releases/navigation
implementation("androidx.navigation:navigation-runtime-ktx:2.7.4")
implementation("androidx.navigation:navigation-fragment-ktx:2.7.4")
implementation("androidx.navigation:navigation-ui-ktx:2.7.4")
implementation("androidx.navigation:navigation-runtime-ktx:2.7.5")
implementation("androidx.navigation:navigation-fragment-ktx:2.7.5")
implementation("androidx.navigation:navigation-ui-ktx:2.7.5")

// coroutines
// https://github.com/Kotlin/kotlinx.coroutines
Expand Down Expand Up @@ -222,11 +222,10 @@ dependencies {
ksp("com.github.bumptech.glide:ksp:4.16.0")

// dagger hilt
// TODO change to ksp https://github.com/google/dagger/issues/2349
implementation("com.google.dagger:hilt-android:2.48.1")
kapt("com.google.dagger:hilt-android-compiler:2.48.1")
implementation("androidx.hilt:hilt-navigation-fragment:1.0.0")
kapt("androidx.hilt:hilt-compiler:1.0.0")
ksp("com.google.dagger:hilt-android-compiler:2.48.1")
implementation("androidx.hilt:hilt-navigation-fragment:1.1.0")
ksp("androidx.hilt:hilt-compiler:1.1.0")

// runtime permission
// https://github.com/googlesamples/easypermissions
Expand Down Expand Up @@ -257,7 +256,7 @@ dependencies {
testImplementation("io.mockk:mockk:1.13.8")
testImplementation("androidx.arch.core:core-testing:2.2.0")
testImplementation("com.squareup.okhttp3:mockwebserver:5.0.0-alpha.11")
testImplementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.10")
testImplementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.20")
// testImplementation("org.robolectric:robolectric:4.3")

/**
Expand Down Expand Up @@ -413,8 +412,8 @@ dependencies {
// Lifecycle utilities for Compose
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.6.2")
// navigation
implementation("androidx.navigation:navigation-compose:2.7.4")
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
implementation("androidx.navigation:navigation-compose:2.7.5")
implementation("androidx.hilt:hilt-navigation-compose:1.1.0")
// https://github.com/skydoves/landscapist
// implementation("com.github.skydoves:landscape-bom:2.1.7")
implementation("com.github.skydoves:landscapist-glide:2.2.10")
Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.2.0-rc01")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.7.4")
classpath("com.android.tools.build:gradle:8.2.0-rc03")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.7.5")
classpath("com.google.dagger:hilt-android-gradle-plugin:2.48")
// classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Libs.kotlinVersion}")
// classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${Libs.navigationVersion}")
Expand All @@ -28,5 +28,5 @@ tasks.register("clean", Delete::class.java) {
}

plugins {
id("com.google.devtools.ksp") version "1.9.10-1.0.13" apply false
id("com.google.devtools.ksp") version "1.9.20-1.0.14" apply false
}
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ org.gradle.daemon=true
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=false
android.databinding.incremental=true
#android.databinding.incremental=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
kapt.incremental.apt=true
ksp.incremental.apt=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=true
android.nonFinalResIds=true
#org.gradle.unsafe.configuration-cache=true
Expand Down

0 comments on commit 898e83f

Please sign in to comment.