aniyomi/app/src/main/java/eu/kanade/mangafeed/AppModule.java

28 lines
543 B
Java
Raw Normal View History

2015-09-24 18:27:43 +03:00
package eu.kanade.mangafeed;
import android.app.Application;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
/**
* Provide application-level dependencies. Mainly singleton object that can be injected from
* anywhere in the app.
*/
@Module
public class AppModule {
protected final Application mApplication;
public AppModule(Application application) {
mApplication = application;
}
@Provides
@Singleton
Application provideApplication() {
return mApplication;
}
}