aboutsummaryrefslogtreecommitdiff
path: root/build-logic/kotlin-plugins
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-04-24 21:25:34 +0530
committerGitHub <noreply@github.com>2022-04-24 15:55:34 +0000
commit62902ca80b2a0883d810518de8b1838f29a682eb (patch)
treeaf1bd10f0bc8d6fc9b18659ed4279f1d237b15e2 /build-logic/kotlin-plugins
parent599abd37e84486f254dddcbb894e77fbcb347d41 (diff)
Reorganize crypto-common code and fix a couple minor bugs (#1868)
Diffstat (limited to 'build-logic/kotlin-plugins')
-rw-r--r--build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts6
1 files changed, 4 insertions, 2 deletions
diff --git a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts
index 516f5e4f..ecd7f23e 100644
--- a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts
+++ b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts
@@ -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")
+ }
}
}
}