Skip to content

Commit 62d4253

Browse files
[ConfigSample] Upgrade Gradle plugin and remove opt-in parameter
1 parent 6f55b48 commit 62d4253

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.github/workflows/TestConfigurationSample.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ jobs:
8383

8484
- name: Run all tests
8585
working-directory: ${{ env.SAMPLE_PATH }}
86-
run: ./gradlew pixel2api29DebugAndroidTest -i -Pandroid.experimental.androidTest.useUnifiedTestPlatform=true -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen
86+
run: ./gradlew -i pixel2api29DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen
8787

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

9292
- name: Run large screen tests
9393
working-directory: ${{ env.SAMPLE_PATH }}
94-
run: ./gradlew -i nexus9api29DebugAndroidTest -Pandroid.experimental.androidTest.useUnifiedTestPlatform=true -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen
94+
run: ./gradlew -i nexus9api29DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen
9595

9696
- name: Upload test reports
9797
if: always()

TestConfigurationSample/app/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ android {
4141
composeOptions {
4242
kotlinCompilerExtensionVersion compose_version
4343
}
44-
4544
packagingOptions {
46-
// Multiple dependency bring these files in. Exclude them to enable
47-
// our test APK to build (has no effect on our AARs)
48-
excludes += "/META-INF/AL2.0"
49-
excludes += "/META-INF/LGPL2.1"
45+
resources {
46+
excludes += ['/META-INF/AL2.0', '/META-INF/LGPL2.1']
47+
}
5048
}
5149

50+
5251
testOptions {
5352
devices {
5453
pixel2api29(ManagedVirtualDevice) {

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.0.2'
32+
classpath 'com.android.tools.build:gradle:7.1.0-alpha11'
3333
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
3434
}
3535
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Sep 14 13:31:05 WEST 2021
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)