2014-12-19 17:05:58 -05:00
|
|
|
apply plugin: 'android-sdk-manager'
|
|
|
|
apply plugin: 'com.android.application'
|
2014-12-19 19:49:09 -05:00
|
|
|
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
|
|
|
apply from: '../gradle/plugins/findbugs-android.gradle'
|
2015-05-21 08:52:50 -04:00
|
|
|
apply plugin: 'jacoco'
|
2014-12-19 17:05:58 -05:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-12-19 19:09:49 -05:00
|
|
|
compile project(':k9mail-library')
|
2014-12-19 17:05:58 -05:00
|
|
|
compile project(':plugins:Android-PullToRefresh:library')
|
|
|
|
compile project(':plugins:HoloColorPicker')
|
|
|
|
compile project(':plugins:openpgp-api-library')
|
2014-12-22 16:36:50 -05:00
|
|
|
compile 'commons-io:commons-io:2.4'
|
2014-12-19 17:05:58 -05:00
|
|
|
compile 'com.android.support:support-v4:21.0.2'
|
|
|
|
compile 'com.android.support:support-v13:21.0.2'
|
2014-12-22 16:36:50 -05:00
|
|
|
compile 'net.sourceforge.htmlcleaner:htmlcleaner:2.10'
|
2014-12-19 18:33:00 -05:00
|
|
|
compile 'de.cketti.library.changelog:ckchangelog:1.2.1'
|
2015-01-16 11:38:31 -05:00
|
|
|
compile 'com.github.bumptech.glide:glide:3.4.0'
|
2014-12-20 01:39:08 -05:00
|
|
|
|
2015-01-02 17:43:46 -05:00
|
|
|
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
|
|
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
|
2015-04-30 04:10:54 -04:00
|
|
|
androidTestCompile('com.icegreen:greenmail:1.4.1') {
|
2015-01-13 22:29:09 -05:00
|
|
|
exclude group: 'junit'
|
2014-12-20 01:39:08 -05:00
|
|
|
}
|
2015-05-20 13:21:33 -04:00
|
|
|
|
|
|
|
testCompile('org.robolectric:robolectric:3.0-rc3') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
testCompile 'org.hamcrest:hamcrest-core:1.3'
|
|
|
|
testCompile('junit:junit:4.10') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
2014-12-19 17:05:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 21
|
|
|
|
buildToolsVersion '21.1.2'
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 15
|
|
|
|
targetSdkVersion 17
|
2014-12-20 01:39:08 -05:00
|
|
|
|
2015-01-02 17:43:46 -05:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2014-12-19 17:05:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
if (project.hasProperty('storeFile')) {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2015-01-03 02:29:45 -05:00
|
|
|
|
|
|
|
buildConfigField "boolean", "DEVELOPER_MODE", "false"
|
2014-12-19 17:05:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
2015-02-16 15:45:04 -05:00
|
|
|
applicationIdSuffix ".debug"
|
2014-12-19 17:05:58 -05:00
|
|
|
testCoverageEnabled rootProject.testCoverage
|
2015-01-03 02:29:45 -05:00
|
|
|
|
|
|
|
buildConfigField "boolean", "DEVELOPER_MODE", "true"
|
2014-12-19 17:05:58 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Do not abort build if lint finds errors
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
2014-12-19 17:21:09 -05:00
|
|
|
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
|
2014-12-19 17:05:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/LICENSE.txt'
|
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
|
exclude 'META-INF/NOTICE.txt'
|
2014-12-20 01:39:08 -05:00
|
|
|
exclude 'LICENSE.txt'
|
2014-12-19 17:05:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_6
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_6
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|