build: enable explicit API automatically on all library projects

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-04-17 22:33:00 +05:30
parent cada2353c1
commit a13176a23d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 15 additions and 8 deletions

View file

@ -16,10 +16,6 @@ android {
versionName = "2.0"
consumerProguardFiles("consumer-rules.pro")
}
kotlin { explicitApi() }
kotlinOptions { freeCompilerArgs = freeCompilerArgs + listOf("-Xexplicit-api=strict") }
}
dependencies {