GetStream / stream-chat-android

:speech_balloon: Android Chat SDK ➜ Stream Chat API. UI component libraries for chat apps. Kotlin & Jetpack Compose messaging SDK for Android chat
https://getstream.io/chat/sdk/android/
Other
1.43k stars 269 forks source link

SDK Modularity #209

Closed elevenetc closed 4 years ago

elevenetc commented 4 years ago

Do we need modularity? I was thinking at least about few parts of SDK which might be useful to have optionally outside of the core:

tschellenbach commented 4 years ago
tschellenbach commented 4 years ago

https://github.com/square/retrofit/tree/master/retrofit-adapters/rxjava2

tschellenbach commented 4 years ago

https://github.com/android/architecture-components-samples/tree/master/BasicRxJavaSample

adrian09h commented 4 years ago

I completely agree with @tschellenbach 's comment.

bevzaanton commented 4 years ago

I think @elevenetc is right. Switching to RxJava significantly simplified and reduced the amount of code. Moreover, we need to finish working with an offline database where AsyncTasks are currently used what is not a good approach. Also now a big problem is the weird system of dependency classes. It is a bit complicated and not testable now. I think using Dependency Injection could help a lot. Including the transition to a modular system.