1*e6ba1607SAndroid Build Coastguard Worker//############################################# 2*e6ba1607SAndroid Build Coastguard Worker// Compile Robolectric shadows httpclient 3*e6ba1607SAndroid Build Coastguard Worker//############################################# 4*e6ba1607SAndroid Build Coastguard Worker 5*e6ba1607SAndroid Build Coastguard Workerpackage { 6*e6ba1607SAndroid Build Coastguard Worker // See: http://go/android-license-faq 7*e6ba1607SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 8*e6ba1607SAndroid Build Coastguard Worker // all of the 'license_kinds' from "external_robolectric_license" 9*e6ba1607SAndroid Build Coastguard Worker // to get the below license kinds: 10*e6ba1607SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 11*e6ba1607SAndroid Build Coastguard Worker default_applicable_licenses: ["external_robolectric_license"], 12*e6ba1607SAndroid Build Coastguard Worker} 13*e6ba1607SAndroid Build Coastguard Worker 14*e6ba1607SAndroid Build Coastguard Workerjava_library_host { 15*e6ba1607SAndroid Build Coastguard Worker name: "Robolectric_shadows_httpclient_upstream", 16*e6ba1607SAndroid Build Coastguard Worker libs: [ 17*e6ba1607SAndroid Build Coastguard Worker "Robolectric_shadows_framework_upstream", 18*e6ba1607SAndroid Build Coastguard Worker "Robolectric_annotations_upstream", 19*e6ba1607SAndroid Build Coastguard Worker "Robolectric_shadowapi_upstream", 20*e6ba1607SAndroid Build Coastguard Worker "Robolectric_utils_upstream", 21*e6ba1607SAndroid Build Coastguard Worker "robolectric-httpclient-4.0.3", 22*e6ba1607SAndroid Build Coastguard Worker "robolectric-httpcore-4.0.1", 23*e6ba1607SAndroid Build Coastguard Worker "robolectric-javax.annotation-api-1.2", 24*e6ba1607SAndroid Build Coastguard Worker "robolectric-host-android_all", 25*e6ba1607SAndroid Build Coastguard Worker "robolectric-host-org_apache_http_legacy_upstream", 26*e6ba1607SAndroid Build Coastguard Worker ], 27*e6ba1607SAndroid Build Coastguard Worker plugins: ["Robolectric_processor_upstream"], 28*e6ba1607SAndroid Build Coastguard Worker javacflags: ["-Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.httpclient"], 29*e6ba1607SAndroid Build Coastguard Worker srcs: ["src/main/java/**/*.java"], 30*e6ba1607SAndroid Build Coastguard Worker 31*e6ba1607SAndroid Build Coastguard Worker errorprone: { 32*e6ba1607SAndroid Build Coastguard Worker javacflags: ["-Xep:EqualsNull:WARN"], 33*e6ba1607SAndroid Build Coastguard Worker }, 34*e6ba1607SAndroid Build Coastguard Worker} 35*e6ba1607SAndroid Build Coastguard Worker 36*e6ba1607SAndroid Build Coastguard Worker//############################################# 37*e6ba1607SAndroid Build Coastguard Worker// Compile Robolectric shadows httpclient tests 38*e6ba1607SAndroid Build Coastguard Worker//############################################# 39*e6ba1607SAndroid Build Coastguard Worker 40*e6ba1607SAndroid Build Coastguard Workerjava_test_host { 41*e6ba1607SAndroid Build Coastguard Worker name: "Robolectric_shadows_httpclient_tests_upstream", 42*e6ba1607SAndroid Build Coastguard Worker srcs: ["src/test/java/**/*.java"], 43*e6ba1607SAndroid Build Coastguard Worker java_resource_dirs: ["src/test/resources"], 44*e6ba1607SAndroid Build Coastguard Worker static_libs: [ 45*e6ba1607SAndroid Build Coastguard Worker "Robolectric_shadows_httpclient_upstream", 46*e6ba1607SAndroid Build Coastguard Worker "Robolectric_shadows_framework_upstream", 47*e6ba1607SAndroid Build Coastguard Worker "Robolectric_annotations_upstream", 48*e6ba1607SAndroid Build Coastguard Worker "Robolectric_robolectric_upstream", 49*e6ba1607SAndroid Build Coastguard Worker "Robolectric_resources_upstream", 50*e6ba1607SAndroid Build Coastguard Worker "Robolectric_shadowapi_upstream", 51*e6ba1607SAndroid Build Coastguard Worker "Robolectric_sandbox_upstream", 52*e6ba1607SAndroid Build Coastguard Worker "Robolectric_junit_upstream", 53*e6ba1607SAndroid Build Coastguard Worker "Robolectric_utils_upstream", 54*e6ba1607SAndroid Build Coastguard Worker "robolectric-maven-ant-tasks-2.1.3", 55*e6ba1607SAndroid Build Coastguard Worker "bouncycastle-unbundled", 56*e6ba1607SAndroid Build Coastguard Worker "hamcrest", 57*e6ba1607SAndroid Build Coastguard Worker "robolectric-httpclient-4.0.3", 58*e6ba1607SAndroid Build Coastguard Worker "asm-commons-9.6", 59*e6ba1607SAndroid Build Coastguard Worker "robolectric-httpcore-4.0.1", 60*e6ba1607SAndroid Build Coastguard Worker "guava", 61*e6ba1607SAndroid Build Coastguard Worker "asm-tree-9.6", 62*e6ba1607SAndroid Build Coastguard Worker "junit", 63*e6ba1607SAndroid Build Coastguard Worker "truth", 64*e6ba1607SAndroid Build Coastguard Worker "robolectric-ant-1.8.0", 65*e6ba1607SAndroid Build Coastguard Worker "asm-9.6", 66*e6ba1607SAndroid Build Coastguard Worker "jsr305", 67*e6ba1607SAndroid Build Coastguard Worker "grpc-java-netty-shaded", 68*e6ba1607SAndroid Build Coastguard Worker //"grpc-netty-shaded-1.16.1-jar", 69*e6ba1607SAndroid Build Coastguard Worker "robolectric-host-android_all", 70*e6ba1607SAndroid Build Coastguard Worker "robolectric-host-org_apache_http_legacy_upstream", 71*e6ba1607SAndroid Build Coastguard Worker "robolectric-host-androidx-test-ext-junit_upstream", 72*e6ba1607SAndroid Build Coastguard Worker ], 73*e6ba1607SAndroid Build Coastguard Worker test_suites: ["general-tests"], 74*e6ba1607SAndroid Build Coastguard Worker //tradefed doesn't run these tests. 75*e6ba1607SAndroid Build Coastguard Worker test_options: { 76*e6ba1607SAndroid Build Coastguard Worker unit_test: false, 77*e6ba1607SAndroid Build Coastguard Worker }, 78*e6ba1607SAndroid Build Coastguard Worker} 79