-
-
Save skydoves/3a917e8823cba7d73684cd6cfee3e6d6 to your computer and use it in GitHub Desktop.
explicitapi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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