2014-12-19 22:05:58 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2017-09-07 03:00:21 +00:00
|
|
|
apply plugin: 'kotlin-android'
|
2014-12-19 22:05:58 +00:00
|
|
|
|
2016-05-28 12:26:56 +00:00
|
|
|
if (!rootProject.optimizeForDevelopment) {
|
|
|
|
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
|
|
|
apply from: '../gradle/plugins/findbugs-android.gradle'
|
|
|
|
}
|
|
|
|
|
|
|
|
if (rootProject.testCoverage) {
|
|
|
|
apply plugin: 'jacoco'
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2015-12-21 02:25:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
2016-10-19 10:35:28 +00:00
|
|
|
force "com.android.support:support-annotations:${androidSupportLibraryVersion}"
|
2015-12-21 02:25:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-19 22:05:58 +00:00
|
|
|
dependencies {
|
2014-12-20 00:09:49 +00:00
|
|
|
compile project(':k9mail-library')
|
2014-12-19 22:05:58 +00:00
|
|
|
compile project(':plugins:HoloColorPicker')
|
2015-12-12 15:03:40 +00:00
|
|
|
compile project(':plugins:openpgp-api-lib:openpgp-api')
|
2016-11-03 05:08:23 +00:00
|
|
|
compile "com.squareup.okio:okio:${okioVersion}"
|
2014-12-22 21:36:50 +00:00
|
|
|
compile 'commons-io:commons-io:2.4'
|
2016-10-19 10:35:28 +00:00
|
|
|
compile "com.android.support:support-v4:${androidSupportLibraryVersion}"
|
2017-04-29 00:28:33 +00:00
|
|
|
compile 'org.jsoup:jsoup:1.10.2'
|
2014-12-19 23:33:00 +00:00
|
|
|
compile 'de.cketti.library.changelog:ckchangelog:1.2.1'
|
2015-12-21 02:05:38 +00:00
|
|
|
compile 'com.github.bumptech.glide:glide:3.6.1'
|
2016-03-23 21:39:59 +00:00
|
|
|
compile 'com.splitwise:tokenautocomplete:2.0.7'
|
2016-08-05 00:22:42 +00:00
|
|
|
compile 'de.cketti.safecontentresolver:safe-content-resolver-v14:0.9.0'
|
2016-04-01 13:05:01 +00:00
|
|
|
compile 'com.github.amlcurran.showcaseview:library:5.4.1'
|
2016-08-10 11:43:26 +00:00
|
|
|
compile 'com.squareup.moshi:moshi:1.2.0'
|
2017-03-17 18:26:06 +00:00
|
|
|
compile "com.jakewharton.timber:timber:${timberVersion}"
|
2017-08-29 16:04:39 +00:00
|
|
|
compile 'net.jcip:jcip-annotations:1.0'
|
2014-12-20 06:39:08 +00:00
|
|
|
|
2017-02-04 15:54:01 +00:00
|
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
|
2015-05-20 17:21:33 +00:00
|
|
|
|
2017-09-07 03:00:21 +00:00
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-stdlib-jre7:${kotlinVersion}"
|
2016-10-19 10:35:28 +00:00
|
|
|
testCompile "org.robolectric:robolectric:${robolectricVersion}"
|
|
|
|
testCompile "junit:junit:${junitVersion}"
|
2017-09-07 03:00:21 +00:00
|
|
|
testCompile "com.google.truth:truth:${truthVersion}"
|
2016-10-19 10:35:28 +00:00
|
|
|
testCompile "org.mockito:mockito-core:${mockitoVersion}"
|
2017-04-29 23:30:20 +00:00
|
|
|
testCompile "org.jdom:jdom2:2.0.6"
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2016-10-19 10:35:28 +00:00
|
|
|
compileSdkVersion androidCompileSdkVersion.toInteger()
|
|
|
|
buildToolsVersion androidBuildToolsVersion
|
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"
|
|
|
|
|
2017-03-11 21:23:36 +00:00
|
|
|
versionCode 23500
|
|
|
|
versionName '5.300-SNAPSHOT'
|
2015-12-22 16:27:33 +00:00
|
|
|
|
2014-12-19 22:05:58 +00:00
|
|
|
minSdkVersion 15
|
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
|
|
|
|
|
|
|
buildConfigField "boolean", "DEVELOPER_MODE", "false"
|
2014-12-19 22:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
2015-02-16 20:45:04 +00:00
|
|
|
applicationIdSuffix ".debug"
|
2014-12-19 22:05:58 +00:00
|
|
|
testCoverageEnabled rootProject.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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|