mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
fix(build): opt into JSpecify annotations
Jetpack has started using these and recommends the compiler flags
This commit is contained in:
parent
7b4379ad0f
commit
6dbb1e4e59
1 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,12 @@ class KotlinCommonPlugin : Plugin<Project> {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private val ADDITIONAL_COMPILER_ARGS = listOf("-opt-in=kotlin.RequiresOptIn")
|
||||
private val ADDITIONAL_COMPILER_ARGS =
|
||||
listOf(
|
||||
"-opt-in=kotlin.RequiresOptIn",
|
||||
"-Xjspecify-annotations=strict",
|
||||
"-Xtype-enhancement-improvements-strict-mode",
|
||||
)
|
||||
|
||||
val JVM_TOOLCHAIN_ACTION =
|
||||
Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(17)) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue