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
|
|
|
|
2018-05-23 18:26:10 +00:00
|
|
|
apply from: "${rootProject.projectDir}/gradle/plugins/checkstyle-android.gradle"
|
|
|
|
apply from: "${rootProject.projectDir}/gradle/plugins/findbugs-android.gradle"
|
2016-05-28 12:26:56 +00:00
|
|
|
|
|
|
|
if (rootProject.testCoverage) {
|
|
|
|
apply plugin: 'jacoco'
|
|
|
|
}
|
2014-12-20 00:09:49 +00:00
|
|
|
|
|
|
|
dependencies {
|
2018-05-23 17:36:52 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
|
2015-05-20 21:48:30 +00:00
|
|
|
|
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}"
|
2019-02-09 04:23:37 +00:00
|
|
|
implementation "androidx.annotation:annotation:${versions.androidxAnnotation}"
|
2018-05-23 17:36:52 +00:00
|
|
|
implementation "com.jakewharton.timber:timber:${versions.timber}"
|
2015-05-20 21:48:30 +00:00
|
|
|
|
2019-02-09 04:23:37 +00:00
|
|
|
androidTestImplementation "androidx.test:runner:${versions.androidxTestRunner}"
|
2018-05-23 17:36:52 +00:00
|
|
|
androidTestImplementation "com.madgag.spongycastle:pg:1.51.0.0"
|
|
|
|
|
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}"
|
|
|
|
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
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
|
|
|
}
|
|
|
|
}
|