Skip to content

Commit cb015df

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 a1ddcb2 commit cb015df

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
@@ -23,6 +23,15 @@ java {
2323
}
2424
}
2525

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

0 commit comments

Comments
 (0)