Skip to content

Commit a68ef4e

Browse files
authored
Merge pull request #872 from dturner/fix-ci-build
Attempt to fix CI build for AGP 7.2.2
2 parents 67aeac7 + d244175 commit a68ef4e

File tree

4 files changed

+11
-38
lines changed

4 files changed

+11
-38
lines changed

.github/ci-gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616

1717
org.gradle.daemon=false
18-
org.gradle.parallel=true
18+
org.gradle.parallel=false
1919
org.gradle.jvmargs=-Xmx5120m
2020
org.gradle.workers.max=2
2121

.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 30 ATD
55-
working-directory: .
56-
run: ./gradlew -Pandroid.sdk.channel=3 -Pandroid.experimental.androidTest.numManagedDeviceShards=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" pixel2api30atdDebugAndroidTest
57-
58-
- name: Run all tests pixel 2 api 30 non-ATD
59-
working-directory: .
60-
run: ./gradlew -Pandroid.sdk.channel=3 -Pandroid.experimental.androidTest.numManagedDeviceShards=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" pixel2api30DebugAndroidTest
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-
pixel2api30atd(com.android.build.api.dsl.ManagedVirtualDevice) {
90-
// Use device profiles you typically see in Android Studio
91-
device = "Pixel 2"
92-
apiLevel = 30
93-
// You can also specify "google" if you require Google Play Services.
94-
systemImageSource = "aosp-atd"
95-
}
96-
pixel2api30(com.android.build.api.dsl.ManagedVirtualDevice) {
97-
// Use device profiles you typically see in Android Studio
98-
device = "Pixel 2"
99-
apiLevel = 30
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
/*

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
mavenCentral()
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.3.0-beta05'
12+
classpath 'com.android.tools.build:gradle:7.2.2'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1414
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
1515
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"

0 commit comments

Comments
 (0)