From 8d0bf26fc82eb923a06b74ccabc3041ca390ad1b Mon Sep 17 00:00:00 2001 From: Pushpal Roy Date: Sat, 3 Feb 2024 02:12:48 -0600 Subject: [PATCH] [experiment]: build project with K2 compiler --- .idea/kotlinc.xml | 7 +++++++ gradle.properties | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 8d81632..281c987 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,5 +1,12 @@ + + + + diff --git a/gradle.properties b/gradle.properties index ed4be42..e40614b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,6 +2,17 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 android.useAndroidX=true android.enableJetifier=true kotlin.code.style=official + +# Use latest lint alpha for best available K2 support +# https://googlesamples.github.io/android-custom-lint-rules/usage/newer-lint.md.html +android.experimental.lint.version=8.4.0-alpha07 + +# Use K2 compiler +kotlin.experimental.tryK2=true + +# Run lint on K2 +android.lint.useK2Uast=true + # Fill these details for Maven publish and then run the command: # ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache # The rest of the setup is there in build.gradle of jetlime module