Reputation: 5954
I am looking for Gradle plugin to control Android emulator. Functionality I need from it is:
starting/stopping
install/uninstall
running connected tests
And preferably auto creation and setup (including download if missing) of Emulator images. Basically I want to be able to say inside my build.gradle
emulator{
image=android-18
memory=1024
resolution=x y
window=yes/no
}
and have Gradle download the original image and set it up like specified.
Is there some plugin that can do things like this?
NOTE:I know that there are CI plugins like this Jenkins one https://wiki.jenkins-ci.org/display/JENKINS/Android+Emulator+Plugin but that is not what I am looking for. I am looking for a pure Gradle solution, which will auto manage emulator state for testing and running the app on developers machines.
Upvotes: 11
Views: 5331
Reputation: 7793
Possible solutions:
Upvotes: 5
Reputation: 2963
This is now available from Google: https://developer.android.com/studio/preview/features#gmd
Upvotes: 0