# A device provider is data only: a program that lists devices, no `wasm`. id = "openidea.android-devices" name = "Android Devices (API Example)" version = "0.1.0" description = "Lists the emulators and phones adb sees and runs Gradle install tasks on the chosen one; see the package README." authors = ["OpenIDEA contributors"] license = "Apache-2.0" engines.openidea = "^1.21" [capabilities] # `process:sh` runs `devices/list.sh`, which calls `adb` from PATH. required = ["process:sh"] [[contributes.devices]] id = "android" name = "Android Devices" command = "sh" args = ["./devices/list.sh"] # Gradle install and connected test tasks: `./gradlew :app:installDebug`. appliesTo = '\b(install\w+|connected\w*AndroidTest)\b' # adb, and the Android Gradle plugin's install tasks, use the device ANDROID_SERIAL names. env = { ANDROID_SERIAL = "${device.id}" }