Atul Gupta
07/06/2024, 5:51 PMAndroid Studio Koala | 2024.1.1
when enabling the explicit public api I am getting error when applying the public modifier in AS. Is this known issue?Atul Gupta
07/06/2024, 5:52 PMbuild.gradle.kts
I have used below code to set the explicit public API flag
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
jvmTargetValidationMode.set(org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode.ERROR)
compilerOptions {
freeCompilerArgs.add("-Xexplicit-api=strict")
}
}
Atul Gupta
07/06/2024, 5:53 PMephemient
07/06/2024, 6:12 PMkotlin {
explicitApi()
}
Atul Gupta
07/07/2024, 9:03 AMfreeCompilerArgs
didn't?
Is there any tracking bug for this?