From c17f27b953f4612bffb562cb4c181d2a7061d001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Duy=20Ph=E1=BA=A1m?= Date: Thu, 7 Nov 2024 15:02:33 +0700 Subject: [PATCH] Setup a GMD for running instrumental test --- lib/build.gradle.kts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index c82d187..3c06a6a 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -76,6 +76,21 @@ android { withSourcesJar() } } + + testOptions { + managedDevices { + localDevices { + create("pixel2api30") { + // Use device profiles you typically see in Android Studio. + device = "Pixel 2" + // Use only API levels 27 and higher. + apiLevel = 30 + // To include Google services, use "google". + systemImageSource = "aosp" + } + } + } + } } dependencies {