Plugin config

This commit is contained in:
Benoit Marty 2022-12-23 16:50:24 +01:00 committed by Benoit Marty
parent 26cc900973
commit 2ef43173e7
2 changed files with 8 additions and 5 deletions

View file

@ -39,6 +39,8 @@ test_junitext = "1.1.3"
test_barista = "4.2.0" test_barista = "4.2.0"
test_hamcrest = "2.2" test_hamcrest = "2.2"
test_orchestrator = "1.4.1" test_orchestrator = "1.4.1"
test_paparazzi = "1.0.0"
test_parameter_injector = "1.8"
#other #other
coil = "2.2.1" coil = "2.2.1"
@ -113,6 +115,7 @@ test_mockk = { module = "io.mockk:mockk", version.ref = "test_mockk" }
test_barista = { module = "com.adevinta.android:barista", version.ref = "test_barista" } test_barista = { module = "com.adevinta.android:barista", version.ref = "test_barista" }
test_hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "test_hamcrest" } test_hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "test_hamcrest" }
test_orchestrator = { module = "androidx.test:orchestrator", version.ref = "test_orchestrator" } test_orchestrator = { module = "androidx.test:orchestrator", version.ref = "test_orchestrator" }
test_parameter_injector = { module = "com.google.testparameterinjector:test-parameter-injector", version.ref = "test_parameter_injector" }
# Others # Others
coil = { module = "io.coil-kt:coil", version.ref = "coil" } coil = { module = "io.coil-kt:coil", version.ref = "coil" }
@ -153,3 +156,4 @@ dependencygraph = { id = "com.savvasdalkitsis.module-dependency-graph", version.
dependencycheck = { id = "org.owasp.dependencycheck", version.ref = "dependencycheck" } dependencycheck = { id = "org.owasp.dependencycheck", version.ref = "dependencycheck" }
stem = { id = "com.likethesalad.stem", version.ref = "stem" } stem = { id = "com.likethesalad.stem", version.ref = "stem" }
stemlibrary = { id = "com.likethesalad.stem-library", version.ref = "stem" } stemlibrary = { id = "com.likethesalad.stem-library", version.ref = "stem" }
paparazzi = { id = "app.cash.paparazzi", version.ref = "test_paparazzi" }

View file

@ -17,11 +17,12 @@
import extension.allFeatures import extension.allFeatures
import extension.allLibraries import extension.allLibraries
// TODO: Remove once https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed
@Suppress("DSL_SCOPE_VIOLATION")
plugins { plugins {
id("io.element.android-compose-library") id("io.element.android-compose-library")
alias(libs.plugins.ksp) alias(libs.plugins.ksp)
// TODO Create alias alias(libs.plugins.paparazzi)
id("app.cash.paparazzi") version "1.0.0"
} }
android { android {
@ -30,13 +31,11 @@ android {
dependencies { dependencies {
testImplementation(libs.test.junit) testImplementation(libs.test.junit)
testImplementation(libs.test.parameter.injector)
androidTestImplementation(libs.test.junitext) androidTestImplementation(libs.test.junitext)
ksp(libs.showkase.processor) ksp(libs.showkase.processor)
kspTest(libs.showkase.processor) kspTest(libs.showkase.processor)
// TODO Move to libs
testImplementation("com.airbnb.android:showkase-screenshot-testing:1.0.0-beta14")
testImplementation("com.google.testparameterinjector:test-parameter-injector:1.8")
implementation(project(":libraries:designsystem")) implementation(project(":libraries:designsystem"))