thunderbird-android/k9mail/build.gradle

116 lines
3.2 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
apply from: '../gradle/plugins/checkstyle-android.gradle'
apply from: '../gradle/plugins/findbugs-android.gradle'
2015-05-21 12:52:50 +00:00
apply plugin: 'jacoco'
repositories {
jcenter()
}
2015-12-21 02:25:54 +00:00
ext {
supportLibraryVersion = '23.1.1'
}
//noinspection GroovyAssignabilityCheck
configurations.all {
resolutionStrategy {
force "com.android.support:support-annotations:${project.supportLibraryVersion}"
}
}
dependencies {
2014-12-20 00:09:49 +00:00
compile project(':k9mail-library')
compile project(':plugins:Android-PullToRefresh:library')
compile project(':plugins:HoloColorPicker')
2015-12-12 15:03:40 +00:00
compile project(':plugins:openpgp-api-lib:openpgp-api')
2014-12-22 21:36:50 +00:00
compile 'commons-io:commons-io:2.4'
2015-12-21 02:25:54 +00:00
compile "com.android.support:support-v4:${project.supportLibraryVersion}"
2015-12-21 02:05:23 +00:00
compile 'net.sourceforge.htmlcleaner:htmlcleaner:2.16'
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'
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'
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'
2015-12-21 02:25:54 +00:00
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
2015-12-21 02:49:32 +00:00
testCompile 'org.robolectric:robolectric:3.0'
2015-12-21 02:25:54 +00:00
testCompile 'junit:junit:4.12'
2016-01-13 08:43:28 +00:00
testCompile 'org.mockito:mockito-core:1.10.19'
}
android {
2015-12-21 01:11:37 +00:00
compileSdkVersion rootProject.compileSdkVersion
2015-12-21 01:18:42 +00:00
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
applicationId "com.fsck.k9"
testApplicationId "com.fsck.k9.tests"
2016-07-06 20:23:53 +00:00
versionCode 23100
versionName '5.110'
minSdkVersion 15
2015-12-21 01:35:10 +00:00
targetSdkVersion 22
generatedDensities = ['mdpi', 'hdpi', 'xhdpi']
2015-01-02 22:43:46 +00:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release
}
buildTypes {
release {
if (project.hasProperty('storeFile')) {
signingConfig signingConfigs.release
}
buildConfigField "boolean", "DEVELOPER_MODE", "false"
}
debug {
applicationIdSuffix ".debug"
testCoverageEnabled rootProject.testCoverage
buildConfigField "boolean", "DEVELOPER_MODE", "true"
}
}
// Do not abort build if lint finds errors
lintOptions {
abortOnError false
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
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
}