Closed halu5071 closed 6 years ago
https://github.com/halu5071/til/blob/master/2018/0125.md
I will change architecture from module-based clean architecture to package-based clean architecture
Because dagger injection on presentation can not refer to libraries on other modules. For example, Retrofit on data
layer require OkHttp reference then provideRetrofit()
method has okHttpClient
argument. However, in this case, dagger can not find OkHttpClient reference on data
layer.
on
domain
layerIn this app,
data
layer does not have entity package, because bothdata
anddomain
layer will use the same entities, anddata
layer can use entities ondomain
layerAdd Test