Skip to content

Commit

Permalink
Use a map for the opt-in annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWoitaschek committed Jul 10, 2022
1 parent 2168f2c commit e4997cb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions plugins/src/main/kotlin/ComposePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ class ComposePlugin : Plugin<Project> {
kotlinCompile.kotlinOptions {
allWarningsAsErrors = true
freeCompilerArgs = freeCompilerArgs + listOf(
"-opt-in=androidx.compose.material.ExperimentalMaterialApi",
"-opt-in=androidx.compose.animation.graphics.ExperimentalAnimationGraphicsApi",
"-opt-in=androidx.compose.material3.ExperimentalMaterial3Api",
"-opt-in=androidx.compose.foundation.ExperimentalFoundationApi",
)
"androidx.compose.material.ExperimentalMaterialApi",
"androidx.compose.animation.graphics.ExperimentalAnimationGraphicsApi",
"androidx.compose.material3.ExperimentalMaterial3Api",
"androidx.compose.foundation.ExperimentalFoundationApi",
"androidx.compose.ui.ExperimentalComposeUiApi",
).map { "-opt-in=$it" }
}
}
}
Expand Down

0 comments on commit e4997cb

Please sign in to comment.