czuckie
09/07/2023, 7:05 AMYingding Wang
09/07/2023, 7:22 AMkotlinOptions
of your project root build.gradle
kotlinOptions {
freeCompilerArgs += "-opt-in=androidx.compose.foundation.ExperimentalFoundationApi"
...
}
Then it works for all Files and Classes. You need to do it for all the opt-ins though once.czuckie
09/07/2023, 7:26 AM@file:OptIn(...)
and that is fine until I start using more of the experimental API and it starts warning me again. Doing the quick fix to opt in at a file level adds the exact same opt inczuckie
09/07/2023, 7:27 AMYingding Wang
09/07/2023, 7:56 AM@file:OptIn(…)
is giving warning repeatedly.eygraber
09/07/2023, 12:04 PMczuckie
09/07/2023, 12:08 PMJeff Lockhart
09/07/2023, 8:06 PM