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 errorprone: { 32 javacflags: ["-Xep:EqualsNull:WARN"], 33 }, 34} 35 36//############################################# 37// Compile Robolectric shadows httpclient tests 38//############################################# 39 40java_test_host { 41 name: "Robolectric_shadows_httpclient_tests", 42 srcs: ["src/test/java/**/*.java"], 43 java_resource_dirs: ["src/test/resources"], 44 static_libs: [ 45 "Robolectric_shadows_httpclient", 46 "Robolectric_shadows_framework", 47 "Robolectric_annotations", 48 "Robolectric_robolectric", 49 "Robolectric_resources", 50 "Robolectric_shadowapi", 51 "Robolectric_sandbox", 52 "Robolectric_junit", 53 "Robolectric_utils", 54 "robolectric-maven-ant-tasks-2.1.3", 55 "bouncycastle-unbundled", 56 "hamcrest", 57 "robolectric-httpclient-4.0.3", 58 "ow2-asm-commons", 59 "robolectric-httpcore-4.0.1", 60 "guava", 61 "ow2-asm-tree", 62 "junit", 63 "truth-prebuilt", 64 "robolectric-ant-1.8.0", 65 "ow2-asm", 66 "jsr305", 67 "robolectric-host-android_all", 68 "robolectric-host-org_apache_http_legacy", 69 ], 70 test_suites: ["general-tests"], 71} 72