Skip to content

Commit 38155c7

Browse files
authored
Merge pull request #358 from android/accessibilityupdate31
Update to androidx friendly accessibility-test-framework 3.1
2 parents 02d05f3 + 9cb222d commit 38155c7

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

ui/espresso/AccessibilitySample/app/build.gradle

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ android {
1111
versionName "1.0"
1212

1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
15+
multiDexEnabled true
1416
}
1517
lintOptions {
1618
abortOnError false
@@ -22,6 +24,10 @@ android {
2224
includeAndroidResources = true
2325
}
2426
}
27+
compileOptions {
28+
sourceCompatibility JavaVersion.VERSION_1_8
29+
targetCompatibility JavaVersion.VERSION_1_8
30+
}
2531
}
2632

2733
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
@@ -34,13 +40,13 @@ dependencies {
3440
// App dependencies
3541
implementation 'androidx.annotation:annotation:' + rootProject.androidxAnnotationVersion;
3642
implementation 'com.google.guava:guava:' + rootProject.guavaVersion
37-
// accessibility breaks without this on classpath
38-
implementation 'com.android.support:viewpager:28.0.0-alpha1'
43+
implementation 'androidx.multidex:multidex:2.0.1'
3944

4045
// Testing-only dependencies
4146
androidTestImplementation 'androidx.test:core:' + rootProject.coreVersion
4247
androidTestImplementation 'androidx.test.ext:junit:' + rootProject.extJUnitVersion
4348
androidTestImplementation 'androidx.test:runner:' + rootProject.runnerVersion
4449
androidTestImplementation 'androidx.test.espresso:espresso-core:' + rootProject.espressoVersion
4550
androidTestImplementation 'androidx.test.espresso:espresso-accessibility:' + rootProject.espressoVersion
51+
androidTestImplementation 'com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:3.1'
4652
}

ui/espresso/AccessibilitySample/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
google()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:4.0.1'
11+
classpath 'com.android.tools.build:gradle:4.1.1'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1313

1414
// NOTE: Do not place your application dependencies here; they belong
@@ -20,7 +20,6 @@ allprojects {
2020
repositories {
2121
// Insert local test repo here
2222
jcenter()
23-
2423
google()
2524
}
2625
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Jan 06 11:50:52 PST 2021
1+
#Wed Jan 06 14:30:55 PST 2021
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip

0 commit comments

Comments
 (0)