Injection.java 734 B

12345678910111213141516171819202122
  1. package com.epson.iprint.storage.gdrivev3;
  2. import com.epson.iprint.storage.Network;
  3. class Injection {
  4. private static volatile DownloadPresenterFactory sDownloadPresenterFactory;
  5. interface DownloadPresenterFactory {
  6. GoogleDownloadPresenter createDownloadPresenter(@NonNull GoogleDownloadContract.View view);
  7. }
  8. static void setDownloadPresenterFactory(@Nullable DownloadPresenterFactory downloadPresenterFactory) {
  9. }
  10. Injection() {
  11. }
  12. static GoogleDownloadPresenter provideDownloadPresenter(@NonNull GoogleDownloadContract.View view) {
  13. return new GoogleDownloadPresenter(new IprintGoogleSignIn(), new PlayServiceDialogManager(), new DownloaderWrapper(), new Network(), view);
  14. }
  15. }