Robolectric Versions Save

Android Unit Testing Framework

robolectric-4.10

1 year ago

Robolectric 4.10 adds support for native Android graphics. It is currently disabled by default and can be enabled using @GraphicsMode(NATIVE). When native graphics is enabled, interactions with Android graphics classes use real native Android graphics code and are much higher fidelity.

Behavior changes

In Robolectric 4.10, ReflectionHelpers.setStaticField no longer removes the final keyword from static fields. This is because removing final using reflection stops working in JDK 18 due to https://openjdk.java.net/jeps/416. To remove final from static fields, consider using some instrumentation-based approach, such as mockito-inline.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9.2...robolectric-4.10-alpha-1

robolectric-4.10-alpha-1

1 year ago

NOTE: Robolectric 4.10-alpha-1 is an outdated preview release; please use 4.10 or later instead.

robolectric-4.9.2

1 year ago

Robolectric 4.9.2 is a minor release that primarily fixes https://github.com/robolectric/robolectric/issues/7879, which was an issue using native SQLite with older Linux machines.

It also includes:

  • A fix for ShadowSpeechRecognizer in SDK <= 28 (0df34bf0cb5423afb64d7f4340c95e741ba26aa6, thanks @utzcoz)
  • Some fixes for instrumenting Jacoco-instrumented classes (7534d628fd69caab623b1ed31bf2096fd3c914db and 4e6047d88f7e8d9c83b13842a0d584d7eccd068a). Note there are still known issues with running Robolectric instrumentation on Jacoco-instrumented classes which should hopefully be fixed in 4.10.

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9.1...robolectric-4.9.2

robolectric-4.9.1

1 year ago

Robolectric 4.9.1 is a minor release that fixes several issues:

  • Fixes sdk levels in ShadowAppOpsManager (50e2cfa4294c5dcfb7127f51f355a366f947c89a, thanks @paulsowden)
  • Fixes an issue loading the native runtime on concurrent threads (0b4e996c27b85f05f7f52f75bc9d5109be7ef767)
  • Fixes some uses of LineBreaker and StaticLayout in Compose (ed2d7d3d600972090de29bcf9ad37d65a4d7ef47, thanks @samliu000)
  • Added proxy settings for fetching artifacts (bed3ca5a4ea314f730a9d58331b0099ca4c0abeb, thanks @sebastienrussell)
  • Avoid referring to Android S TelephonyCallback (d43ae9ad7b74512dbf89518247769ca5c2c4128c, thanks @styluo)
  • Fix data race in ShadowPausedLooper (cb231c8c133b6f2ed4e46148d1a4f551fdd52dd2)
  • Add shadow for LocaleManager#getSystemLocales (24d49f41227c35e0e3ce8564e404a39481c312e6, thanks @utzcoz)
  • Use uninterruptibly acquire for ResTable's lock (a221f6829110fd40b124527bde5317123f1737d9, thanks @utzcoz)
  • Update androidx.test dependencies to latest stable releases (0bdf89b884ac7c50c0e4d7a2b2fff848d795bf16, thanks @utzcoz)
  • Support zip files where EOCD's offset to central dir is -1 (9b36bc6b013db9e9eef5c509b2471cc8b0a7395a)

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9...robolectric-4.9.1

robolectric-4.9

1 year ago

Robolectric 4.9 adds support for Android T (API level 33).

This release removes shadows supportv4 module fully.

It also installs the Conscrypt as the primary Security provider. See http://robolectric.org/blog/2022/09/06/Umesh-GSoC-on-ConscryptMode/ for details.

4.9 also turns on NATIVE sqlite mode by default for Mac and Linux. Windows will continue to use the LEGACY SQLite mode.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.8...robolectric-4.9-alpha-1

robolectric-4.9-alpha-1

1 year ago

NOTE: Robolectric 4.9-alpha-1 is an outdated preview release; please use 4.9 or later instead.

robolectric-4.8.2

1 year ago

This is a minor release that fixes a number of issues, including:

Use Robolectric 4.8.2:

testCompile "org.robolectric:robolectric:4.8.2"

robolectric-4.8.1

2 years ago

This is a minor release that fixes #7286, a NoClassDefError that can occur. Thanks for @utzcoz for the fix (#7284).

robolectric-4.8

2 years ago

Robolectric 4.8 adds support for Android S V2 (API level 32). It also contains many bug fixes and API enhancements.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.7.3...robolectric-4.8

Use Robolectric:

testCompile "org.robolectric:robolectric:4.8"

robolectric-4.8-alpha-1

2 years ago

*NOTE: Robolectric 4.8-alpha-1 is a outdated preview release; please use 4.8 or later instead.