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 // Check if the android plugin version supports unit testing.
     19 if (configurations.findByName("testCompile")) {
     20   dependencies {
     21     testCompile "junit:junit:4.12"
     22     testCompile "org.hamcrest:hamcrest-library:1.3"
     23     testCompile "org.mockito:mockito-core:2.2.29"
     24     testCompile "org.robolectric:robolectric:3.0"
     25   }
     26 }
     27