Skip to content

Commit d20a9b7

Browse files
[ConfigSample] Change API level to 26 which is supported
1 parent 62d4253 commit d20a9b7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/TestConfigurationSample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787

8888
- name: Run regression tests
8989
working-directory: ${{ env.SAMPLE_PATH }}
90-
run: ./gradlew -i pixel2api23DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi23
90+
run: ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26
9191

9292
- name: Run large screen tests
9393
working-directory: ${{ env.SAMPLE_PATH }}

TestConfigurationSample/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ android {
5858
systemImageSource = "aosp"
5959
abi = "x86"
6060
}
61-
pixel2api23(ManagedVirtualDevice) {
61+
pixel2api26(ManagedVirtualDevice) {
6262
device = "Pixel 2"
63-
apiLevel = 23
63+
apiLevel = 26
6464
systemImageSource = "aosp"
6565
abi = "x86"
6666
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class MainActivityTests {
6666
*
6767
* See the Github Actions setup of this project for an example.
6868
*/
69-
@Test @TestDeviceApi23
70-
fun regressionTestKnownIssueApi23() {
69+
@Test @TestDeviceApi26
70+
fun regressionTestKnownIssueApi26() {
7171
// Add instrumented tests here
7272
runBlocking { delay(10000) }
7373
Assert.assertTrue(true)

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

Lines changed: 2 additions & 2 deletions
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 23 regression bugs.
19+
* Annotate tests with this annotation when testing API 26 regression bugs.
2020
*/
21-
annotation class TestDeviceApi23
21+
annotation class TestDeviceApi26
2222

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

0 commit comments

Comments
 (0)