On the <Overview> page for MVIKotlin docs, there's...
# mvikotlin
j
On the Overview page for MVIKotlin docs, there's this line
A tiny abstraction over Rx is used instead.
Does this mean that MVIKotlin has a dependency on a Java-only library e.g. RxJava? Or does it mean MVIKotlin has a custom Reactive Extensions implementation of its own? Or something else?
a
There are two Gradle modules in MVIKotlin:
rx
and
rx-internal
. They provide some abstractions like
Observer
,
Disposable
, etc. Plus there are some simple
Subject
implementations. Another solution would be to use the
Reaktive
library internally.
👍 1
k
Out of curiosity, why not use coroutine SharedFlow?
a
Sure, I don't want additional dependencies. Also I need to ensure that values are received by observers on the same call stack as emitted. I would rather use Reaktive, because it is much more predictable, and also much more stable in Kotlin/Native
👍 1