Back to project page UpcomingMoviesMVP.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Defi...
If you think the Android project UpcomingMoviesMVP 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.jlmd.android.newfilmsmvp.di.module; //ww w. java 2 s .c om import android.content.Context; import com.jlmd.android.newfilmsmvp.di.AppApplication; import com.jlmd.android.newfilmsmvp.mvp.presenter.MovieDetailsPresenterImp; import com.jlmd.android.newfilmsmvp.mvp.presenter.MoviesListPresenterImp; import com.jlmd.android.newfilmsmvp.ui.activity.MainActivity; import com.jlmd.android.newfilmsmvp.ui.fragment.MovieDetailsFragment; import com.jlmd.android.newfilmsmvp.ui.fragment.MoviesListFragment; import com.squareup.otto.Bus; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; /** * @author jlmd */ @Module( includes = { RepositoryModule.class, PresenterModule.class, ComparatorModule.class }, injects = { AppApplication.class, MainActivity.class, MoviesListFragment.class, MoviesListPresenterImp.class, MovieDetailsFragment.class, MovieDetailsPresenterImp.class }, library = true ) public class RootModule { private final Context context; public RootModule(Context context) { this.context = context; } @Provides @Singleton public Context provideApplicationContext() { return context; } @Provides @Singleton public Bus provideBusEvent() { return new Bus(); } }