Skip to content

Commit

Permalink
use ksp instead kapt where possible
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
  • Loading branch information
mahibi committed Jun 17, 2024
1 parent c81f4d7 commit a841ba4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
14 changes: 12 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort
import com.github.spotbugs.snom.SpotBugsTask

plugins {
id "org.jetbrains.kotlin.plugin.compose" version "2.0.0"
id "org.jetbrains.kotlin.kapt"
id 'com.google.devtools.ksp' version '2.0.0-1.0.21'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: 'com.github.spotbugs'
apply plugin: 'io.gitlab.arturbosch.detekt'
Expand Down Expand Up @@ -152,6 +157,7 @@ configurations.configureEach {
}

dependencies {
implementation("androidx.compose.runtime:runtime:1.6.8")
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.datastore:datastore-core:1.1.1'
implementation 'androidx.datastore:datastore-preferences:1.1.1'
Expand Down Expand Up @@ -222,7 +228,7 @@ dependencies {

implementation "androidx.room:room-runtime:${roomVersion}"
implementation "androidx.room:room-rxjava2:${roomVersion}"
kapt "androidx.room:room-compiler:${roomVersion}"
ksp "androidx.room:room-compiler:$roomVersion"
implementation "androidx.room:room-ktx:${roomVersion}"

implementation "org.parceler:parceler-api:$parcelerVersion"
Expand Down Expand Up @@ -350,3 +356,7 @@ detekt {
config.setFrom("../detekt.yml")
source.setFrom("src/")
}

ksp {
arg('room.schemaLocation', "$projectDir/schemas")
}
12 changes: 11 additions & 1 deletion gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
<trusted-key id="19BEAB2D799C020F17C69126B16698A4ADF4D638" group="org.checkerframework"/>
<trusted-key id="1D0A8B5E77C678A7C724445ABF984B4145EA13F7" group="com.squareup" name="javapoet" version="1.13.0"/>
<trusted-key id="1D9AA7F9E1E2824728B8CD1794B291AEF984A085" group="io.reactivex.rxjava2"/>
<trusted-key id="24D04176586361FDA94EE0315F7786DF73E61F56" group="com.google.devtools.ksp" name="symbol-processing-api" version="1.9.20-1.0.14"/>
<trusted-key id="24D04176586361FDA94EE0315F7786DF73E61F56">
<trusting group="com.google.devtools.ksp"/>
<trusting group="com.google.devtools.ksp" name="symbol-processing-api" version="1.9.20-1.0.14"/>
</trusted-key>
<trusted-key id="276E80D9638D24AB676B2453F1EA1235E08E008F" group="com.vividsolutions"/>
<trusted-key id="28118C070CB22A0175A2E8D43D12CA2AC19F3181" group="^com[.]fasterxml($|([.].*))" regex="true"/>
<trusted-key id="2AB84290BFDFE40E55852346522A2E62A5D6C31F" group="com.github.filosganga"/>
Expand Down Expand Up @@ -179,6 +182,7 @@
<trusted-key id="BDB5FA4FE719D787FB3D3197F6D4A1D411E9D1AE" group="com.google.guava"/>
<trusted-key id="C0612048F3393B80B22639B4F067A2FD751AE3E4" group="io.github.davidburstrom.contester" name="contester-breakpoint" version="0.2.0"/>
<trusted-key id="C1CBA75EC9BD0BAF8061935459E05CE618187ED4" group="org.xerial" name="sqlite-jdbc" version="3.41.2.2"/>
<trusted-key id="C5AA57F4A38EBA7B7F9156DDAB2DA4527F6FFC0B" group="com.squareup" name="kotlinpoet" version="1.11.0"/>
<trusted-key id="C6F7D1C804C821F49AF3BFC13AD93C3C677A106E">
<trusting group="io.perfmark" name="perfmark-api" version="0.23.0"/>
<trusting group="io.perfmark" name="perfmark-api" version="0.26.0"/>
Expand Down Expand Up @@ -5054,6 +5058,7 @@
</component>
<component group="org.jetbrains.kotlin" name="kotlin-stdlib-jdk7" version="1.2.71">
<artifact name="kotlin-stdlib-jdk7-1.2.71.pom">
<pgp value="BAE5C184E3B70CB15617700598FE03A974CE0A0B"/>
<sha256 value="941426d95526c828e794791a1da889b62f1f29e0220cf2f2e8dc09b6197080b3" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
</artifact>
</component>
Expand All @@ -5077,6 +5082,11 @@
<sha256 value="a3b07deb091f2aed59d6559884f44f99cff5df9b9fa35a24bcd6b8b069cff48d" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlin.plugin.compose" name="org.jetbrains.kotlin.plugin.compose.gradle.plugin" version="2.0.0">
<artifact name="org.jetbrains.kotlin.plugin.compose.gradle.plugin-2.0.0.pom">
<sha256 value="38e76d688eddcf2d92ab20838c0adf28d8fd5de2cc965edcd273a9b4f7d636de" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-coroutines-core-jvm" version="1.5.0">
<artifact name="kotlinx-coroutines-core-jvm-1.5.0.module">
<sha256 value="c885dd0281076c5843826de317e3cbcdc3d8859dbeef53ae1cfacd1b9c60f96e" origin="Generated by Gradle"/>
Expand Down

0 comments on commit a841ba4

Please sign in to comment.