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