Skip to content

Commit

Permalink
Merge pull request #96 from skydoves/k2/experimental
Browse files Browse the repository at this point in the history
Use k2 experimental and kapt2
  • Loading branch information
skydoves authored Nov 2, 2023
2 parents 327b96a + e145f15 commit f6abe56
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ android {
sourceSets.configureEach {
kotlin.srcDir("$buildDir/generated/ksp/$name/kotlin/")
}
sourceSets.all {
languageSettings {
languageVersion = "2.0"
}
}
}

testOptions {
Expand Down
4 changes: 4 additions & 0 deletions benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ android {
}
}

lint {
abortOnError = false
}

targetProjectPath = ":app"
experimentalProperties["android.experimental.self-instrumenting"] = true
}
Expand Down
4 changes: 4 additions & 0 deletions core-data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
abortOnError = false
}
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions core-database/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
abortOnError = false
}
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions core-model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
abortOnError = false
}
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions core-network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
abortOnError = false
}
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions core-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
abortOnError = false
}
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f6abe56

Please sign in to comment.