2014-12-19 22:05:58 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2018-05-23 17:45:46 +00:00
|
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
|
|
apply plugin: 'org.jetbrains.kotlin.android.extensions'
|
2014-12-19 22:05:58 +00:00
|
|
|
|
2018-05-23 13:26:40 +00:00
|
|
|
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
|
|
|
apply from: '../gradle/plugins/findbugs-android.gradle'
|
2016-05-28 12:26:56 +00:00
|
|
|
|
|
|
|
if (rootProject.testCoverage) {
|
|
|
|
apply plugin: 'jacoco'
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
2015-12-21 02:25:54 +00:00
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
2018-05-23 17:36:52 +00:00
|
|
|
force "com.android.support:support-annotations:${versions.supportLibrary}"
|
2015-12-21 02:25:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-19 22:05:58 +00:00
|
|
|
dependencies {
|
2018-05-23 17:36:52 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
|
|
|
|
|
2018-02-17 03:05:09 +00:00
|
|
|
implementation project(':k9mail-library')
|
|
|
|
implementation project(':plugins:HoloColorPicker')
|
|
|
|
implementation project(':plugins:openpgp-api-lib:openpgp-api')
|
2018-05-23 17:36:52 +00:00
|
|
|
|
|
|
|
implementation "com.squareup.okio:okio:${versions.okio}"
|
|
|
|
implementation "commons-io:commons-io:${versions.commonsIo}"
|
|
|
|
implementation "com.android.support:support-v4:${versions.supportLibrary}"
|
|
|
|
implementation "com.android.support:appcompat-v7:${versions.supportLibrary}"
|
|
|
|
implementation "com.takisoft.fix:preference-v7:${versions.preferencesFix}"
|
|
|
|
implementation "com.takisoft.fix:preference-v7-datetimepicker:${versions.preferencesFix}"
|
|
|
|
implementation "com.takisoft.fix:preference-v7-colorpicker:${versions.preferencesFix}"
|
|
|
|
implementation "com.takisoft.fix:preference-v7-ringtone:${versions.preferencesFix}"
|
|
|
|
implementation "com.android.support:recyclerview-v7:${versions.supportLibrary}"
|
|
|
|
implementation "android.arch.lifecycle:extensions:${versions.lifecycleExtensions}"
|
|
|
|
implementation "androidx.core:core-ktx:0.3"
|
|
|
|
implementation "org.jsoup:jsoup:1.11.2"
|
|
|
|
implementation "de.cketti.library.changelog:ckchangelog:1.2.1"
|
|
|
|
implementation "com.github.bumptech.glide:glide:3.6.1"
|
|
|
|
implementation "com.splitwise:tokenautocomplete:2.0.7"
|
|
|
|
implementation "de.cketti.safecontentresolver:safe-content-resolver-v14:0.9.0"
|
|
|
|
implementation "com.github.amlcurran.showcaseview:library:5.4.1"
|
|
|
|
implementation "com.squareup.moshi:moshi:1.2.0"
|
|
|
|
implementation "com.jakewharton.timber:timber:${versions.timber}"
|
|
|
|
implementation "net.jcip:jcip-annotations:1.0"
|
|
|
|
implementation "org.apache.james:apache-mime4j-core:0.8.1"
|
|
|
|
implementation "com.xwray:groupie:2.0.3"
|
|
|
|
implementation "com.xwray:groupie-kotlin-android-extensions:2.0.3"
|
2018-03-08 05:59:06 +00:00
|
|
|
implementation "org.jetbrains.anko:anko-coroutines:0.10.4"
|
2018-05-23 17:36:52 +00:00
|
|
|
implementation "org.koin:koin-android-architecture:${versions.koin}"
|
2018-02-17 03:05:09 +00:00
|
|
|
|
2018-05-23 17:36:52 +00:00
|
|
|
androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.1"
|
2018-02-17 03:05:09 +00:00
|
|
|
|
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}"
|
|
|
|
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
2018-02-17 03:05:09 +00:00
|
|
|
testImplementation "org.jdom:jdom2:2.0.6"
|
2018-05-23 17:36:52 +00:00
|
|
|
testImplementation "org.koin:koin-test:${versions.koin}"
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2018-05-23 17:36:52 +00:00
|
|
|
compileSdkVersion buildConfig.compileSdk
|
|
|
|
buildToolsVersion buildConfig.buildTools
|
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"
|
|
|
|
|
2018-02-25 18:18:01 +00:00
|
|
|
versionCode 27000
|
|
|
|
versionName '5.700-SNAPSHOT'
|
2015-12-22 16:27:33 +00:00
|
|
|
|
2018-05-23 17:36:52 +00:00
|
|
|
minSdkVersion buildConfig.minSdk
|
2015-12-21 01:35:10 +00:00
|
|
|
targetSdkVersion 22
|
2014-12-20 06:39:08 +00:00
|
|
|
|
2015-12-29 16:42:25 +00:00
|
|
|
generatedDensities = ['mdpi', 'hdpi', 'xhdpi']
|
|
|
|
|
2015-01-02 22:43:46 +00:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
2015-01-03 07:29:45 +00:00
|
|
|
buildConfigField "boolean", "DEVELOPER_MODE", "false"
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
2015-02-16 20:45:04 +00:00
|
|
|
applicationIdSuffix ".debug"
|
2018-05-23 17:36:52 +00:00
|
|
|
testCoverageEnabled testCoverage
|
2015-01-03 07:29:45 +00:00
|
|
|
|
|
|
|
buildConfigField "boolean", "DEVELOPER_MODE", "true"
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Do not abort build if lint finds errors
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
2014-12-19 22:21:09 +00:00
|
|
|
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/LICENSE.txt'
|
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
|
exclude 'META-INF/NOTICE.txt'
|
2017-04-29 00:28:33 +00:00
|
|
|
exclude 'META-INF/README'
|
2014-12-20 06:39:08 +00:00
|
|
|
exclude 'LICENSE.txt'
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2015-12-22 13:34:27 +00:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
2018-02-25 00:28:42 +00:00
|
|
|
|
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
2018-03-08 05:59:06 +00:00
|
|
|
androidExtensions {
|
|
|
|
experimental = true
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
experimental {
|
|
|
|
coroutines "enable"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|