Sample demo to implement MVP, Dagger 2, RxJava and Retrofit 2
See the tutorial at https://medium.com/@nurrohman/a-simple-android-apps-with-mvp-dagger-rxjava-and-retrofit-4edb214a66d7#.o8fsr2904
MVP + Dagger 2 + RxJava + Retrofit2
Sample demo to implement MVP, Dagger 2, RxJava and Retrofit 2
See the tutorial at https://medium.com/@nurrohman/a-simple-android-apps-with-mvp-dagger-rxjava-and-retrofit-4edb214a66d7#.o8fsr2904
Hi, I just find a bug that the getListSuccess() in Homeresenter.java should be GetCityListSyccess()
Hello.
I made everything like in https://medium.com/@nurrohman/a-simple-android-apps-with-mvp-dagger-rxjava-and-retrofit-4edb214a66d7. Launched an application and received a white screen with blue toolbar. No cities are shown.
A great reason for using Dagger and an architecture is to facilitate unit-testing.
How come you've skipped unit tests ?
Excellent demo code otherwise
I have currently 4 different baseurl for different things in API call so how do I set all of them depends on requirement?
Here I'd like to point out that your Medium tutorial is not a tutorial by itself, at the moment it's just a bunch of code mirrored from GitHub. Mind you, I'm not telling this for the sake of blaming your (hard) job, but as you have pointed out at the end of the post, you didn't explain a lot of niches.
"I am so sorry, because I can’t explain this tutorial clearly."
So I'm opening this issue to invite the community to contribute with guided comments or links. Have a nice day!
In HomeActivity, can't we initialize HomePresenter via Dagger instead of directly using "new" operator,
as Definition of Dependancy Injection, there will you not be an explicit initialization of the object, please clear my doubt, I am confused here.
import com.plaps.androidcleancode.deps.DaggerDeps;
import com.plaps.androidcleancode.deps.Deps;
import com.plaps.androidcleancode.networking.NetworkModule;
import java.io.File;
/**
Created by ennur on 6/28/16.
*/
public class BaseApp extends AppCompatActivity{
Deps deps;
@OverRide
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
File cacheFile = new File(getCacheDir(), "responses");
deps = DaggerDeps.builder().networkModule(new NetworkModule(cacheFile)).build();
}
public Deps getDeps() {
return deps;
}
}
How to resolve DaggerDeps ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.