0
0
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:
Wolf-Martell Montwé 2024-05-28 18:16:04 +02:00
parent 8902b9bae4
commit bf9e561b31
No known key found for this signature in database
GPG Key ID: 6D45B21512ACBF72
8 changed files with 34 additions and 4 deletions

View File

@ -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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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