Javier
09/29/2021, 8:14 PMkotlin {
explicitApi = ExplicitApiMode.Disabled
}
Error:
Unknown value for parameter -Xexplicit-api: 'disabled'. Value should be one of {disable, strict, warning}
The enum class:
enum class ExplicitApiMode(private val cliOption: String) {
Strict("strict"),
Warning("warning"),
Disabled("disabled"); // this should be renamed to disable and/or in another place have to check for disabled instead of disable
fun toCompilerArg() = "-Xexplicit-api=$cliOption"
}
hfhbd
09/30/2021, 7:49 AMdisable
Javier
09/30/2021, 7:55 AMhfhbd
09/30/2021, 7:56 AM