diff --git a/app/build.gradle b/app/build.gradle index 19461029..c48a7b13 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,6 +2,7 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'kotlin-kapt' + id 'com.google.devtools.ksp' id 'com.google.dagger.hilt.android' id 'org.jlleitschuh.gradle.ktlint' version '11.5.1' } @@ -21,12 +22,6 @@ android { vectorDrawables { useSupportLibrary true } - - javaCompileOptions { - annotationProcessorOptions { - arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] - } - } } buildTypes { @@ -48,18 +43,18 @@ android { compose true } composeOptions { - kotlinCompilerExtensionVersion '1.3.2' + kotlinCompilerExtensionVersion '1.5.3' } packagingOptions { resources { excludes += '/META-INF/{AL2.0,LGPL2.1}' } } - lintOptions { - checkAllWarnings true - warningsAsErrors true + lint { abortOnError true + checkAllWarnings true lintConfig file('lint.xml') + warningsAsErrors true } } @@ -94,7 +89,7 @@ dependencies { // Room def room_version = "2.5.2" implementation "androidx.room:room-ktx:$room_version" - kapt "androidx.room:room-compiler:$room_version" + ksp "androidx.room:room-compiler:$room_version" androidTestImplementation "androidx.room:room-testing:$room_version" // Utils: @@ -114,6 +109,9 @@ dependencies { kapt { correctErrorTypes true } +ksp { + arg('room.schemaLocation', "$projectDir/schemas") +} ktlint { version.set("0.49.1") diff --git a/build.gradle b/build.gradle index 2e31bfba..ddffb631 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,8 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id 'com.android.application' version '8.0.2' apply false - id 'com.android.library' version '8.0.2' apply false - id 'org.jetbrains.kotlin.android' version '1.7.20' apply false + id 'com.android.application' version '8.1.1' apply false + id 'com.android.library' version '8.1.1' apply false + id 'org.jetbrains.kotlin.android' version '1.9.10' apply false + id 'com.google.devtools.ksp' version '1.9.10-1.0.13' apply false id 'com.google.dagger.hilt.android' version '2.48' apply false } \ No newline at end of file