Remove OAuth dependency from app.core
This commit is contained in:
parent
526a6fe933
commit
5dfb37bfb0
3 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,6 @@ dependencies {
|
|||
api(projects.core.android.common)
|
||||
|
||||
implementation(projects.plugins.openpgpApiLib.openpgpApi)
|
||||
implementation(projects.feature.account.oauth)
|
||||
|
||||
api(libs.koin.android)
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ package com.fsck.k9
|
|||
|
||||
import android.content.Context
|
||||
import app.k9mail.core.android.common.coreCommonAndroidModule
|
||||
import app.k9mail.feature.account.oauth.domain.usecase.SuggestServerName
|
||||
import com.fsck.k9.helper.Contacts
|
||||
import com.fsck.k9.helper.DefaultTrustedSocketFactory
|
||||
import com.fsck.k9.mail.ssl.LocalKeyStore
|
||||
|
@ -34,7 +33,6 @@ val mainModule = module {
|
|||
single { LocalKeyStoreManager(get()) }
|
||||
single<TrustedSocketFactory> { DefaultTrustedSocketFactory(get(), get()) }
|
||||
single<Clock> { Clock.System }
|
||||
factory { SuggestServerName() }
|
||||
factory { EmailAddressValidator() }
|
||||
factory { ServerSettingsSerializer() }
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
package com.fsck.k9.activity
|
||||
|
||||
import app.k9mail.feature.account.oauth.domain.usecase.SuggestServerName
|
||||
import com.fsck.k9.activity.setup.AuthViewModel
|
||||
import org.koin.androidx.viewmodel.dsl.viewModel
|
||||
import org.koin.dsl.module
|
||||
|
||||
val activityModule = module {
|
||||
single { MessageLoaderHelperFactory(messageViewInfoExtractorFactory = get(), htmlSettingsProvider = get()) }
|
||||
factory { SuggestServerName() }
|
||||
viewModel { AuthViewModel(application = get(), accountManager = get(), oAuthConfigurationProvider = get()) }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue