mirror of
https://github.com/mueller-ma/PrepaidBalance.git
synced 2024-09-19 16:02:14 +02:00
speed up annotation processing: migrate Room kapt
->ksp
(#273)
* Bump kotlin idea-plugin to match updated kotlin. * Migrate Room annotation processing to faster Kotlin-Symbol-Processing per IDE suggestion, see also: https://developer.android.com/build/migrate-to-ksp
This commit is contained in:
parent
dd66bb1c14
commit
3021e051f5
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="KotlinJpsPluginSettings">
|
<component name="KotlinJpsPluginSettings">
|
||||||
<option name="version" value="1.9.20" />
|
<option name="version" value="1.9.22" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -1,7 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id "com.android.application"
|
id "com.android.application"
|
||||||
id "kotlin-android"
|
id "kotlin-android"
|
||||||
id "kotlin-kapt"
|
id "com.google.devtools.ksp"
|
||||||
id "com.mikepenz.aboutlibraries.plugin"
|
id "com.mikepenz.aboutlibraries.plugin"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,10 +24,8 @@ android {
|
|||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
javaCompileOptions {
|
ksp {
|
||||||
annotationProcessorOptions {
|
arg("room.schemaLocation", "$projectDir/schemas")
|
||||||
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +75,7 @@ dependencies {
|
|||||||
implementation "androidx.work:work-runtime-ktx:$workmanager_version"
|
implementation "androidx.work:work-runtime-ktx:$workmanager_version"
|
||||||
implementation "androidx.room:room-runtime:$room_version"
|
implementation "androidx.room:room-runtime:$room_version"
|
||||||
implementation "androidx.room:room-ktx:$room_version"
|
implementation "androidx.room:room-ktx:$room_version"
|
||||||
kapt "androidx.room:room-compiler:$room_version"
|
ksp "androidx.room:room-compiler:$room_version"
|
||||||
implementation "com.mikepenz:aboutlibraries:$about_libraries_version"
|
implementation "com.mikepenz:aboutlibraries:$about_libraries_version"
|
||||||
implementation "androidx.core:core-splashscreen:1.0.1"
|
implementation "androidx.core:core-splashscreen:1.0.1"
|
||||||
|
|
||||||
|
@ -21,6 +21,11 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
// modern kotlin annotation support; replaces kapt: https://developer.android.com/build/migrate-to-ksp
|
||||||
|
id 'com.google.devtools.ksp' version '1.9.22-1.0.17' apply false
|
||||||
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
Loading…
Reference in New Issue
Block a user