Home | History | Annotate | Download | only in volley
      1 // See build.gradle for an explanation of what this file is.
      2 
      3 apply plugin: 'com.android.library'
      4 
      5 android {
      6   useLibrary 'org.apache.http.legacy'
      7 
      8   compileOptions {
      9     sourceCompatibility JavaVersion.VERSION_1_7
     10     targetCompatibility JavaVersion.VERSION_1_7
     11   }
     12 
     13   defaultConfig {
     14     consumerProguardFiles 'consumer-proguard-rules.pro'
     15   }
     16 }
     17 
     18 tasks.withType(JavaCompile) {
     19   options.compilerArgs << "-Xlint:unchecked" << "-Werror"
     20 }
     21 
     22 dependencies {
     23     implementation "androidx.annotation:annotation:1.0.1"
     24 }
     25 
     26 // Check if the android plugin version supports unit testing.
     27 if (configurations.findByName("testCompile")) {
     28   dependencies {
     29       testCompile "junit:junit:4.12"
     30       testCompile "org.hamcrest:hamcrest-library:1.3"
     31       testCompile "org.mockito:mockito-core:2.19.0"
     32       testCompile "org.robolectric:robolectric:3.4.2"
     33   }
     34 }
     35