mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-12-27 23:58:40 +03:00
28 lines
543 B
Java
28 lines
543 B
Java
|
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;
|
||
|
}
|
||
|
|
||
|
}
|