diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a3255cb6a..6f2d63781 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -60,6 +60,11 @@ android { sourceSets.configureEach { kotlin.srcDir("$buildDir/generated/ksp/$name/kotlin/") } + sourceSets.all { + languageSettings { + languageVersion = "2.0" + } + } } testOptions { diff --git a/benchmark/build.gradle.kts b/benchmark/build.gradle.kts index 67eb12acd..db9c62aea 100644 --- a/benchmark/build.gradle.kts +++ b/benchmark/build.gradle.kts @@ -51,6 +51,10 @@ android { } } + lint { + abortOnError = false + } + targetProjectPath = ":app" experimentalProperties["android.experimental.self-instrumenting"] = true } diff --git a/core-data/build.gradle.kts b/core-data/build.gradle.kts index 511a9107f..0fae8f546 100644 --- a/core-data/build.gradle.kts +++ b/core-data/build.gradle.kts @@ -34,6 +34,10 @@ android { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } + + lint { + abortOnError = false + } } dependencies { diff --git a/core-database/build.gradle.kts b/core-database/build.gradle.kts index a10d80d57..55fa4bdbd 100644 --- a/core-database/build.gradle.kts +++ b/core-database/build.gradle.kts @@ -44,6 +44,10 @@ android { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } + + lint { + abortOnError = false + } } dependencies { diff --git a/core-model/build.gradle.kts b/core-model/build.gradle.kts index bacfa1034..2695499e1 100644 --- a/core-model/build.gradle.kts +++ b/core-model/build.gradle.kts @@ -35,6 +35,10 @@ android { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } + + lint { + abortOnError = false + } } dependencies { diff --git a/core-network/build.gradle.kts b/core-network/build.gradle.kts index d90faa233..221e700ff 100644 --- a/core-network/build.gradle.kts +++ b/core-network/build.gradle.kts @@ -34,6 +34,10 @@ android { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } + + lint { + abortOnError = false + } } dependencies { diff --git a/core-test/build.gradle.kts b/core-test/build.gradle.kts index 518667dcd..c53355da0 100644 --- a/core-test/build.gradle.kts +++ b/core-test/build.gradle.kts @@ -33,6 +33,10 @@ android { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } + + lint { + abortOnError = false + } } dependencies { diff --git a/gradle.properties b/gradle.properties index 3434f35b8..20379f80d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -45,3 +45,7 @@ android.enableJetifier=true # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true + +# Enables K2 compiler +kotlin.experimental.tryK2=true +kapt.use.k2=true \ No newline at end of file