Open JoosungPark opened 7 years ago
branch : origin/mvvm_rxjava
ref. retrofit : https://github.com/square/retrofit lambda : https://github.com/orfjackal/retrolambda RxJava: Android MVVM App structre with Retrofit, https://medium.com/@manuelvicnt/rxjava-android-mvvm-app-structure-with-retrofit-a5605fa32c00#.k8l4j169d
Android MVVM App structre with Retrofit 도식화.
diagram of RetrofitExample. https://blog.robinchutaux.com/blog/a-smart-way-to-use-retrofit/
to apply mvvm with rxjava and retrofit, it is need to combine upons.
it is just blueprint-architecture.
use ReplaceBuilder to move from ImageFragment to ImageDetailFragment with imagesViewModel. and the definition of RecyclerAdapter is a bit more anxious.
for more efficient design, insert AbstractRepository between ViewModel and RetrofitWrapper. ConcreteRepository creates an appropriate RetrofitWrapper instance. cf. AbstractRepository must return below method. \<Parameter> Flowable\<List\<ImageModel>> next(Parameter parameter)
Ref. https://github.com/googlesamples/android-architecture