Skip to content

Commit d244175

Browse files
committed
Switch to using ReactiveCircus emulator
1 parent 36a7c34 commit d244175

File tree

2 files changed

+9
-36
lines changed

2 files changed

+9
-36
lines changed

.github/workflows/blueprints.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ jobs:
5151
- name: Compile AndroidTests
5252
run: ./gradlew compileDebugAndroidTestKotlin
5353

54-
- name: Run all tests pixel 2 api 31 ATD
55-
working-directory: .
56-
run: ./gradlew -Pandroid.sdk.channel=3 -Pandroid.experimental.androidTest.numManagedDeviceShards=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" pixel2api31atdDebugAndroidTest
57-
58-
- name: Run all tests pixel 2 api 31 non-ATD
59-
working-directory: .
60-
run: ./gradlew -Pandroid.sdk.channel=3 -Pandroid.experimental.androidTest.numManagedDeviceShards=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" pixel2api31DebugAndroidTest
54+
- name: Run instrumentation tests
55+
uses: reactivecircus/android-emulator-runner@v2
56+
with:
57+
api-level: 31
58+
arch: x86_64
59+
disable-animations: true
60+
disk-size: 2000M
61+
heap-size: 600M
62+
script: ./gradlew connectedDebugAndroidTest
6163

6264
- name: Upload build reports
6365
if: always()

app/build.gradle

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -83,35 +83,6 @@ android {
8383
composeOptions {
8484
kotlinCompilerExtensionVersion "$composeCompilerVersion"
8585
}
86-
87-
testOptions {
88-
devices {
89-
pixel2api31atd(com.android.build.api.dsl.ManagedVirtualDevice) {
90-
// Use device profiles you typically see in Android Studio
91-
device = "Pixel 2"
92-
apiLevel = 31
93-
// You can also specify "google" if you require Google Play Services.
94-
systemImageSource = "aosp-atd"
95-
}
96-
pixel2api31(com.android.build.api.dsl.ManagedVirtualDevice) {
97-
// Use device profiles you typically see in Android Studio
98-
device = "Pixel 2"
99-
apiLevel = 31
100-
// You can also specify "google" if you require Google Play Services.
101-
systemImageSource = "aosp"
102-
}
103-
pixel2api27(com.android.build.api.dsl.ManagedVirtualDevice) {
104-
device = "Pixel 2"
105-
apiLevel = 27
106-
systemImageSource = "aosp"
107-
}
108-
nexus9api29(com.android.build.api.dsl.ManagedVirtualDevice) {
109-
device = "Nexus 9"
110-
apiLevel = 29
111-
systemImageSource = "aosp"
112-
}
113-
}
114-
}
11586
}
11687

11788
/*

0 commit comments

Comments
 (0)