2023-02-23 10:13:01 +00:00
|
|
|
@Suppress("DSL_SCOPE_VIOLATION")
|
2023-01-08 02:14:00 +00:00
|
|
|
plugins {
|
2023-02-23 10:13:01 +00:00
|
|
|
id(ThunderbirdPlugins.Library.android)
|
2023-01-08 02:14:00 +00:00
|
|
|
alias(libs.plugins.kotlin.parcelize)
|
|
|
|
}
|
2018-07-01 11:39:01 +00:00
|
|
|
|
|
|
|
dependencies {
|
2023-02-23 10:13:01 +00:00
|
|
|
api(projects.app.ui.base)
|
|
|
|
debugImplementation(projects.app.ui.setup)
|
|
|
|
implementation(projects.app.core)
|
|
|
|
implementation(projects.app.autodiscovery.api)
|
|
|
|
implementation(projects.app.autodiscovery.providersxml)
|
|
|
|
implementation(projects.mail.common)
|
|
|
|
implementation(projects.uiUtils.toolbarBottomSheet)
|
2018-07-01 11:39:01 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
// Remove AccountSetupIncoming's dependency on these
|
|
|
|
compileOnly(projects.mail.protocols.imap)
|
|
|
|
compileOnly(projects.mail.protocols.webdav)
|
2018-07-15 17:40:28 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
implementation(projects.plugins.openpgpApiLib.openpgpApi)
|
2018-07-01 11:39:01 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
implementation(libs.androidx.appcompat)
|
|
|
|
implementation(libs.androidx.preference)
|
|
|
|
implementation(libs.preferencex)
|
|
|
|
implementation(libs.preferencex.datetimepicker)
|
|
|
|
implementation(libs.preferencex.colorpicker)
|
|
|
|
implementation(libs.androidx.recyclerview)
|
|
|
|
implementation(projects.uiUtils.linearLayoutManager)
|
|
|
|
implementation(projects.uiUtils.itemTouchHelper)
|
|
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
|
|
implementation(libs.androidx.lifecycle.viewmodel.ktx)
|
|
|
|
implementation(libs.androidx.lifecycle.livedata.ktx)
|
|
|
|
implementation(libs.androidx.constraintlayout)
|
|
|
|
implementation(libs.androidx.localbroadcastmanager)
|
|
|
|
implementation(libs.androidx.swiperefreshlayout)
|
|
|
|
implementation(libs.ckchangelog.core)
|
|
|
|
implementation(libs.tokenautocomplete)
|
|
|
|
implementation(libs.safeContentResolver)
|
|
|
|
implementation(libs.materialdrawer)
|
|
|
|
implementation(libs.searchPreference)
|
|
|
|
implementation(libs.fastadapter)
|
|
|
|
implementation(libs.fastadapter.extensions.drag)
|
|
|
|
implementation(libs.fastadapter.extensions.utils)
|
|
|
|
implementation(libs.circleimageview)
|
|
|
|
api(libs.appauth)
|
2018-07-01 11:39:01 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
implementation(libs.commons.io)
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
|
|
implementation(libs.jcip.annotations)
|
|
|
|
implementation(libs.timber)
|
|
|
|
implementation(libs.mime4j.core)
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
implementation(libs.kotlinx.coroutines.android)
|
2018-07-08 01:27:52 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
implementation(libs.glide)
|
|
|
|
annotationProcessor(libs.glide.compiler)
|
2020-07-15 21:23:05 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
testImplementation(projects.mail.testing)
|
|
|
|
testImplementation(projects.app.storage)
|
|
|
|
testImplementation(projects.app.testing)
|
|
|
|
testImplementation(libs.robolectric)
|
|
|
|
testImplementation(libs.androidx.test.core)
|
|
|
|
testImplementation(libs.kotlin.test)
|
|
|
|
testImplementation(libs.kotlinx.coroutines.test)
|
|
|
|
testImplementation(libs.turbine)
|
2018-07-01 11:39:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-02-23 10:13:01 +00:00
|
|
|
namespace = "com.fsck.k9.ui"
|
2022-09-17 12:33:34 +00:00
|
|
|
|
2023-02-16 15:49:50 +00:00
|
|
|
buildFeatures {
|
|
|
|
buildConfig = true
|
|
|
|
}
|
|
|
|
|
2020-05-22 00:14:20 +00:00
|
|
|
buildTypes {
|
|
|
|
debug {
|
2023-02-23 10:13:01 +00:00
|
|
|
val useNewSetupUi = if (project.hasProperty("k9mail.useNewSetupUi")) {
|
|
|
|
project.property("k9mail.useNewSetupUi").toString()
|
|
|
|
} else {
|
|
|
|
"false"
|
|
|
|
}
|
|
|
|
buildConfigField("boolean", "USE_NEW_SETUP_UI_FOR_ONBOARDING", useNewSetupUi)
|
2022-08-04 18:43:19 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
manifestPlaceholders["appAuthRedirectScheme"] = "FIXME: override this in your app project"
|
2020-05-22 00:14:20 +00:00
|
|
|
}
|
|
|
|
release {
|
2023-02-23 10:13:01 +00:00
|
|
|
buildConfigField("boolean", "USE_NEW_SETUP_UI_FOR_ONBOARDING", "false")
|
2022-08-04 18:43:19 +00:00
|
|
|
|
2023-02-23 10:13:01 +00:00
|
|
|
manifestPlaceholders["appAuthRedirectScheme"] = "FIXME: override this in your app project"
|
2020-05-22 00:14:20 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-01 11:39:01 +00:00
|
|
|
}
|