VariantModule.kt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Nextcloud Android client application
  3. *
  4. * @author Chris Narkiewicz
  5. * Copyright (C) 2919 Chris Narkiewicz <hello@ezaquarii.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  9. * License as published by the Free Software Foundation; either
  10. * version 3 of the License, or any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public
  18. * License along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. package com.nextcloud.client.di
  21. import com.nextcloud.appscan.ScanPageContract
  22. import com.nextcloud.client.documentscan.AppScanOptionalFeature
  23. import dagger.Module
  24. import dagger.Provides
  25. import dagger.Reusable
  26. @Module
  27. internal class VariantModule {
  28. @Provides
  29. @Reusable
  30. fun scanOptionalFeature(): AppScanOptionalFeature {
  31. return object : AppScanOptionalFeature() {
  32. override fun getScanContract() = ScanPageContract()
  33. }
  34. }
  35. }