mirror of
https://github.com/thunderbird/thunderbird-android.git
synced 2024-09-20 04:02:14 +02:00
Add DemoAutoDiscovery to debug build of K9 and TB
This commit is contained in:
parent
8902b9bae4
commit
bf9e561b31
@ -18,10 +18,12 @@ dependencies {
|
||||
implementation(projects.app.ui.legacy)
|
||||
implementation(projects.app.ui.messageListWidget)
|
||||
|
||||
debugImplementation(projects.backend.demo)
|
||||
|
||||
implementation(libs.androidx.work.runtime)
|
||||
|
||||
implementation(projects.feature.autodiscovery.api)
|
||||
debugImplementation(projects.backend.demo)
|
||||
debugImplementation(projects.feature.autodiscovery.demo)
|
||||
|
||||
testImplementation(libs.robolectric)
|
||||
|
||||
// Required for DependencyInjectionTest to be able to resolve OpenPgpApiManager
|
||||
|
@ -1,5 +1,7 @@
|
||||
package app.k9mail.dev
|
||||
|
||||
import app.k9mail.autodiscovery.api.AutoDiscovery
|
||||
import app.k9mail.autodiscovery.demo.DemoAutoDiscovery
|
||||
import com.fsck.k9.backend.BackendFactory
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.core.qualifier.named
|
||||
@ -9,4 +11,7 @@ fun Module.developmentModuleAdditions() {
|
||||
single<Map<String, BackendFactory>>(named("developmentBackends")) {
|
||||
mapOf("demo" to get<DemoBackendFactory>())
|
||||
}
|
||||
single<List<AutoDiscovery>>(named("extraAutoDiscoveries")) {
|
||||
listOf(DemoAutoDiscovery())
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package app.k9mail.dev
|
||||
|
||||
import app.k9mail.autodiscovery.api.AutoDiscovery
|
||||
import com.fsck.k9.backend.BackendFactory
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.core.qualifier.named
|
||||
@ -8,4 +9,7 @@ fun Module.developmentModuleAdditions() {
|
||||
single<Map<String, BackendFactory>>(named("developmentBackends")) {
|
||||
emptyMap()
|
||||
}
|
||||
single<List<AutoDiscovery>>(named("extraAutoDiscoveries")) {
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
@ -18,10 +18,12 @@ dependencies {
|
||||
implementation(projects.app.ui.legacy)
|
||||
implementation(projects.app.ui.messageListWidget)
|
||||
|
||||
debugImplementation(projects.backend.demo)
|
||||
|
||||
implementation(libs.androidx.work.runtime)
|
||||
|
||||
implementation(projects.feature.autodiscovery.api)
|
||||
debugImplementation(projects.backend.demo)
|
||||
debugImplementation(projects.feature.autodiscovery.demo)
|
||||
|
||||
testImplementation(libs.robolectric)
|
||||
|
||||
// Required for DependencyInjectionTest to be able to resolve OpenPgpApiManager
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.thunderbird.android.dev
|
||||
|
||||
import app.k9mail.autodiscovery.api.AutoDiscovery
|
||||
import com.fsck.k9.backend.BackendFactory
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.core.qualifier.named
|
||||
@ -8,4 +9,7 @@ fun Module.developmentModuleAdditions() {
|
||||
single<Map<String, BackendFactory>>(named("developmentBackends")) {
|
||||
emptyMap()
|
||||
}
|
||||
single<List<AutoDiscovery>>(named("extraAutoDiscoveries")) {
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.thunderbird.android.dev
|
||||
|
||||
import app.k9mail.autodiscovery.api.AutoDiscovery
|
||||
import com.fsck.k9.backend.BackendFactory
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.core.qualifier.named
|
||||
@ -8,4 +9,7 @@ fun Module.developmentModuleAdditions() {
|
||||
single<Map<String, BackendFactory>>(named("developmentBackends")) {
|
||||
emptyMap()
|
||||
}
|
||||
single<List<AutoDiscovery>>(named("extraAutoDiscoveries")) {
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.thunderbird.android.dev
|
||||
|
||||
import app.k9mail.autodiscovery.api.AutoDiscovery
|
||||
import app.k9mail.autodiscovery.demo.DemoAutoDiscovery
|
||||
import com.fsck.k9.backend.BackendFactory
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.core.qualifier.named
|
||||
@ -9,4 +11,7 @@ fun Module.developmentModuleAdditions() {
|
||||
single<Map<String, BackendFactory>>(named("developmentBackends")) {
|
||||
mapOf("demo" to get<DemoBackendFactory>())
|
||||
}
|
||||
single<List<AutoDiscovery>>(named("extraAutoDiscoveries")) {
|
||||
listOf(DemoAutoDiscovery())
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.thunderbird.android.dev
|
||||
|
||||
import app.k9mail.autodiscovery.api.AutoDiscovery
|
||||
import com.fsck.k9.backend.BackendFactory
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.core.qualifier.named
|
||||
@ -8,4 +9,7 @@ fun Module.developmentModuleAdditions() {
|
||||
single<Map<String, BackendFactory>>(named("developmentBackends")) {
|
||||
emptyMap()
|
||||
}
|
||||
single<List<AutoDiscovery>>(named("extraAutoDiscoveries")) {
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user