2014-12-20 00:09:49 +00:00
|
|
|
apply plugin: 'com.android.library'
|
2018-05-23 17:45:46 +00:00
|
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
2016-05-28 12:26:56 +00:00
|
|
|
|
|
|
|
if (rootProject.testCoverage) {
|
|
|
|
apply plugin: 'jacoco'
|
|
|
|
}
|
2014-12-20 00:09:49 +00:00
|
|
|
|
|
|
|
dependencies {
|
2022-05-01 23:53:00 +00:00
|
|
|
api "org.jetbrains:annotations:${versions.jetbrainsAnnotations}"
|
|
|
|
|
2018-07-08 01:27:52 +00:00
|
|
|
implementation "org.apache.james:apache-mime4j-core:${versions.mime4j}"
|
|
|
|
implementation "org.apache.james:apache-mime4j-dom:${versions.mime4j}"
|
2018-05-23 17:36:52 +00:00
|
|
|
implementation "com.squareup.okio:okio:${versions.okio}"
|
|
|
|
implementation "commons-io:commons-io:${versions.commonsIo}"
|
2022-04-28 21:23:44 +00:00
|
|
|
implementation "com.squareup.moshi:moshi:${versions.moshi}"
|
2015-05-20 21:48:30 +00:00
|
|
|
|
2018-05-23 21:00:55 +00:00
|
|
|
testImplementation project(":mail:testing")
|
2018-05-23 17:36:52 +00:00
|
|
|
testImplementation "org.robolectric:robolectric:${versions.robolectric}"
|
|
|
|
testImplementation "junit:junit:${versions.junit}"
|
|
|
|
testImplementation "com.google.truth:truth:${versions.truth}"
|
2022-02-03 00:10:52 +00:00
|
|
|
testImplementation "org.mockito:mockito-inline:${versions.mockito}"
|
2021-04-21 23:57:38 +00:00
|
|
|
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
2021-11-03 12:56:35 +00:00
|
|
|
testImplementation "com.ibm.icu:icu4j-charset:70.1"
|
2014-12-20 00:09:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2018-05-23 17:36:52 +00:00
|
|
|
compileSdkVersion buildConfig.compileSdk
|
|
|
|
buildToolsVersion buildConfig.buildTools
|
2014-12-20 00:09:49 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2018-05-23 17:36:52 +00:00
|
|
|
minSdkVersion buildConfig.minSdk
|
2015-05-20 21:48:30 +00:00
|
|
|
|
2019-02-09 04:23:37 +00:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2014-12-20 00:09:49 +00:00
|
|
|
}
|
|
|
|
|
2015-05-21 12:52:50 +00:00
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
testCoverageEnabled rootProject.testCoverage
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-20 00:09:49 +00:00
|
|
|
lintOptions {
|
2015-12-22 17:13:05 +00:00
|
|
|
abortOnError false
|
2014-12-20 00:09:49 +00:00
|
|
|
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2019-11-13 15:10:14 +00:00
|
|
|
sourceCompatibility javaVersion
|
|
|
|
targetCompatibility javaVersion
|
2014-12-20 00:09:49 +00:00
|
|
|
}
|
2019-11-17 13:40:57 +00:00
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = kotlinJvmVersion
|
|
|
|
}
|
2014-12-20 00:09:49 +00:00
|
|
|
}
|