Clean up Hilt modules

This commit is contained in:
Ricki Hirner 2023-11-07 15:03:07 +01:00
parent 4a200dfbb7
commit 9d739dd087
No known key found for this signature in database
GPG key ID: 79A019FCAAEDD3AA

View file

@ -22,23 +22,17 @@ interface OseFlavorModules {
@Module
@InstallIn(ActivityComponent::class)
interface AccountsDrawerHandlerModule {
interface ForActivities {
@Binds
abstract fun accountsDrawerHandler(handler: OseAccountsDrawerHandler): AccountsDrawerHandler
}
abstract fun accountsDrawerHandler(impl: OseAccountsDrawerHandler): AccountsDrawerHandler
@Module
@InstallIn(ActivityComponent::class)
interface OpenSourceLicenseInfoProviderModule {
@Binds
fun appLicenseInfoProviderModule(impl: OpenSourceLicenseInfoProvider): AboutActivity.AppLicenseInfoProvider
fun appLicenseInfoProvider(impl: OpenSourceLicenseInfoProvider): AboutActivity.AppLicenseInfoProvider
}
//// intro fragments ////
// WelcomeFragment and BatteryOptimizationsFragment modules are hardcoded there
@Module
@InstallIn(ActivityComponent::class)
interface OpenSourceFragmentModule {