0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-20 12:12:15 +02:00

Remove OAuth dependency from app.core

This commit is contained in:
Wolf-Martell Montwé 2023-06-23 11:52:02 +02:00
parent 526a6fe933
commit 5dfb37bfb0
No known key found for this signature in database
GPG Key ID: 6D45B21512ACBF72
3 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,6 @@ dependencies {
api(projects.core.android.common)
implementation(projects.plugins.openpgpApiLib.openpgpApi)
implementation(projects.feature.account.oauth)
api(libs.koin.android)

View File

@ -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() }
}

View File

@ -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()) }
}