1//############################################# 2// Compile Robolectric shadows httpclient 3//############################################# 4 5package { 6 // See: http://go/android-license-faq 7 // A large-scale-change added 'default_applicable_licenses' to import 8 // all of the 'license_kinds' from "external_robolectric-shadows_license" 9 // to get the below license kinds: 10 // SPDX-license-identifier-Apache-2.0 11 default_applicable_licenses: ["external_robolectric-shadows_license"], 12} 13 14java_library_host { 15 name: "Robolectric_shadows_httpclient", 16 libs: [ 17 "Robolectric_shadows_framework", 18 "Robolectric_annotations", 19 "Robolectric_shadowapi", 20 "Robolectric_utils", 21 "robolectric-httpclient-4.0.3", 22 "robolectric-httpcore-4.0.1", 23 "robolectric-javax.annotation-api-1.2", 24 "robolectric-host-android_all", 25 "robolectric-host-org_apache_http_legacy", 26 ], 27 plugins: ["Robolectric_processor"], 28 javacflags: ["-Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.httpclient"], 29 srcs: ["src/main/java/**/*.java"], 30} 31 32//############################################# 33// Compile Robolectric shadows httpclient tests 34//############################################# 35 36java_test_host { 37 name: "Robolectric_shadows_httpclient_tests", 38 srcs: ["src/test/java/**/*.java"], 39 java_resource_dirs: ["src/test/resources"], 40 static_libs: [ 41 "Robolectric_shadows_httpclient", 42 "Robolectric_shadows_framework", 43 "Robolectric_annotations", 44 "Robolectric_robolectric", 45 "Robolectric_resources", 46 "Robolectric_shadowapi", 47 "Robolectric_sandbox", 48 "Robolectric_junit", 49 "Robolectric_utils", 50 "robolectric-maven-ant-tasks-2.1.3", 51 "bouncycastle-unbundled", 52 "hamcrest", 53 "robolectric-httpclient-4.0.3", 54 "asm-commons-6.0", 55 "robolectric-httpcore-4.0.1", 56 "guava", 57 "asm-tree-6.0", 58 "junit", 59 "truth-prebuilt", 60 "robolectric-ant-1.8.0", 61 "asm-6.0", 62 "jsr305", 63 "robolectric-host-android_all", 64 "robolectric-host-org_apache_http_legacy", 65 ], 66 test_suites: ["general-tests"], 67} 68