Robolectric 3.8
brettchabot
released this
16 Mar 20:21
·
6383 commits
to master
since this release
Robolectric 3.8 brings support for Android P, performance improvements, and numerous other fixes and improvements.
Features
- Add support for Android P Developer Preview rev 2 [issue #3821].
- Performance improvement: remove redundant rest of shadows before tests. [issue #3814].
- Add
ActivityController.windowFocusChanged()
API. NotificationManager
simulation improvements [issue #3617].- Add shadow support for
ActivityManager.getMyMemoryState
[issue #3775]. - Add
isStopped()
method toShadowTextToSpeech
[issue #3818]. - Shadow DevicePolicyManager.getStorageEncryptionStatus [issue #3807].
- Added
setManifestShortcuts()
andsetMaxShortcutCountPerActivity()
toShadowShortcutManager
[issue #3803]. - Add shadow support for
Settings#canDrawOverlays()
.
Deprecations
ShadowNetworkInfo#newInstance()
andsetConnectionStatus()
.
Bug Fixes
- Fix
ShadowMediaPlayer
does not correctly handle instantiation off the UI thread. [issue #3050]. - Allow Jacoco code coverage to work with Robolectric. [issue #3791].
- Collapse internal whitespace down to single space character in string [issue #3791].
- Cleanup Shadow
MessageQueue
/Looper
andViewRootImpl
.
Misc
- Update android O-MR1 platform to newer build [issue #3817].
- Move
JarInstrumentor
to sandbox module [issue #3806].
Use Robolectric:
testCompile "org.robolectric:robolectric:3.8"
Find more details here. Report issues here. Enjoy!