paparazzi-tests: init

This commit is contained in:
Harsh Shandilya 2022-06-25 18:37:04 +05:30
parent 356da53afb
commit 088d8606a6
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
4 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,26 @@
@file:Suppress("DSL_SCOPE_VIOLATION")
plugins {
id("dev.msfjarvis.claw.android-library")
id("dev.msfjarvis.claw.kotlin-android")
alias(libs.plugins.paparazzi)
}
androidComponents { beforeVariants(selector().all()) { it.enable = it.buildType == "debug" } }
android {
namespace = "dev.msfjarvis.claw.android.tests"
buildFeatures { compose = true }
}
dependencies {
testImplementation(kotlin("test-junit"))
testImplementation(projects.android)
testImplementation(projects.common)
testImplementation(projects.model)
testImplementation(projects.database)
}
tasks.withType<Test>().configureEach {
javaLauncher.set(javaToolchains.launcherFor { languageVersion.set(JavaLanguageVersion.of(11)) })
}