Skip to content

Commit

Permalink
Add Android 12 test support
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 committed Jul 16, 2021
1 parent dd5f75b commit fea289a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ android {

testOptions {
devices {
api31(ManagedVirtualDevice) {
device = "Pixel 2"
apiLevel = 31
abi = "x86_64"
}
api30(ManagedVirtualDevice) {
device = "Pixel 2"
apiLevel = 30
Expand Down Expand Up @@ -72,8 +77,8 @@ android {
dependencies {
compileOnly project(":stub")
compileOnly 'androidx.annotation:annotation:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test:rules:1.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3-alpha05'
androidTestImplementation 'androidx.test:rules:1.4.0-alpha05'
androidTestCompileOnly project(":stub")
}

Expand Down
3 changes: 2 additions & 1 deletion library/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
androidx.test.rules,
androidx.test.runner,
androidx.test.core,
androidx.test.monitor" />
androidx.test.monitor,
androidx.test.services.storage" />
</manifest>

0 comments on commit fea289a

Please sign in to comment.