diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-09-22 00:56:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 19:26:15 +0000 |
commit | 8786e6abff2118f2fd0d74d28b2d3a5b503b48ca (patch) | |
tree | 7570f090755be07afc509ad7ce007925f99ec126 /build-logic/android-plugins/src/main/kotlin/app | |
parent | 8db7463810208d10f275e871242b53451a0d57b8 (diff) |
Upgrade AndroidX dependencies (#2139)
Diffstat (limited to 'build-logic/android-plugins/src/main/kotlin/app')
-rw-r--r-- | build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt b/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt index 52357171..5e38b6eb 100644 --- a/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt +++ b/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt @@ -4,7 +4,9 @@ import app.passwordstore.gradle.flavors.configureSlimTests import com.android.build.gradle.TestedExtension import org.gradle.api.JavaVersion import org.gradle.api.Project +import org.gradle.api.tasks.testing.Test import org.gradle.kotlin.dsl.configure +import org.gradle.kotlin.dsl.withType @Suppress("UnstableApiUsage") object AndroidCommon { @@ -40,6 +42,12 @@ object AndroidCommon { animationsDisabled = true unitTests.isReturnDefaultValues = true } + project.tasks.withType<Test> { + jvmArgs( + "--add-opens=java.base/java.lang=ALL-UNNAMED", + "--add-opens=java.base/java.util=ALL-UNNAMED", + ) + } project.configureSlimTests() } |