LeoColman
03/08/2025, 7:02 PMuses(
name = "Android Tests",
action = AndroidEmulatorRunner(
apiLevel = 33,
emulatorOptions = "-no-snapshot -no-audio -no-boot-anim",
disableAnimations = true,
script = "./gradlew connectedAndroidTest",
target = "default",
)
)
As it becomes a private constructor,
And this compiles
action = AndroidEmulatorRunner(
apiLevel = 33,
emulatorOptions = "-no-snapshot -no-audio -no-boot-anim",
disableAnimations = true,
script = "./gradlew connectedAndroidTest",
)
For some reason I don't know. I expected the first one and the second one to compile using the same constructor
I'm experimenting with it herePiotr Krzemiński
03/08/2025, 10:09 PMtarget
input is an enum, see:
• in the typings: https://github.com/ReactiveCircus/android-emulator-runner/blob/50d5b10c0167135fd356722acdfaaef2542f8f1b/action-types.yml#L4-L15
• IDE's hints (yes, AI gets it wrong by proposing a string!):Piotr Krzemiński
03/08/2025, 10:09 PMAndroidEmulatorRunner.Target.
, you'll get all options, including default
available under the Default
enum itemLeoColman
03/08/2025, 10:10 PMPiotr Krzemiński
03/08/2025, 10:10 PM