File tree Expand file tree Collapse file tree 4 files changed +11
-38
lines changed Expand file tree Collapse file tree 4 files changed +11
-38
lines changed Original file line number Diff line number Diff line change 15
15
#
16
16
17
17
org.gradle.daemon =false
18
- org.gradle.parallel =true
18
+ org.gradle.parallel =false
19
19
org.gradle.jvmargs =-Xmx5120m
20
20
org.gradle.workers.max =2
21
21
Original file line number Diff line number Diff line change @@ -51,13 +51,15 @@ jobs:
51
51
- name : Compile AndroidTests
52
52
run : ./gradlew compileDebugAndroidTestKotlin
53
53
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
61
63
62
64
- name : Upload build reports
63
65
if : always()
Original file line number Diff line number Diff line change @@ -83,35 +83,6 @@ android {
83
83
composeOptions {
84
84
kotlinCompilerExtensionVersion " $composeCompilerVersion "
85
85
}
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
- }
115
86
}
116
87
117
88
/*
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ buildscript {
9
9
mavenCentral()
10
10
}
11
11
dependencies {
12
- classpath ' com.android.tools.build:gradle:7.3.0-beta05 '
12
+ classpath ' com.android.tools.build:gradle:7.2.2 '
13
13
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
14
14
classpath " androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion "
15
15
classpath " com.google.dagger:hilt-android-gradle-plugin:$hiltVersion "
You can’t perform that action at this time.
0 commit comments