Sourced from org.robolectric:robolectric's releases.
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.setStaticFieldno longer removes thefinalkeyword from static fields. This is because removingfinalusing reflection stops working in JDK 18 due to https://openjdk.java.net/jeps/416. To removefinalfrom static fields, consider using some instrumentation-based approach, such as mockito-inline.What's Changed
- Remove dead code that uses Plan based instrumentation (ClassHandler.Plan) robolectric/robolectric#7610
- Run SDK 33 tests on CI by
@utzcozin robolectric/robolectric#7613- Bump maximum API for GMD to SDK 33 by
@utzcozin robolectric/robolectric#7614- Remove use-sdk from androidx_test/sharedTest/AndroidManifest.xml by
@utzcozin robolectric/robolectric#7615- [Warning] Eliminated AnnotateFormatMethod warnings by
@hellosagarin robolectric/robolectric#7353- Remove 0x prefix for string format log by
@utzcozin robolectric/robolectric#7617- Bump compile/targetSdk to 33 by
@utzcozin robolectric/robolectric#7616- Remove unused Exception for ShadowActivityTest by
@utzcozin robolectric/robolectric#7618- Support Activity setShowWhenLocked() and setTurnScreenOn() by
@utzcozin robolectric/robolectric#7438- Exclude kotlin-stdlib dependency from utils generated .pom by
@utzcozin robolectric/robolectric#7607- Move dependencies of shadows/framework to gradle.properties by
@utzcozin robolectric/robolectric#7627- Bump ASM to 9.3 by
@utzcozin robolectric/robolectric#7626- Add the ability to deploy specific preinstrumented jars to maven by
@hoisiein robolectric/robolectric#7602- Combine exceptions for ReflectionHelpers#getDeclaredField by
@utzcozin robolectric/robolectric#7634- Clean up ShadowAccountManager by
@utzcozin robolectric/robolectric#7636- Migrate Gradle dependencies to dependencies.gradle by
@utzcozin robolectric/robolectric#7635- Add alternative to Unsafe.defineAnonymousClass by
@utzcozin robolectric/robolectric#7633- Support all authentication results for BiometricManager by
@charlesngin robolectric/robolectric#7427- Bump bcprov-jdk15on from 1.68 to 1.70 by
@dependabotin robolectric/robolectric#7638- Bump constraintlayout from 2.1.3 to 2.1.4 by
@dependabotin robolectric/robolectric#7640- Reuse bytecode of ClassWriter for ProxyMaker by
@utzcozin robolectric/robolectric#7643- Migrate instance calling in ReflectionHelpers to lambda by
@utzcozin robolectric/robolectric#7644- Bump compile-testing from 0.18 to 0.19 by
@dependabotin robolectric/robolectric#7645- Bump apiCompatVersion from 4.7 to 4.8.2 by
@dependabotin robolectric/robolectric#7647- Bump gson from 2.8.6 to 2.9.1 by
@dependabotin robolectric/robolectric#7646- Bump core from 1.5.0 to 1.9.0 by
@dependabotin robolectric/robolectric#7649- Clean up unused code for ShadowDisplayManagerTest by
@utzcozin robolectric/robolectric#7662- Remove unused shadows ShadowCornerPathEffect and ShadowLinearGradient robolectric/robolectric#7668
- Bump apiCompatVersion from 4.8.2 to 4.9 by
@dependabotin robolectric/robolectric#7672- Add call to $$robo$init for Jacoco-instrumented constructors robolectric/robolectric#7677
- Respect ShadowProvider priority when populating the ShadowPicker map robolectric/robolectric#7686
- Properly parse & populate process information from the manifest. ServiceInfo.processName and ActivityInfo.processName will now correctly reflect the value of the process attribute from their respective manifest entry. robolectric/robolectric#7690
- Bump autoServiceVersion from 1.0-rc6 to 1.0.1 by
@dependabotin robolectric/robolectric#7674- Create an activity context for activities. robolectric/robolectric#6481
- Remove deprecated Utils#intArrayToList by
@utzcozin robolectric/robolectric#7687- Fix configuration/resource handling in activity contexts robolectric/robolectric#7692
- Add Java source & target compatibility config for preinstrumented by
@utzcozin robolectric/robolectric#7664- Update the
ResourcesManagerconfiguration when applying qualifiers robolectric/robolectric#7697- Replace Config with Implementation robolectric/robolectric#7710
- Switch to ubuntu-20.04 for GitHub Actions by
@utzcozin robolectric/robolectric#7716- Bump errorproneVersion from 2.9.0 to 2.16 by
@dependabotin robolectric/robolectric#7715- Bump Kotlin to 1.7.10 by
@utzcozin robolectric/robolectric#7497- Upgrade androidx.test and androidx.fragment versions to latest. by
@brettchabotin robolectric/robolectric#7683- Bump kotlinVersion from 1.5.20 to 1.7.20 by
@dependabotin robolectric/robolectric#7694
... (truncated)
245c8f6 Bump version to 4.10.732290a Merge branch 'google' into 'master'301c158 Fix doc typo for ShadowWebviewf8cfc86 Remove executable flag for some Java filesd2340ee Support partial AppComponentFactory in Robolectric1d3cdab Adjust to future platform changes.877eb6a Migrate task definations to task.register45cb893 Add basic implementation for LocationManager.requestFlush().40c16ea Remove unnecessary logic to transform broadcast receiver class namesadb2d07 Fix AssetManagerTest on android U