AppComponent.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package eu.kanade.mangafeed.injection.component;
  2. import android.app.Application;
  3. import javax.inject.Singleton;
  4. import dagger.Component;
  5. import eu.kanade.mangafeed.data.chaptersync.MyAnimeList;
  6. import eu.kanade.mangafeed.data.chaptersync.UpdateChapterSyncService;
  7. import eu.kanade.mangafeed.data.download.DownloadService;
  8. import eu.kanade.mangafeed.data.sync.LibraryUpdateService;
  9. import eu.kanade.mangafeed.injection.module.AppModule;
  10. import eu.kanade.mangafeed.injection.module.DataModule;
  11. import eu.kanade.mangafeed.ui.catalogue.CataloguePresenter;
  12. import eu.kanade.mangafeed.ui.download.DownloadPresenter;
  13. import eu.kanade.mangafeed.ui.library.LibraryPresenter;
  14. import eu.kanade.mangafeed.ui.manga.MangaActivity;
  15. import eu.kanade.mangafeed.ui.manga.MangaPresenter;
  16. import eu.kanade.mangafeed.ui.manga.chapter.ChaptersPresenter;
  17. import eu.kanade.mangafeed.ui.manga.info.MangaInfoPresenter;
  18. import eu.kanade.mangafeed.ui.manga.myanimelist.MyAnimeListPresenter;
  19. import eu.kanade.mangafeed.ui.reader.ReaderPresenter;
  20. import eu.kanade.mangafeed.ui.catalogue.SourcePresenter;
  21. import eu.kanade.mangafeed.data.source.base.Source;
  22. import eu.kanade.mangafeed.ui.reader.ReaderActivity;
  23. import eu.kanade.mangafeed.ui.setting.SettingsAccountsFragment;
  24. import eu.kanade.mangafeed.ui.setting.SettingsDownloadsFragment;
  25. @Singleton
  26. @Component(
  27. modules = {
  28. AppModule.class,
  29. DataModule.class
  30. }
  31. )
  32. public interface AppComponent {
  33. void inject(LibraryPresenter libraryPresenter);
  34. void inject(MangaPresenter mangaPresenter);
  35. void inject(SourcePresenter sourcePresenter);
  36. void inject(CataloguePresenter cataloguePresenter);
  37. void inject(MangaInfoPresenter mangaInfoPresenter);
  38. void inject(ChaptersPresenter chaptersPresenter);
  39. void inject(ReaderPresenter readerPresenter);
  40. void inject(DownloadPresenter downloadPresenter);
  41. void inject(MyAnimeListPresenter myAnimeListPresenter);
  42. void inject(ReaderActivity readerActivity);
  43. void inject(MangaActivity mangaActivity);
  44. void inject(SettingsAccountsFragment settingsAccountsFragment);
  45. void inject(SettingsDownloadsFragment settingsDownloadsFragment);
  46. void inject(Source source);
  47. void inject(MyAnimeList myAnimeList);
  48. void inject(LibraryUpdateService libraryUpdateService);
  49. void inject(DownloadService downloadService);
  50. void inject(UpdateChapterSyncService updateChapterSyncService);
  51. Application application();
  52. }