Add gradle managed device to benchmarking

Change-Id: I1092d5134ebb003e979b62ee5697ec6e259d3523
pull/1837/head
Ben Weiss 3 years ago
parent c27cb64ce3
commit cbaf32d4c4

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.android.build.api.dsl.ManagedVirtualDevice
import com.google.samples.apps.nowinandroid.configureFlavors
plugins {
@ -50,6 +51,18 @@ android {
targetProjectPath = ":app"
experimentalProperties["android.experimental.self-instrumenting"] = true
testOptions {
managedDevices {
devices {
create<ManagedVirtualDevice>("pixel5Api30") {
device = "Pixel 5"
apiLevel = 30
systemImageSource = "aosp"
}
}
}
}
}
dependencies {

Loading…
Cancel
Save