Skip to content

build(deps): bump org.robolectric:robolectric from 4.16.1 to 4.17 - #1493

Merged
bmc08gt merged 3 commits into
code/cashfrom
dependabot/gradle/code/cash/org.robolectric-robolectric-4.17
Sep 18, 2026
Merged

bmc08gt merged 3 commits into
code/cashfrom
dependabot/gradle/code/cash/org.robolectric-robolectric-4.17

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 18, 2026

Copy link
Copy Markdown
Contributor

Bumps org.robolectric:robolectric from 4.16.1 to 4.17.

Release notes

Sourced from org.robolectric:robolectric's releases.

Robolectric 4.17 supports SDK 37 and contains many other features and enhancements.

Please note you may need to add jvmFlags configuration when using JDKs >= 17 at https://robolectric.org/getting-started/

If you have any issues, please file them here.

Breaking Changes

AndroidVersions has been removed in favor of using android.os.Build constants ShadowCameraCharacteristics.set(Key, Object) has been changed to set(Key, T), in order to correctly reflect type enforcement in the framework

What's Changed

... (truncated)

Commits
  • 0706415 Bump version to 4.17.
  • f3c17bd Bump version to 4.17-beta-4.
  • 04b84f6 "fixed ResTable_package.SIZEOF value
  • f4ee543 Apply suggestion from @​gemini-code-assist[bot]
  • fb99bfb Expose BouncyCastle BoM as api dependency
  • a453192 Fix Javadoc for VersionCalculator
  • 6f26892 Bump version to 4.17-beta-3
  • ceffe96 Only adjust frameinfo timestamp values (including vsync).
  • ea5879f Add opt-in fix for stale screenshots on SDK 37.
  • 8bea421 Fix jank log spam on SDK 37+ by translating FrameInfo timestamps.
  • 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.16.1 to 4.17.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.16.1...robolectric-4.17)

---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
  dependency-version: '4.17'
  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 type: build Build system, Gradle, dependencies labels Sep 18, 2026
@github-actions github-actions Bot added the area: build-system Gradle, convention plugins, build-logic label Sep 18, 2026
The comment justified sdk=36 as "the latest version it supports (4.16.1)".
4.17 supports SDK 37, which is this repo's compileSdk and targetSdk, so the
stated reason no longer holds.

Left the pin at 36. Raising it changes the Android level every test without an
explicit @config(sdk = ...) runs against, which is worth its own test run
rather than a ride-along on a version bump.
Robolectric 4.17 sets up FileDescriptor through jdk.internal.access.SharedSecrets,
a package the module system does not export. On the Java 21 toolchain every test
that starts the Android environment throws IllegalAccessException out of
AndroidTestEnvironment.setUpApplicationState before reaching an assertion — 31
failures in :libs:datetime and :libs:logging alone, where 4.16.1 was green.

Apply the --add-opens set from Robolectric's own test configuration to every Test
task. This lands in settings.gradle.kts rather than a convention plugin because
:libs:encryption:utils runs Robolectric from androidHostTest and applies the AGP
and KMP plugins directly, so no flipcash convention plugin reaches it; under
Isolated Projects the beforeProject hook is the one hook that sees every project.

All 25 modules that declare Robolectric now pass: 1439 tests, 0 failures.
@bmc08gt
bmc08gt merged commit 35a8e09 into code/cash Sep 18, 2026
4 checks passed
@bmc08gt
bmc08gt deleted the dependabot/gradle/code/cash/org.robolectric-robolectric-4.17 branch September 18, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build-system Gradle, convention plugins, build-logic dependencies Pull requests that update a dependency file type: build Build system, Gradle, dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant