Releases: RBusarow/Dispatch
Releases · RBusarow/Dispatch
v1.0.0-beta10
- Update coroutines to 1.5.0
- Add a BOM for unified dependency versions (#219)
- Fix permanent cancellation when using withViewLifecycleScope (#236)
1.0.0-beta09
v1.0.0-beta08
v1.0.0-beta07
v1.0.0-beta06
Update to coroutines to 1.4.1 in order to fix an issue with SharedFlow(#189)
v1.0.0-beta05
Api changes
- ViewLifecycleCoroutineScope is a special DispatchLifecycleScope meant for binding a scope to a Fragment's view lifecycle. (#179)
- Make testProvided receive TestProvidedCoroutineScope (#157)
- LifecycleCoroutineScope has been renamed to DispatchLifecycleScope, along with its extension function. The old names are still functional with a deprecated typealias. They will be removed in the future. (#186)
- CoroutineViewModel has been renamed to DispatchViewModel. The old names are still functional with a deprecated typealias. They will be removed in the future. (#186)
Bug fixes
- Use currentCoroutineContext to resolve the inner CoroutineContext in
flowOn___
functions. (#181)
Housekeeping
v1.0.0-beta04
Version 1.0.0-beta04
Bug fixes
- CoroutineTestExtension will now properly call
Dispatchers.setMain(...)
when injecting a CoroutineScope into a function or when not injecting at all. (#130)
v1.0.0-beta03
Renames
- The project has been renamed from DispatcherProvider to Dispatch.
- Maven coordinates for existing modules have changed.
- The base Maven coordinate has changed from
com.rickbusarow.DispatcherProvider
tocom.rickbusarow.dispatch
. - Base package names have been updated.
New artifacts
- dispatch-android-espresso adds support for IdlingResource dispatchers in Espresso testing.
- dispatch-android-lifecycle adds an alternative to the Androidx LifecycleScope functionality, with lots of configuration options.
- dispatch-android-lifecycle-extensions adds the lifecycleScope extension property, but with a configurable factory (useful for Espresso testing).
- dispatch-android-viewmodel adds an alternative to Androidx viewModelScope with configuration options.
- dispatch-detekt adds Detekt rules to warn against accidentally using a hard-coded CoroutineDispatcher.
- dispatch-test-junit4 adds a JUnit4 Rule for automatically providing and cleaning up a TestProvidedCoroutineScope.
- dispatch-test-junit5 adds JUnit5 Extension support for automatically providing and cleaning up a TestProvidedCoroutineScope.
runBlockingTestProvided fix
Features
- Added
CoroutineScope
factories which takeCoroutineContext
as a sole parameter for complexCoroutineScope
creation.
Test features
- Added
TestBasicDispatcherProvider
factory which usesCommonPool
fordefault
andio
, but a shared single-threadedExecutorCoroutineDispatcher
formain
andmainImmediate
to provide "natural" dispatch behavior in tests withoutDispatchers.setMain(...)
.
Bug fixes and improvements
runBlockingTestProvided
now uses the sameTestCoroutineDispatcher
as itsContinuationInterceptor
and in itsTestDispatcherProvider
(#15).runBlockingProvided
now usesTestBasicDispatcherProvider
as itsDispatcherProvider
.
flowOn* operators
- Add non-suspending
flowOn___()
operators for theFlow
api. - Lots of Kdocs.
- Maven artifacts.
- Lower JDK version to 1.6