Dagger is a dependency injection framework that allows injecting collaborators into objects without requiring manual passing of dependencies. RxJava implements reactive programming, allowing observable streams to be manipulated through operators like map and filter. Retrofit makes REST API calls simply by defining an interface and allows results to be easily converted to Java objects. Together these libraries help create testable Android applications by decoupling classes and managing dependencies and asynchronous processes in a declarative way.
34. 都是別人說,現在換我說XD
rxjava的確算是較大型的lib,learning curve比較
高,有很多東西需要花時間學習&了解.
but如果我們只是用來處理 api + data handle 而
不用來處理複雜的邏輯 or data combining...
(https://github.com/nightbear1009/RxAndroid-
Login-Sample ),
我相信會是個不錯的選擇
43. so… what can we do with these lib
Demo Time again
44. Conclusion
● use Retrofit to handle Network api
● use dagger to injection every retrofit’s
adapter
(so we can mock the api data)
● use rxjava to handle every event including
api call back
(so our logic will be clearly)