jenzz / RxAppState

[DEPRECATED] A simple Android library that monitors app state changes (background / foreground).
MIT License
195 stars 20 forks source link

Remove hard dependency on RxJava #4

Closed jenzz closed 7 years ago

jenzz commented 8 years ago

Even though it is pretty much standard (?) in Android world nowadays and the name of the library implies it, this library should probably not depend on RxJava.

Instead an additional, reactive adapter could be provided, e.g. com.jenzz:appstate-rx:2.0.0

lordcodes commented 8 years ago

Another possibility could be a provided dependency. That way if you call .subscribe() without having the RxJava dependency it will crash. This is similar to how Retrofit 1 worked, where it could return Observables without having a dependency on RxJava.

jenzz commented 7 years ago

- Done via https://github.com/jenzz/RxAppState/commit/3ea68fedc7449078851aedae5911a8d11079e38d -