Bump robolectric_version from 4.3.1 to 4.4
Bumps robolectric_version from 4.3.1 to 4.4.
Updates robolectric from 4.3.1 to 4.4
Release notes
Sourced from robolectric's releases.
Robolectric 4.4 is a massive release in terms of improvements to Android compatibility. The most noticeable item in the release is that the new PAUSED looper mode is now the default. You can read about the PAUSED looper in more detail here: http://robolectric.org/blog/2019/06/04/paused-looper/.
Note:
- Not all changes are listed in the release notes. There were many other minor changes (such as dependency version bumps) that weren't included in this list for brevity. For all changes view the comparison to 4.3.1.
- Some of the pull requests in this release may contain duplicate changes from other pull requests in this release. We apologize for this messy history, it was the result of some misconfigured code sync tool. We’ve taken measures to ensure it doesn’t happen any more.
Use Robolectric:
testCompile "org.robolectric:robolectric:4.4"SDK/JVM support
- Add support for Android Q final (#5289, #5292)
- Support running on Java 11 (#5479, #5805)
- Support running on Java 13 (#5550, #5786, #5805, #5819)
Deprecations
- Deprecate LooperMode LEGACY in favor of PAUSED (#5490), and default to PAUSED looper mode (#5491)
- Accessibility checking is now deprecated and has been moved into a separate maven artifact
org.robolectric:plugin-accessibility-deprecated. Accessibility checking will be removed entirely from Robolectric 4.5. Please switch to Espresso for accessibility checking. (#5547)- Deprecate ShadowContentResolver shadow API because they do not work with ContentProviderClient (#5376)
- Deprecate ShadowLocationManager.getLocationUpdateListeners and ShadowLocationManager.getLocationUpdateListeners (#5150)
- Make it an error to run on Q with an unsupported java version instead of just silently skipping tests (#5290)
- Deprecate Robolectric's custom cursor implementation (#5613)
- The BouncyCastle security provider is now considered deprecated due to the incompatibility with Java 9+ (#5849, #5850). This was preventing Robolectric tests (and Robolectric itself) from making HTTPS network requests on Java 9+. Long term the plan is to switch to Conscrypt.
Android support / Robolectric test API improvements
- Fix bug in ShadowImageDecoder.decodeBitmap (#4966)
- Use real setting for WIFI_SCAN_ALWAYS_AVAILABLE (#4968)
- Add a shadow for Font.Builder (#4993)
- Add killProcess implementation to ShadowProcess (#4985)
- Add a shadow for CallLog.Calls (#4996)
- Add a shadow for CallScreeningService (#4997)
- Add several shadows for camera2 classes (#4874)
- Add option to avoid calling ShadowApplication.onServiceDisconnected in ShadowApplication.unbindService (#4979)
- Add ability to simulate Bluetooth unavailable in ShadowBluetoothAdapter (#5002)
- Implement ShadowApplicationPackageManager.getApplicationIcon(ApplicationInfo) (#5005)
- Add ability to simulate SecurityExceptions in bindService (#4980)
- Add ability to simulate enabled/disabled networks in ShadowWifiManager (#4974)
- Add ability to simulate wifi usability system APIs in ShadowWifiManager (#5168)
- Add null check in ShadowWifiManager.addNetwork (#5014)
- Add shadow implementation of ShadowTelephonyManager#getDataState (#5003)
- Fall back to Android's implementation of getResourcesForApplication (#4969)
- Implement ShadowTypeface.equals and ShadowTypeface.hashCode (#4992)
- Add ability to make ShadowContentResolver.registerContentObserver throw an exception (#4988)
- Implement ShadowSubscriptionManager.getActiveSubscriptionInfoCountMax (#5010)
- Add ability to set system dialer package in ShadowTelecomManager (#4986)
Commits
89cb5a8Bump version to 4.4.4c8cecbRemove final from ShadowTileService3d0923cDo not acquire Mockito's MockMethodDispatcher27fa190Bump version to 4.4-beta-1.7544875Merge pull request #5855 from hoisie/https-castb6d523bStop casting to HTTPSUrlConnection in MavenArtifactFetcher245f5e7Reopen master for 4.4-SNAPSHOT development6f4755aBump version to 4.4-alpha-5.bc0cf79Merge pull request #5854 from hoisie/handle-existing-directory72c7eb4Handle the case where the artifact subdirectory exists- Additional commits viewable in compare view
Updates annotations from 4.3.1 to 4.4
Release notes
Sourced from annotations's releases.
Robolectric 4.4 is a massive release in terms of improvements to Android compatibility. The most noticeable item in the release is that the new PAUSED looper mode is now the default. You can read about the PAUSED looper in more detail here: http://robolectric.org/blog/2019/06/04/paused-looper/.
Note:
- Not all changes are listed in the release notes. There were many other minor changes (such as dependency version bumps) that weren't included in this list for brevity. For all changes view the comparison to 4.3.1.
- Some of the pull requests in this release may contain duplicate changes from other pull requests in this release. We apologize for this messy history, it was the result of some misconfigured code sync tool. We’ve taken measures to ensure it doesn’t happen any more.
Use Robolectric:
testCompile "org.robolectric:robolectric:4.4"SDK/JVM support
- Add support for Android Q final (#5289, #5292)
- Support running on Java 11 (#5479, #5805)
- Support running on Java 13 (#5550, #5786, #5805, #5819)
Deprecations
- Deprecate LooperMode LEGACY in favor of PAUSED (#5490), and default to PAUSED looper mode (#5491)
- Accessibility checking is now deprecated and has been moved into a separate maven artifact
org.robolectric:plugin-accessibility-deprecated. Accessibility checking will be removed entirely from Robolectric 4.5. Please switch to Espresso for accessibility checking. (#5547)- Deprecate ShadowContentResolver shadow API because they do not work with ContentProviderClient (#5376)
- Deprecate ShadowLocationManager.getLocationUpdateListeners and ShadowLocationManager.getLocationUpdateListeners (#5150)
- Make it an error to run on Q with an unsupported java version instead of just silently skipping tests (#5290)
- Deprecate Robolectric's custom cursor implementation (#5613)
- The BouncyCastle security provider is now considered deprecated due to the incompatibility with Java 9+ (#5849, #5850). This was preventing Robolectric tests (and Robolectric itself) from making HTTPS network requests on Java 9+. Long term the plan is to switch to Conscrypt.
Android support / Robolectric test API improvements
- Fix bug in ShadowImageDecoder.decodeBitmap (#4966)
- Use real setting for WIFI_SCAN_ALWAYS_AVAILABLE (#4968)
- Add a shadow for Font.Builder (#4993)
- Add killProcess implementation to ShadowProcess (#4985)
- Add a shadow for CallLog.Calls (#4996)
- Add a shadow for CallScreeningService (#4997)
- Add several shadows for camera2 classes (#4874)
- Add option to avoid calling ShadowApplication.onServiceDisconnected in ShadowApplication.unbindService (#4979)
- Add ability to simulate Bluetooth unavailable in ShadowBluetoothAdapter (#5002)
- Implement ShadowApplicationPackageManager.getApplicationIcon(ApplicationInfo) (#5005)
- Add ability to simulate SecurityExceptions in bindService (#4980)
- Add ability to simulate enabled/disabled networks in ShadowWifiManager (#4974)
- Add ability to simulate wifi usability system APIs in ShadowWifiManager (#5168)
- Add null check in ShadowWifiManager.addNetwork (#5014)
- Add shadow implementation of ShadowTelephonyManager#getDataState (#5003)
- Fall back to Android's implementation of getResourcesForApplication (#4969)
- Implement ShadowTypeface.equals and ShadowTypeface.hashCode (#4992)
- Add ability to make ShadowContentResolver.registerContentObserver throw an exception (#4988)
- Implement ShadowSubscriptionManager.getActiveSubscriptionInfoCountMax (#5010)
- Add ability to set system dialer package in ShadowTelecomManager (#4986)
Commits
89cb5a8Bump version to 4.4.4c8cecbRemove final from ShadowTileService3d0923cDo not acquire Mockito's MockMethodDispatcher27fa190Bump version to 4.4-beta-1.7544875Merge pull request #5855 from hoisie/https-castb6d523bStop casting to HTTPSUrlConnection in MavenArtifactFetcher245f5e7Reopen master for 4.4-SNAPSHOT development6f4755aBump version to 4.4-alpha-5.bc0cf79Merge pull request #5854 from hoisie/handle-existing-directory72c7eb4Handle the case where the artifact subdirectory exists- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language -
@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)