Skip to content

Commit

Permalink
Update Kotlin compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluu committed Jun 22, 2024
1 parent e6f3941 commit ffd5e75
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,12 @@ internal fun Project.configureKotlin() {
compilerOptions {
// Set JVM target
jvmTarget.set(Const.JVM_TARGET)
// allWarningsAsErrors = true
// allWarningsAsErrors.set(true)

freeCompilerArgs.addAll(
listOf(
"-opt-in=kotlin.RequiresOptIn",
// Enable experimental coroutines APIs, including Flow
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-opt-in=kotlinx.coroutines.FlowPreview",
)
optIn.addAll(
"kotlin.RequiresOptIn",
"kotlinx.coroutines.ExperimentalCoroutinesApi",
"kotlinx.coroutines.FlowPreview",
)
}
}
Expand Down

0 comments on commit ffd5e75

Please # to comment.