Skip to content

Commit 5f53fdf

Browse files
[TestConfigurationSample] Upgrade to AGP alpha07
1 parent dfb8fad commit 5f53fdf

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/TestConfigurationSample.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ jobs:
7373
~/.gradle/caches/build-cache-*
7474
key: gradle-${{ hashFiles('checksum.txt') }}
7575

76-
- name: Cache pixel2api29 system image
76+
- name: Cache pixel2api30 system image
7777
uses: actions/cache@v2
7878
with:
79-
path: ~/.android/gradle/avd/dev29_aosp_x86_Pixel_2.*
80-
key: pixel2api29
79+
path: |
80+
~/.android/gradle/avd/dev30_aosp_x86_Pixel_2.*
81+
~/.android/gradle/avd/dev30_aosp_x86_64_Pixel_2.*
82+
key: pixel2api30
8183

8284
- name: Cache pixel2api26 system image
8385
uses: actions/cache@v2
@@ -93,7 +95,7 @@ jobs:
9395

9496
- name: Run all tests
9597
working-directory: ${{ env.SAMPLE_PATH }}
96-
run: ./gradlew pixel2api29DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen --info
98+
run: ./gradlew pixel2api30DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen --info
9799

98100
- name: Run regression tests
99101
working-directory: ${{ env.SAMPLE_PATH }}

TestConfigurationSample/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ android {
4848

4949
testOptions {
5050
devices {
51-
pixel2api29(com.android.build.api.dsl.ManagedVirtualDevice) {
51+
pixel2api30(com.android.build.api.dsl.ManagedVirtualDevice) {
5252
// Use device profiles you typically see in Android Studio
5353
device = "Pixel 2"
54-
apiLevel = 29
54+
apiLevel = 30
5555
// You can also specify "google" if you require Google Play Services.
5656
systemImageSource = "aosp"
5757
abi = "x86"

TestConfigurationSample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ buildscript {
2929
}
3030

3131
dependencies {
32-
classpath 'com.android.tools.build:gradle:7.2.0-alpha06'
32+
classpath 'com.android.tools.build:gradle:7.2.0-alpha07'
3333
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
3434
}
3535
}

0 commit comments

Comments
 (0)