2018-07-01 11:39:01 +00:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
2021-03-02 16:33:43 +00:00
|
|
|
apply plugin: 'org.jetbrains.kotlin.plugin.parcelize'
|
2018-07-01 11:39:01 +00:00
|
|
|
|
|
|
|
dependencies {
|
2020-05-18 23:25:03 +00:00
|
|
|
api project(":app:ui:base")
|
2020-05-21 23:13:34 +00:00
|
|
|
debugImplementation project(":app:ui:setup")
|
2018-07-01 11:39:01 +00:00
|
|
|
implementation project(":app:core")
|
2020-05-17 21:32:11 +00:00
|
|
|
implementation project(":app:autodiscovery:api")
|
|
|
|
implementation project(":app:autodiscovery:providersxml")
|
2018-07-01 11:39:01 +00:00
|
|
|
implementation project(":mail:common")
|
|
|
|
|
2018-07-15 17:40:28 +00:00
|
|
|
//TODO: Remove AccountSetupIncoming's dependency on these
|
|
|
|
compileOnly project(":mail:protocols:imap")
|
|
|
|
compileOnly project(":mail:protocols:webdav")
|
|
|
|
|
2018-07-01 11:39:01 +00:00
|
|
|
implementation project(':plugins:openpgp-api-lib:openpgp-api')
|
|
|
|
|
2019-02-09 04:23:37 +00:00
|
|
|
implementation "androidx.appcompat:appcompat:${versions.androidxAppCompat}"
|
2020-04-15 19:32:44 +00:00
|
|
|
implementation "androidx.preference:preference:${versions.androidxPreference}"
|
2019-02-09 05:09:50 +00:00
|
|
|
implementation "com.takisoft.preferencex:preferencex:${versions.preferencesFix}"
|
|
|
|
implementation "com.takisoft.preferencex:preferencex-datetimepicker:${versions.preferencesFix}"
|
|
|
|
implementation "com.takisoft.preferencex:preferencex-colorpicker:${versions.preferencesFix}"
|
|
|
|
implementation "com.takisoft.preferencex:preferencex-ringtone:${versions.preferencesFix}"
|
2019-02-09 04:23:37 +00:00
|
|
|
implementation "androidx.recyclerview:recyclerview:${versions.androidxRecyclerView}"
|
2020-02-06 15:22:51 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidxLifecycle}"
|
2020-03-04 19:47:40 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:${versions.androidxLifecycle}"
|
2019-04-06 19:08:12 +00:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:${versions.androidxConstraintLayout}"
|
2020-04-04 23:01:21 +00:00
|
|
|
implementation "androidx.cardview:cardview:${versions.androidxCardView}"
|
2020-07-15 15:57:21 +00:00
|
|
|
implementation "androidx.localbroadcastmanager:localbroadcastmanager:${versions.androidxLocalBroadcastManager}"
|
2020-07-15 15:59:17 +00:00
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
2019-05-19 21:49:09 +00:00
|
|
|
implementation "com.google.android.material:material:${versions.materialComponents}"
|
2021-07-10 01:39:10 +00:00
|
|
|
implementation "de.cketti.library.changelog:ckchangelog-core:2.0.0-beta02"
|
2020-07-17 14:53:29 +00:00
|
|
|
implementation "com.splitwise:tokenautocomplete:4.0.0-beta01"
|
2020-06-24 01:17:15 +00:00
|
|
|
implementation "de.cketti.safecontentresolver:safe-content-resolver-v21:1.0.0"
|
2021-06-05 05:27:36 +00:00
|
|
|
implementation 'com.mikepenz:materialdrawer:8.4.1'
|
2020-06-06 14:14:57 +00:00
|
|
|
implementation 'com.mikepenz:materialdrawer-iconics:8.3.3'
|
2019-11-29 13:54:14 +00:00
|
|
|
implementation 'com.mikepenz:fontawesome-typeface:5.9.0.0-kotlin@aar'
|
2020-02-07 17:31:58 +00:00
|
|
|
implementation 'com.github.ByteHamster:SearchPreference:v2.0.0'
|
2021-04-10 05:42:10 +00:00
|
|
|
implementation "com.mikepenz:fastadapter:${versions.fastAdapter}"
|
|
|
|
implementation "com.mikepenz:fastadapter-extensions-drag:${versions.fastAdapter}"
|
|
|
|
implementation "com.mikepenz:fastadapter-extensions-utils:${versions.fastAdapter}"
|
2020-04-15 19:14:18 +00:00
|
|
|
implementation 'de.hdodenhof:circleimageview:3.1.0'
|
2018-07-01 11:39:01 +00:00
|
|
|
|
2018-07-08 01:27:52 +00:00
|
|
|
implementation "commons-io:commons-io:${versions.commonsIo}"
|
2020-05-18 23:25:03 +00:00
|
|
|
implementation "androidx.core:core-ktx:${versions.androidxCore}"
|
2018-07-08 01:27:52 +00:00
|
|
|
implementation "net.jcip:jcip-annotations:1.0"
|
|
|
|
implementation "com.jakewharton.timber:timber:${versions.timber}"
|
|
|
|
implementation "org.apache.james:apache-mime4j-core:${versions.mime4j}"
|
2020-05-07 09:36:08 +00:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.kotlinCoroutines}"
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinCoroutines}"
|
2018-07-08 01:27:52 +00:00
|
|
|
|
2020-07-15 21:23:05 +00:00
|
|
|
implementation "com.github.bumptech.glide:glide:${versions.glide}"
|
|
|
|
annotationProcessor "com.github.bumptech.glide:compiler:${versions.glide}"
|
|
|
|
|
2018-07-01 11:39:01 +00:00
|
|
|
testImplementation project(':mail:testing')
|
2018-08-27 13:49:13 +00:00
|
|
|
testImplementation project(':app:storage')
|
2018-12-17 17:05:59 +00:00
|
|
|
testImplementation project(':app:testing')
|
2018-07-01 11:39:01 +00:00
|
|
|
testImplementation "org.robolectric:robolectric:${versions.robolectric}"
|
2021-06-08 05:30:03 +00:00
|
|
|
testImplementation "androidx.test:core:${versions.androidxTestCore}"
|
2018-07-01 11:39:01 +00:00
|
|
|
testImplementation "junit:junit:${versions.junit}"
|
|
|
|
testImplementation "com.google.truth:truth:${versions.truth}"
|
|
|
|
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
2021-04-21 23:57:38 +00:00
|
|
|
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
2018-07-01 11:39:01 +00:00
|
|
|
testImplementation "org.koin:koin-test:${versions.koin}"
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion buildConfig.compileSdk
|
|
|
|
buildToolsVersion buildConfig.buildTools
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion buildConfig.minSdk
|
2019-11-13 16:35:46 +00:00
|
|
|
targetSdkVersion buildConfig.robolectricSdk
|
2018-07-01 11:39:01 +00:00
|
|
|
}
|
|
|
|
|
2020-05-22 00:14:20 +00:00
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
def useNewSetupUi = project.hasProperty('k9mail.useNewSetupUi') ? project.property('k9mail.useNewSetupUi') : "false"
|
|
|
|
buildConfigField "boolean", "USE_NEW_SETUP_UI_FOR_ONBOARDING", useNewSetupUi
|
|
|
|
}
|
|
|
|
release {
|
|
|
|
buildConfigField "boolean", "USE_NEW_SETUP_UI_FOR_ONBOARDING", "false"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-01 11:39:01 +00:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2019-11-13 15:10:14 +00:00
|
|
|
sourceCompatibility javaVersion
|
|
|
|
targetCompatibility javaVersion
|
2018-07-01 11:39:01 +00:00
|
|
|
}
|
|
|
|
|
2019-11-17 13:40:57 +00:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = kotlinJvmVersion
|
|
|
|
}
|
|
|
|
|
2018-07-01 11:39:01 +00:00
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|