Sourced from robolectric's releases.
Robolectric 4.9 adds support for Android T (API level 33).
This release removes shadows supportv4 module fully.
It also installs the Conscrypt as the primary Security provider. See http://robolectric.org/blog/2022/09/06/Umesh-GSoC-on-ConscryptMode/ for details.
4.9 also turns on NATIVE sqlite mode by default for Mac and Linux. Windows will continue to use the LEGACY SQLite mode.
What's Changed
- Enable integration_tests:sparsearray tests by
@utzcozin robolectric/robolectric#7006- Enable CI when PRs are made to the 'google' branch by
@hoisiein robolectric/robolectric#7164- Add triggerOnReadyForSpeech() to ShadowSpeechRecognizer. robolectric/robolectric#7163
- Bump gradle-versions-plugin to 0.42.0 by
@utzcozin robolectric/robolectric#6970- Clean up tests.yml by
@utzcozin robolectric/robolectric#7161- Block
UiController#loopMainThreadUntilIdleon registered idling resources being idle. robolectric/robolectric#7148- Return non-zero pointer from
nCreateTextureLayerrobolectric/robolectric#7166- Correctly register all idling resources robolectric/robolectric#7167
- Update README.md to declare Robolectric supports SDK 32 by
@utzcozin robolectric/robolectric#7169- Indicate windows are visible by default (flag enabled) robolectric/robolectric#7179
- Add documentation to run tests on Emulator by
@utzcozin robolectric/robolectric#7162- Restore accidentally deleted link to building Robolectric robolectric/robolectric#7183
- Ensure getNetworkCountryIso & getSimCountryIso return lowercase only, to match the actual APIs. robolectric/robolectric#7184
- Update RoboLocationRequest equals() and toString(). robolectric/robolectric#7186
- Centralize the Injector logic to load the native runtime robolectric/robolectric#7198
- Fixed PFD testGetFd_canRead test failed on macOS. by
@ZSmallXin robolectric/robolectric#7202- Optimize CI a bit by
@Gooolerin robolectric/robolectric#7195- Clean up ctesque by
@utzcozin robolectric/robolectric#7145- Clean up ShadowDefaultRequestDirectorTest.java by
@utzcozin robolectric/robolectric#7208- Bump Gradle to 7.4.2 by
@utzcozin robolectric/robolectric#7207- Remove unused Exception from example in README.md by
@utzcozin robolectric/robolectric#7206- Error prone and google format fix annotation module by
@hellosagarin robolectric/robolectric#7154- Update CI to use JDK 11.0.14 by
@hoisiein robolectric/robolectric#7213- Support Canvas#drawRect with RectF by
@Akshay2131in robolectric/robolectric#7210- Remove maxSdk restrition for ShadowBiometricManager#canAuthenticate implementation by
@utzcozin robolectric/robolectric#7211- Switch to run tests on Emulator with SDK 29,32 by
@utzcozin robolectric/robolectric#7170- Support JDK 1.8 in ShadowWrangler invokespecial logic robolectric/robolectric#7219
- build: bump errorprone plugin version from 1.3.0 to 2.0.2 by
@hellosagarin robolectric/robolectric#7218- Bring integration_tests to API 32 by
@utzcozin robolectric/robolectric#7217- Add method expectLogMessagePatternWithThrowableMatcher to ExpectedLogMessagesRule so that users can check for a Throwable, as well as a log message pattern. robolectric/robolectric#7221
- Add javadoc for DefaultShadowPicker by
@hoisiein robolectric/robolectric#7222- Add SdkSuppress to some tests in ThemeTest and MotionEventTest by
@hoisiein robolectric/robolectric#7227- Removed
targetSdkfrom AndroidManifest.xml by@Umesh-01in robolectric/robolectric#7232- Add getCurrentSyncs() in ShadowContentResolver by
@Akshay2131in robolectric/robolectric#7225- Make deep copy of mPointerProperties for NativeInput#copyFrom by
@utzcozin robolectric/robolectric#7251- Remove empty ShadowTextPaint by
@utzcozin robolectric/robolectric#7250- Migrate compileSdkVersion to compileSdk by
@Akshay2131in robolectric/robolectric#7253- Ensure ShadowActivity can work with project targetSdk less than S by
@utzcozin robolectric/robolectric#7254- Deprecate is___Intent methods of ShadowPendingIntent robolectric/robolectric#7276
- Invoke the real View.draw(Canvas) from ShadowView.draw(Canvas) robolectric/robolectric#7279
- Add looper mode assertions to
ShadowChoreographermethods robolectric/robolectric#7278
... (truncated)
6d24315 Bump version to 4.9.4091c1c Merge branch 'google' into 'master'13e8976 Remove unnecessary ColorMatrixColorFilter shadow2cfaf90 Update ShadowTelephonyManager with Tiramisu getServiceState function34cffc9 Remove empty ShadowBitmapShader32f97fc Fix several edge cases in constructor instrumentationf53a74b Block explicit intents if they don't match intent filters on T+.49e67dd Initialize configuration before calling application lifecycle plugins26ed520 Create check to see if constructor can be instrumentedcc0a05f Clean up some API methods on ShadowBitmap