Skip to content

Commit 116c89b

Browse files
paulineaflorentmaitre
authored andcommitted
Specify annotation default rule to fix the build
1 parent e9e63d7 commit 116c89b

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ android {
104104
// Suppresses an expected warning that triggers a build failure because allWarningsAsErrors is true
105105
// See https://youtrack.jetbrains.com/issue/KT-68400/K2-w-Kapt-currently-doesnt-support-language-version-2.0.-Falling-back-to-1.9.
106106
freeCompilerArgs.add("-Xsuppress-version-warnings")
107+
// From Kotlin 2.2, need to specify default rule for annotations
108+
// See http://youtrack.jetbrains.com/issue/KT-73255
109+
freeCompilerArgs.add("-Xannotation-default-target=param-property")
107110
}
108111
}
109112

foundation/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ android {
2121
buildFeatures {
2222
compose = true
2323
}
24+
25+
kotlin {
26+
compilerOptions {
27+
// From Kotlin 2.2, need to specify default rule for annotations
28+
// See http://youtrack.jetbrains.com/issue/KT-73255
29+
freeCompilerArgs.add("-Xannotation-default-target=param-property")
30+
}
31+
}
2432
}
2533

2634
dependencies {

0 commit comments

Comments
 (0)