Reorganize crypto-common code and fix a couple minor bugs (#1868)

This commit is contained in:
Harsh Shandilya 2022-04-24 21:25:34 +05:30 committed by GitHub
parent 599abd37e8
commit 62902ca80b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 60 additions and 46 deletions

View file

@ -10,8 +10,10 @@ plugins { id("com.github.android-password-store.kotlin-common") }
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
if (!name.contains("test", ignoreCase = true)) {
freeCompilerArgs += listOf("-Xexplicit-api=strict")
if (project.providers.gradleProperty("android.injected.invoked.from.ide").orNull != "true") {
if (!name.contains("test", ignoreCase = true)) {
freeCompilerArgs = freeCompilerArgs + listOf("-Xexplicit-api=strict")
}
}
}
}