Skip to content

Commit fddb463

Browse files
[TestConfigurationSample] Change API26 to API27 as 26 is not supported
1 parent 95c1e44 commit fddb463

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/TestConfigurationSample.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ jobs:
8181
~/.android/gradle/avd/dev30_aosp_x86_64_Pixel_2.*
8282
key: pixel2api30
8383

84-
- name: Cache pixel2api26 system image
84+
- name: Cache pixel2api27 system image
8585
uses: actions/cache@v2
8686
with:
87-
path: ~/.android/gradle/avd/dev26_aosp_x86_Pixel_2.*
88-
key: pixel2api26
87+
path: ~/.android/gradle/avd/dev27_aosp_x86_Pixel_2.*
88+
key: pixel2api27
8989

9090
- name: Cache nexus9api29 system image
9191
uses: actions/cache@v2
@@ -99,7 +99,7 @@ jobs:
9999

100100
- name: Run regression tests
101101
working-directory: ${{ env.SAMPLE_PATH }}
102-
run: ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
102+
run: ./gradlew -i pixel2api27DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi27 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
103103

104104
- name: Run large screen tests
105105
working-directory: ${{ env.SAMPLE_PATH }}

TestConfigurationSample/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ android {
5656
systemImageSource = "aosp"
5757
abi = "x86"
5858
}
59-
pixel2api26(com.android.build.api.dsl.ManagedVirtualDevice) {
59+
pixel2api27(com.android.build.api.dsl.ManagedVirtualDevice) {
6060
device = "Pixel 2"
61-
apiLevel = 26
61+
apiLevel = 267
6262
systemImageSource = "aosp"
6363
abi = "x86"
6464
}

TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/MainActivityTests.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class MainActivityTests {
6565
*
6666
* See the Github Actions setup of this project for an example.
6767
*/
68-
@Test @TestDeviceApi26
69-
fun regressionTestKnownIssueApi26() {
68+
@Test @TestDeviceApi27
69+
fun regressionTestKnownIssueApi27() {
7070
// Add instrumented tests here
7171
runBlocking { delay(10000) }
7272
assertTrue(true)

TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/TestDeviceAnnotations.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
package com.example.android.testing.testconfigurationsample
1717

1818
/**
19-
* Annotate tests with this annotation when testing API 26 regression bugs.
19+
* Annotate tests with this annotation when testing API 27 regression bugs.
2020
*/
21-
annotation class TestDeviceApi26
21+
annotation class TestDeviceApi27
2222

2323
/**
2424
* Annotate tests with this annotation when testing large-screen specific features.

0 commit comments

Comments
 (0)