Back to project page ponyville-live-android.
The source code is released under:
Apache License
If you think the Android project ponyville-live-android 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.ponyvillelive.app; /*from w w w . jav a 2s.com*/ import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import com.ponyvillelive.app.net.NetModule; import com.ponyvillelive.app.ui.UiModule; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; /** * Created by berwyn on 16/08/14. */ @Module( injects = { PvlApp.class }, includes = { UiModule.class, NetModule.class }, complete = false, library = true ) public class PvlModule { private final PvlApp app; public PvlModule(PvlApp app) { this.app = app; } @Provides @Singleton Application provideApplication() { return app; } @Provides @Singleton SharedPreferences provideSharedPreferences(Application app) { return app.getSharedPreferences("u2020", Context.MODE_PRIVATE); } }