Upgrade to Robolectric 4.6

The tests now pass without @DoNotInstrument

I had to tweak the jetification settings due to a bug in the jetifier
shipped with the Android Gradle Plugin. More details:
https://github.com/robolectric/robolectric/issues/6521#issuecomment-851736355

PiperOrigin-RevId: 382757006
This commit is contained in:
ibaker 2021-07-02 17:35:14 +01:00 committed by kim-vde
parent ee426822ee
commit ef61d81d8d
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,7 @@ project.ext {
guavaVersion = '27.1-android'
mockitoVersion = '3.4.0'
mockWebServerVersion = '3.12.0'
robolectricVersion = '4.5.1'
robolectricVersion = '4.6'
checkerframeworkVersion = '3.3.0'
checkerframeworkCompatVersion = '2.5.0'
jsr305Version = '3.0.2'

View File

@ -1,5 +1,7 @@
## Project-wide Gradle settings.
android.useAndroidX=true
android.enableJetifier=true
# https://github.com/robolectric/robolectric/issues/6521#issuecomment-851736355
android.jetifier.blacklist=bcprov
buildDir=buildout
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m