mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-05 17:15:05 -05:00
4f8fc5bc5b
Fixed lots of conflicts
103 lines
3.0 KiB
Groovy
103 lines
3.0 KiB
Groovy
apply plugin: 'android-sdk-manager'
|
|
apply plugin: 'com.android.application'
|
|
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
|
apply from: '../gradle/plugins/findbugs-android.gradle'
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':k9mail-library')
|
|
compile project(':plugins:Android-PullToRefresh:library')
|
|
compile project(':plugins:HoloColorPicker')
|
|
compile project(':plugins:openpgp-api-library')
|
|
compile 'commons-io:commons-io:2.0.1'
|
|
compile 'com.android.support:support-v4:21.0.2'
|
|
compile 'com.android.support:support-v13:21.0.2'
|
|
compile 'net.sourceforge.htmlcleaner:htmlcleaner:2.2'
|
|
compile 'de.cketti.library.changelog:ckchangelog:1.2.1'
|
|
|
|
androidTestCompile ('com.jakewharton.espresso:espresso:1.1-r3' ) {
|
|
// Note: some of these exclusions may become necessary. See the
|
|
// github site https://github.com/JakeWharton/double-espresso
|
|
//exclude group: 'com.squareup.dagger'
|
|
//exclude group: 'javax.inject'
|
|
//exclude group: 'javax.annotation'
|
|
//exclude group: 'com.google.guava'
|
|
//exclude group: 'org.hamcrest'
|
|
exclude group: 'com.google.code.findbugs'
|
|
}
|
|
|
|
androidTestCompile("com.icegreen:greenmail:1.3.1b") {
|
|
// Use a better, later version
|
|
exclude group: "javax.mail"
|
|
}
|
|
|
|
// this version avoids some "Ignoring InnerClasses attribute for an anonymous inner class" warnings
|
|
androidTestCompile "javax.mail:javax.mail-api:1.5.2"
|
|
|
|
androidTestCompile "com.madgag.spongycastle:pg:1.51.0.0"
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 21
|
|
buildToolsVersion '21.1.2'
|
|
|
|
defaultConfig {
|
|
minSdkVersion 15
|
|
targetSdkVersion 17
|
|
|
|
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
|
|
}
|
|
|
|
signingConfigs {
|
|
release
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
if (project.hasProperty('storeFile')) {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
debug {
|
|
testCoverageEnabled rootProject.testCoverage
|
|
}
|
|
}
|
|
|
|
// 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_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
|
|
}
|