What’s New

Robolectric robolectric-4.17-beta-1

robolectric-4.17-beta-1Pre-release

Robolectric 4.17-beta-1

Added 8
  • Support for SDK 37
  • Shadow for getDeviceOwnerComponentOnAnyUser
  • ShadowTelMan implementation of get/setPreferredOpportunisticDataSubscription
  • Robolectric support for AccessibilityWindowInfo.get/setRegionInScreen()
  • Support for mouse wheel scroll events to the simulator
  • SurroundingTextCallback to ShadowAccessibilityInputConnection
  • setInformationElements() to WifiScanResultBuilder
  • isWallpaperBackupEligible and getWallpaperFile with cropping
Changed 4
  • ShadowCameraCharacteristics.set(Key<T>, Object) has been changed to set(Key<T>, T) to correctly reflect type enforcement in the framework
  • Make all static fields emitted by Reflector volatile
  • Update listener logic of getProfileProxy to match actual behavior
  • Update ShadowTelephonyManager to support updateAvailalbeNetworks
Fixed 3
  • UiModeManager contrast handling in in-development SDK
  • ShadowPausedLooper#poll when sync barrier is blocking the queue
  • UserManager.isMainUser on in-development SDK
Removed 1
  • AndroidVersions has been removed in favor of using android.os.Build constants
Deprecated 1
  • Scheduler#size is unsupported on SDKs greater than Baklava

Robolectric 4.17-beta-1 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
New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.16.1...robolectric-4.17-beta-1

View original

Discussion