Skip to content

Bump org.robolectric:robolectric from 4.17 to 4.18 - #575

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps org.robolectric:robolectric from 4.17 to 4.18.

Release notes

Sourced from org.robolectric:robolectric's releases.

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
  • 276b95b Bump version to 4.18.
  • 1b04032 Stop registering legacy vector drawable groups and paths
  • 20207af Install manifest content providers at startup in the simulator
  • cc02277 Index shadow methods per shadow class instead of scanning them on every lookup
  • 32094a1 Notify matching callbacks when network capabilities change
  • 698a3f4 Scope Maven download locks to the local repository
  • 759fee2 Preserve resource IDs when cloning state list drawables
  • f94a141 Remove configuration listeners at instrumentation teardown
  • 06d8d93 Map trusted and focus virtual display flags to display flags
  • a48dbc9 Exit the simulator when building the sandbox fails
  • 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.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.17...robolectric-4.18)

---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
  dependency-version: '4.18'
  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 16, 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