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
@@ -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 "
123+
128124 implementation " com.google.dagger:hilt-android:2.59.1"
129- kapt " com.google.dagger:hilt-compiler:2.59.1"
130- kapt " org.jetbrains.kotlinx:kotlinx -metadata-jvm:0.9 .0"
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
@@ -140,6 +136,6 @@ dependencies {
140136 androidTestImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.2"
141137 androidTestImplementation " com.google.dagger:hilt-android:2.59.1"
142138 androidTestImplementation " com.google.dagger:hilt-android-testing:2.59.1"
143- kaptAndroidTest " com.google.dagger:hilt-compiler:2.59.1"
144- kaptAndroidTest " org.jetbrains.kotlinx:kotlinx -metadata-jvm:0.9 .0"
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