Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created October 20, 2022 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/3a917e8823cba7d73684cd6cfee3e6d6 to your computer and use it in GitHub Desktop.
Save skydoves/3a917e8823cba7d73684cd6cfee3e6d6 to your computer and use it in GitHub Desktop.
explicitapi
// Kotlin project
kotlin {
// enables explicit API mode
explicitApi()
}
// Android project
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.freeCompilerArgs += ["-Xexplicit-api=strict"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment