Cotton code
40 lines · 1.4 KB · KotlinRaw
import org.jetbrains.kotlin.gradle.dsl.JvmTargetplugins {    id("com.android.library")    kotlin("android")}// THE WALKER (pnpm android:walk, pnpm android:smoke): one UI Automator test APK,// com.cottondb.walker.test, that walks ANY of the apps from outside their process// (so it can force-stop and relaunch them, and reach the system's own sheets). It// reads its steps as data from the device (the host's walk script pushes them),// finds things by what the core answered (the shell's test tags are resource ids,// ShellRoot's testTagsAsResourceId, and the words it drew), screenshots each step// and streams one line per step back to the host. No app code is in it: the// library has no main sources, only the test.android {    namespace = "com.cottondb.walker"    compileSdk = 36    defaultConfig {        minSdk = 28        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"    }    compileOptions {        sourceCompatibility = JavaVersion.VERSION_17        targetCompatibility = JavaVersion.VERSION_17    }}kotlin {    compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }}dependencies {    androidTestImplementation("androidx.test:runner:1.6.2")    androidTestImplementation("androidx.test.ext:junit:1.2.1")    androidTestImplementation("androidx.test.uiautomator:uiautomator:2.3.0")    androidTestImplementation("junit:junit:4.13.2")}