• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//#############################################
2// Compile Robolectric shadows supportv4
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-MIT
11    default_applicable_licenses: ["external_robolectric-shadows_license"],
12}
13
14java_library_host {
15    name: "Robolectric_shadows_supportv4",
16    libs: [
17        "Robolectric_shadows_framework",
18        "Robolectric_annotations",
19        "Robolectric_robolectric",
20        "Robolectric_shadowapi",
21        "Robolectric_utils",
22        "robolectric-javax.annotation-api-1.2",
23        "robolectric-host-android-support-v4",
24        "robolectric-host-android_all",
25    ],
26    plugins: ["Robolectric_processor"],
27    javacflags: ["-Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.support.v4"],
28    srcs: ["src/main/java/**/*.java"],
29}
30
31//#############################################
32// Compile Robolectric shadows supportv4 tests
33//#############################################
34
35java_test_host {
36    name: "Robolectric_shadows_supportv4_tests",
37    srcs: ["src/test/java/**/*.java"],
38    java_resource_dirs: ["src/test/resources"],
39    static_libs: [
40        "Robolectric_shadows_supportv4",
41        "Robolectric_shadows_framework",
42        "Robolectric_annotations",
43        "Robolectric_robolectric",
44        "Robolectric_resources",
45        "Robolectric_shadowapi",
46        "Robolectric_sandbox",
47        "Robolectric_junit",
48        "Robolectric_utils",
49        "robolectric-accessibility-test-framework-2.1",
50        "robolectric-host-android-support-v4",
51        "robolectric-maven-ant-tasks-2.1.3",
52        "hamcrest-library",
53        "mockito",
54        "bouncycastle-unbundled",
55        "hamcrest",
56        "asm-commons-6.0",
57        "guava",
58        "objenesis",
59        "asm-tree-6.0",
60        "junit",
61        "truth-prebuilt",
62        "robolectric-ant-1.8.0",
63        "asm-6.0",
64        "jsr305",
65    ],
66    libs: ["robolectric-host-android_all"],
67    // Robolectric tests do not work well with unit tests setup yet
68    test_options: {
69        unit_test: false,
70    },
71}
72