Back to project page NerdRoll.
The source code is released under:
Apache License
If you think the Android project NerdRoll listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bignerdranch.android.nerdroll; /* w ww .ja v a2s. c om*/ import com.bignerdranch.android.nerdroll.util.GsonParcer; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; import flow.Parcer; @Module(library = true) public class MainApplicationModule { @Provides @Singleton Gson provideGson() { return new GsonBuilder().create(); } @Provides @Singleton Parcer<Object> provideParcer(Gson gson) { return new GsonParcer<>(gson); } }