2019-03-08 22:44:56 +00:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
2019-11-26 20:37:40 +00:00
|
|
|
apply plugin: 'org.jlleitschuh.gradle.ktlint'
|
2019-03-08 22:44:56 +00:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
|
|
|
|
|
|
|
|
implementation project(":app:core")
|
|
|
|
implementation project(":mail:common")
|
|
|
|
|
|
|
|
implementation "com.jakewharton.timber:timber:${versions.timber}"
|
2019-01-16 12:52:46 +00:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"
|
2019-03-08 22:44:56 +00:00
|
|
|
|
|
|
|
testImplementation project(':app:testing')
|
|
|
|
testImplementation project(":backend:imap")
|
|
|
|
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}"
|
|
|
|
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
|
|
|
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
|
2019-03-08 22:44:56 +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
|
2019-03-08 22:44:56 +00:00
|
|
|
}
|
|
|
|
|
2019-11-17 13:40:57 +00:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = kotlinJvmVersion
|
|
|
|
}
|
|
|
|
|
2019-03-08 22:44:56 +00:00
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|