Skip to content

build(deps): bump org.robolectric:robolectric from 4.17 to 4.18.1 - #28

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/org.robolectric-robolectric-4.18.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/org.robolectric-robolectric-4.18.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bumps org.robolectric:robolectric from 4.17 to 4.18.1.

Release notes

Sourced from org.robolectric:robolectric's releases.

Robolectric 4.18.1 is a minor release that fixes several issues and improves the Robolectric simulator.

It fixes data races that ThreadSanitizer reported when several threads link calls to the same shadow method at once (#11784, #11786). It also fixes ShadowServiceManager.waitForService, which never blocked and could throw IllegalMonitorStateException (#11758), and scheduled task time queries on ShadowPausedLooper, which returned wrong times on newer SDKs and could race when called off the Looper thread (#11780, thanks to Brett Chabot). Content providers are now installed for lazily created applications (#11775), and Choreographer display receivers are disposed, which fixes a CloseGuard leak and stale clock callbacks (#11688, thanks to @​utzcoz).

For the simulator, it handles mouse and keyboard input when running headless (#11750) and advances the system clock by the time spent rendering (#11783). It also adds two opt-in system properties, which the simulator Gradle plugin turns on: robolectric.bindRealServices=true binds to the app's own services the way the system does (#11748), and robolectric.installDefaultUncaughtExceptionHandler=true installs an uncaught exception handler that logs crashes the way Android does (#11734).

Full Changelog: robolectric/robolectric@robolectric-4.18...robolectric-4.18.1

Robolectric 4.18 adds Linux arm64 support to the native runtime, supports native resources on SDK 36 and above, and contains many performance improvements and bug fixes.

If you have any issues, please file them here.

Breaking Changes

  • Support for SDK 23 has been removed. The minimum supported SDK is now 24, matching AndroidX (#11604).
  • The shadows-httpclient module has been removed. It was deprecated in 4.17, and org.apache.http is no longer instrumented (#11373, #11544).
  • @TextLayoutMode has been removed. Realistic text layout, the default since 2019, is now always used (#11498).
  • ShadowRemoteCallbackList has been removed, as the real RemoteCallbackList works without it (#11368).
  • HttpResponseCache.install() now also sets ResponseCache.getDefault(), as it does on a device (#11493).

Linux arm64 support

Robolectric's native runtime now includes Linux arm64 (aarch64) native libraries, so tests that use native SQLite (the default) and native graphics (@GraphicsMode(NATIVE)) can run on Linux arm64 environments, such as GitHub's ubuntu-24.04-arm runners, AWS Graviton machines, and arm64 Docker containers on Apple silicon. No configuration is needed (#11625, #11633). As on Apple silicon, the legacy SQLite mode (SQLiteMode.Mode.LEGACY) isn't supported on Linux arm64.

Other Highlights

  • Native resources (ResourcesMode.NATIVE) now work on SDK 36 and above, not only SDK 36 (#11578).
  • Robolectric no longer prints the "restricted method in java.lang.System has been called" warnings on JDK 24+ (#11482).
  • The shadow annotation processor now supports KSP (#10996).
  • Lots of performance improvements:
    • Resource values are shared between bags and themes instead of copied (#11726, #11595)
    • Faster shadow method lookups (#11723, #11593)
    • Cached resource reference resolution (#11586)
    • Cached service and plugin lookups (#11451, #11594, #11631)
    • Native runtime assets are extracted once and shared (#11453, #11522)
    • Faster class loading checks in the sandbox (#11662)
    • Regexes compiled once instead of on every use (#11399, #11400, #11401)
  • Conscrypt is now enabled by default on Mac arm64 (#11352).

What's Changed

... (truncated)

Commits
  • 5e21663 Bump version to 4.18.1.
  • 2ce560b Stop making shadow methods accessible when linking call sites
  • dd8b77a Advance ShadowSystemClock by render idle duration in Simulator loop.
  • df45f38 Fix ShadowPausedLooper scheduled task time queries and run them on the Looper...
  • f6bbaa9 Make shadow methods accessible once when indexing them
  • 99a99e7 Install content providers for lazily created applications
  • a72037e Dispose Choreographer display receivers
  • f693e5e Handle mouse and keyboard input in a headless simulator
  • 1eb1ecd Add an opt-in default uncaught exception handler
  • 6a9036b Wait on the class monitor in ShadowServiceManager.waitForService
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.17 to 4.18.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.17...robolectric-4.18.1)

---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
  dependency-version: 4.18.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants