Skip to content

Commit 021009c

Browse files
committed
Silence warnings regarding new annotation property behavior
Ref: https://kotlinlang.org/docs/annotations.html#defaults-when-no-use-site-targets-are-specified Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
1 parent 41aa6ee commit 021009c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ java {
2222
}
2323
}
2424

25+
kotlin {
26+
compilerOptions {
27+
// TODO: Drop annotation default target when it is stable
28+
freeCompilerArgs.addAll(
29+
"-Xannotation-default-target=param-property"
30+
)
31+
}
32+
}
33+
2534
android {
2635
compileSdk = 36
2736
namespace = "org.schabi.newpipe"

0 commit comments

Comments
 (0)