1616
1717plugins {
1818 id ' com.android.application'
19- id ' kotlin-android'
20- id ' kotlin-kapt'
21- id ' dagger.hilt.android.plugin'
19+ id ' com.google.devtools.ksp'
2220 id ' org.jetbrains.kotlin.plugin.compose'
21+ id ' dagger.hilt.android.plugin'
2322}
2423
2524// Reads the Google maps key that is used in the AndroidManifest
@@ -29,6 +28,7 @@ if (rootProject.file("local.properties").exists()) {
2928}
3029
3130android {
31+ namespace " androidx.compose.samples.crane"
3232 compileSdkVersion 36
3333 namespace " androidx.compose.samples.crane"
3434 defaultConfig {
@@ -69,10 +69,6 @@ android {
6969 targetCompatibility JavaVersion . VERSION_1_8
7070 }
7171
72- kotlinOptions {
73- jvmTarget = " 1.8"
74- }
75-
7672 buildFeatures {
7773 compose true
7874
@@ -103,11 +99,11 @@ dependencies {
10399 }
104100 }
105101
106- implementation " androidx.activity:activity-compose:1.12.2 "
102+ implementation " androidx.activity:activity-compose:1.12.3 "
107103 implementation " androidx.appcompat:appcompat:1.7.1"
108104 implementation " androidx.tracing:tracing:1.3.0"
109105
110- def composeBom = platform(' androidx.compose:compose-bom:2026.01.00 ' )
106+ def composeBom = platform(' androidx.compose:compose-bom:2026.01.01 ' )
111107 implementation(composeBom)
112108 androidTestImplementation(composeBom)
113109 implementation " androidx.compose.runtime:runtime"
@@ -120,14 +116,14 @@ dependencies {
120116 debugImplementation " androidx.compose.ui:ui-tooling"
121117 debugImplementation " androidx.compose.ui:ui-test-manifest"
122118
123-
124119 def lifecycle_version = " 2.10.0"
125120 implementation " androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version "
126121 implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version "
127122 implementation " androidx.lifecycle:lifecycle-runtime-compose:$lifecycle_version "
128- implementation " com.google.dagger:hilt-android:2.57.2"
129- kapt " com.google.dagger:hilt-compiler:2.57.2"
130- kapt " org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.9.0"
123+
124+ implementation " com.google.dagger:hilt-android:2.59.1"
125+ ksp " com.google.dagger:hilt-compiler:2.59.1"
126+ ksp " org.jetbrains.kotlin:kotlin-metadata-jvm:2.3.0"
131127
132128 implementation " io.coil-kt:coil-compose:2.7.0"
133129
@@ -138,8 +134,8 @@ dependencies {
138134 androidTestImplementation " androidx.test.espresso:espresso-core:3.7.0"
139135 androidTestImplementation " androidx.test.ext:junit-ktx:1.3.0"
140136 androidTestImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.2"
141- androidTestImplementation " com.google.dagger:hilt-android:2.57.2 "
142- androidTestImplementation " com.google.dagger:hilt-android-testing:2.57.2 "
143- kaptAndroidTest " com.google.dagger:hilt-compiler:2.57.2 "
144- kaptAndroidTest " org.jetbrains.kotlinx:kotlinx -metadata-jvm:0.9 .0"
137+ androidTestImplementation " com.google.dagger:hilt-android:2.59.1 "
138+ androidTestImplementation " com.google.dagger:hilt-android-testing:2.59.1 "
139+ kspAndroidTest " com.google.dagger:hilt-compiler:2.59.1 "
140+ kspAndroidTest " org.jetbrains.kotlin:kotlin -metadata-jvm:2.3 .0"
145141}
0 commit comments