30 lines
757 B
Groovy
30 lines
757 B
Groovy
// See build.gradle for an explanation of what this file is.
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
useLibrary 'org.apache.http.legacy'
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
}
|
|
|
|
// Check if the android plugin version supports unit testing.
|
|
if (configurations.findByName("testCompile")) {
|
|
dependencies {
|
|
testCompile "junit:junit:4.10"
|
|
testCompile "org.mockito:mockito-core:1.9.5"
|
|
testCompile "org.robolectric:robolectric:3.0"
|
|
}
|
|
}
|
|
|
|
// TODO(#4): Remove this once Javadoc errors are fixed
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
allprojects {
|
|
tasks.withType(Javadoc) {
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
}
|
|
}
|
|
}
|