2023-01-08 02:14:00 +00:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
}
|
2014-12-19 22:05:58 +00:00
|
|
|
|
2016-05-28 12:26:56 +00:00
|
|
|
if (rootProject.testCoverage) {
|
|
|
|
apply plugin: 'jacoco'
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-01-16 16:09:54 +00:00
|
|
|
coreLibraryDesugaring libs.desugar
|
|
|
|
|
2020-05-18 23:03:32 +00:00
|
|
|
implementation project(":app:ui:legacy")
|
2022-10-17 15:52:11 +00:00
|
|
|
implementation project(":app:ui:message-list-widget")
|
2018-06-21 13:12:50 +00:00
|
|
|
implementation project(":app:core")
|
2018-08-27 13:49:13 +00:00
|
|
|
implementation project(":app:storage")
|
2018-08-31 00:59:39 +00:00
|
|
|
implementation project(":app:crypto-openpgp")
|
2018-07-15 17:40:28 +00:00
|
|
|
implementation project(":backend:imap")
|
|
|
|
implementation project(":backend:pop3")
|
|
|
|
implementation project(":backend:webdav")
|
2021-09-23 19:15:59 +00:00
|
|
|
debugImplementation project(":backend:demo")
|
2018-02-17 03:05:09 +00:00
|
|
|
|
2023-01-08 02:14:00 +00:00
|
|
|
implementation libs.androidx.appcompat
|
|
|
|
implementation libs.androidx.core.ktx
|
|
|
|
implementation libs.androidx.work.ktx
|
|
|
|
implementation libs.preferencex
|
|
|
|
implementation libs.timber
|
|
|
|
implementation libs.kotlinx.coroutines.core
|
2018-07-08 01:27:52 +00:00
|
|
|
|
2023-01-08 02:14:00 +00:00
|
|
|
implementation libs.glide
|
|
|
|
annotationProcessor libs.glide.compiler
|
2020-07-15 21:23:05 +00:00
|
|
|
|
2020-10-18 14:27:14 +00:00
|
|
|
if (project.hasProperty('k9mail.enableLeakCanary') && project.property('k9mail.enableLeakCanary') == "true") {
|
2023-01-08 02:14:00 +00:00
|
|
|
debugImplementation libs.leakcanary.android
|
2020-10-18 14:27:14 +00:00
|
|
|
}
|
2020-05-16 19:06:06 +00:00
|
|
|
|
2020-06-23 14:29:46 +00:00
|
|
|
// Required for DependencyInjectionTest to be able to resolve OpenPgpApiManager
|
|
|
|
testImplementation project(':plugins:openpgp-api-lib:openpgp-api')
|
|
|
|
|
2023-01-08 02:14:00 +00:00
|
|
|
testImplementation libs.robolectric
|
|
|
|
testImplementation libs.junit
|
|
|
|
testImplementation libs.truth
|
|
|
|
testImplementation libs.mockito.inline
|
|
|
|
testImplementation libs.mockito.kotlin
|
|
|
|
testImplementation libs.koin.test
|
|
|
|
testImplementation libs.koin.test.junit4
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-09-17 12:33:34 +00:00
|
|
|
namespace 'com.fsck.k9'
|
|
|
|
|
2014-12-19 22:05:58 +00:00
|
|
|
defaultConfig {
|
2015-12-22 16:27:33 +00:00
|
|
|
applicationId "com.fsck.k9"
|
|
|
|
testApplicationId "com.fsck.k9.tests"
|
|
|
|
|
2023-01-16 10:58:07 +00:00
|
|
|
versionCode 35002
|
2023-01-16 11:14:45 +00:00
|
|
|
versionName '6.503-SNAPSHOT'
|
2015-12-22 16:27:33 +00:00
|
|
|
|
2020-10-06 17:41:18 +00:00
|
|
|
// Keep in sync with the resource string array 'supported_languages'
|
2021-02-16 14:21:57 +00:00
|
|
|
resConfigs "in", "br", "ca", "cs", "cy", "da", "de", "et", "en", "en_GB", "es", "eo", "eu", "fr", "gd", "gl",
|
|
|
|
"hr", "is", "it", "lv", "lt", "hu", "nl", "nb", "pl", "pt_PT", "pt_BR", "ru", "ro", "sq", "sk", "sl",
|
2022-07-26 10:34:54 +00:00
|
|
|
"fi", "sv", "tr", "el", "be", "bg", "sr", "uk", "iw", "ar", "fa", "ml", "ko", "zh_CN", "zh_TW", "ja",
|
|
|
|
"fy"
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
2022-12-07 03:16:04 +00:00
|
|
|
buildFeatures {
|
|
|
|
buildConfig true
|
|
|
|
}
|
|
|
|
|
2014-12-19 22:05:58 +00:00
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
|
|
|
|
2023-01-16 16:09:54 +00:00
|
|
|
compileOptions {
|
|
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
}
|
|
|
|
|
2014-12-19 22:05:58 +00:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
if (project.hasProperty('storeFile')) {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2015-01-03 07:29:45 +00:00
|
|
|
|
2017-11-10 21:54:31 +00:00
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
2022-05-21 15:27:25 +00:00
|
|
|
buildConfigField "String", "OAUTH_GMAIL_CLIENT_ID", "\"262622259280-hhmh92rhklkg2k1tjil69epo0o9a12jm.apps.googleusercontent.com\""
|
2022-06-08 17:55:45 +00:00
|
|
|
buildConfigField "String", "OAUTH_YAHOO_CLIENT_ID", "\"dj0yJmk9aHNUb3d2MW5TQnpRJmQ9WVdrOWVYbHpaRWM0YkdnbWNHbzlNQT09JnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PWIz\""
|
2022-06-08 18:22:13 +00:00
|
|
|
buildConfigField "String", "OAUTH_AOL_CLIENT_ID", "\"dj0yJmk9dUNqYXZhYWxOYkdRJmQ9WVdrOU1YQnZVRFZoY1ZrbWNHbzlNQT09JnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PWIw\""
|
2022-07-08 23:41:55 +00:00
|
|
|
buildConfigField "String", "OAUTH_MICROSOFT_CLIENT_ID", "\"e647013a-ada4-4114-b419-e43d250f99c5\""
|
2022-06-10 09:55:30 +00:00
|
|
|
buildConfigField "String", "OAUTH_MICROSOFT_REDIRECT_URI", "\"msauth://com.fsck.k9/Dx8yUsuhyU3dYYba1aA16Wxu5eM%3D\""
|
2022-05-21 15:27:25 +00:00
|
|
|
|
|
|
|
manifestPlaceholders = ['appAuthRedirectScheme': 'com.fsck.k9']
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
2015-02-16 20:45:04 +00:00
|
|
|
applicationIdSuffix ".debug"
|
2018-05-23 18:09:33 +00:00
|
|
|
testCoverageEnabled rootProject.testCoverage
|
2015-01-03 07:29:45 +00:00
|
|
|
|
2020-05-29 19:35:41 +00:00
|
|
|
minifyEnabled false
|
2018-08-27 13:49:13 +00:00
|
|
|
|
2022-05-21 15:27:25 +00:00
|
|
|
buildConfigField "String", "OAUTH_GMAIL_CLIENT_ID", "\"262622259280-5qb3vtj68d5dtudmaif4g9vd3cpar8r3.apps.googleusercontent.com\""
|
2022-06-08 17:55:45 +00:00
|
|
|
buildConfigField "String", "OAUTH_YAHOO_CLIENT_ID", "\"dj0yJmk9ejRCRU1ybmZjQlVBJmQ9WVdrOVVrZEViak4xYmxZbWNHbzlNQT09JnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PTZj\""
|
2022-06-08 18:22:13 +00:00
|
|
|
buildConfigField "String", "OAUTH_AOL_CLIENT_ID", "\"dj0yJmk9cHYydkJkTUxHcXlYJmQ9WVdrOWVHZHhVVXN4VVV3bWNHbzlNQT09JnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PTdm\""
|
2022-07-08 23:41:55 +00:00
|
|
|
buildConfigField "String", "OAUTH_MICROSOFT_CLIENT_ID", "\"e647013a-ada4-4114-b419-e43d250f99c5\""
|
2022-06-10 09:55:30 +00:00
|
|
|
buildConfigField "String", "OAUTH_MICROSOFT_REDIRECT_URI", "\"msauth://com.fsck.k9.debug/VZF2DYuLYAu4TurFd6usQB2JPts%3D\""
|
2022-05-21 15:27:25 +00:00
|
|
|
|
|
|
|
manifestPlaceholders = ['appAuthRedirectScheme': 'com.fsck.k9.debug']
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-16 15:24:13 +00:00
|
|
|
lint {
|
2021-10-30 02:00:15 +00:00
|
|
|
checkDependencies true
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
2023-01-16 15:24:13 +00:00
|
|
|
jniLibs {
|
|
|
|
excludes += ['kotlin/**']
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
excludes += [
|
|
|
|
'META-INF/DEPENDENCIES',
|
|
|
|
'META-INF/LICENSE',
|
|
|
|
'META-INF/LICENSE.txt',
|
|
|
|
'META-INF/NOTICE',
|
|
|
|
'META-INF/NOTICE.txt',
|
|
|
|
'META-INF/README',
|
|
|
|
'META-INF/README.md',
|
|
|
|
'META-INF/CHANGES',
|
|
|
|
'LICENSE.txt',
|
|
|
|
'META-INF/*.kotlin_module',
|
|
|
|
'META-INF/*.version',
|
|
|
|
'kotlin/**',
|
|
|
|
'DebugProbesKt.bin'
|
|
|
|
]
|
|
|
|
}
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
2020-07-14 23:51:13 +00:00
|
|
|
dependenciesInfo {
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('keyAlias')) {
|
|
|
|
android.signingConfigs.release.keyAlias = keyAlias
|
|
|
|
}
|
|
|
|
if (project.hasProperty('keyPassword')) {
|
|
|
|
android.signingConfigs.release.keyPassword = keyPassword
|
|
|
|
}
|
|
|
|
if (project.hasProperty('storeFile')) {
|
|
|
|
android.signingConfigs.release.storeFile = file(storeFile)
|
|
|
|
}
|
|
|
|
if (project.hasProperty('storePassword')) {
|
|
|
|
android.signingConfigs.release.storePassword = storePassword
|
|
|
|
}
|