Skip to content

Commit

Permalink
Update GradleManagedDevices setup info
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhar-sp committed Apr 21, 2024
1 parent 5c2af62 commit 53e0f54
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,29 @@ Gradle Managed Devices offers a way to configure a virtual or real device in Gra
the configuration is added to Gradle, it allows Gradle to be aware of the device lifecycle and can start or shut down
the device as required.

#### Setup

```kotlin
testOptions {
managedDevices {
devices {
create<ManagedVirtualDevice>("testDevice") {
device = "Pixel 6"
apiLevel = 34
systemImageSource = "aosp"
}

}
}
}
```

#### Run

```shell
./gradlew testDeviceDebugAndroidTest
```

<hr/>

#### Reference
Expand Down

0 comments on commit 53e0f54

Please sign in to comment.