2014-12-20 00:09:49 +00:00
|
|
|
apply plugin: 'com.android.library'
|
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-20 00:09:49 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile 'org.apache.james:apache-mime4j-core:0.7.2'
|
|
|
|
compile 'org.apache.james:apache-mime4j-dom:0.7.2'
|
2014-12-22 21:36:50 +00:00
|
|
|
compile 'commons-io:commons-io:2.4'
|
2014-12-20 00:09:49 +00:00
|
|
|
compile 'com.jcraft:jzlib:1.0.7'
|
|
|
|
compile 'com.beetstra.jutf7:jutf7:1.0.0'
|
2016-10-19 10:35:28 +00:00
|
|
|
compile "com.android.support:support-annotations:${androidSupportLibraryVersion}"
|
2015-05-20 21:48:30 +00:00
|
|
|
|
2015-12-21 02:25:54 +00:00
|
|
|
androidTestCompile 'com.android.support.test:runner:0.4.1'
|
2015-05-20 21:48:30 +00:00
|
|
|
androidTestCompile 'com.madgag.spongycastle:pg:1.51.0.0'
|
|
|
|
|
2016-11-03 05:08:23 +00:00
|
|
|
testCompile "com.squareup.okio:okio:${okioVersion}"
|
2016-10-19 10:35:28 +00:00
|
|
|
testCompile "org.robolectric:robolectric:${robolectricVersion}"
|
|
|
|
testCompile "junit:junit:${junitVersion}"
|
|
|
|
testCompile "org.mockito:mockito-core:${mockitoVersion}"
|
2014-12-20 00:09:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2016-10-19 10:35:28 +00:00
|
|
|
compileSdkVersion androidCompileSdkVersion.toInteger()
|
|
|
|
buildToolsVersion androidBuildToolsVersion
|
2014-12-20 00:09:49 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 15
|
2015-05-20 21:48:30 +00:00
|
|
|
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2014-12-20 00:09:49 +00:00
|
|
|
}
|
|
|
|
|
2016-01-14 23:11:05 +00:00
|
|
|
// for using Apache HTTP Client
|
|
|
|
useLibrary 'org.apache.http.legacy'
|
|
|
|
|
2015-05-21 12:52:50 +00:00
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
testCoverageEnabled rootProject.testCoverage
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-20 00:09:49 +00:00
|
|
|
lintOptions {
|
2015-12-22 17:13:05 +00:00
|
|
|
abortOnError false
|
2014-12-20 00:09:49 +00:00
|
|
|
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2015-12-22 13:34:27 +00:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
2014-12-20 00:09:49 +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'
|
2015-05-20 21:48:30 +00:00
|
|
|
exclude 'LICENSE.txt'
|
2014-12-20 00:09:49 +00:00
|
|
|
}
|
|
|
|
}
|