• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//#############################################
2// Compile Robolectric shadows framework
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_license"
9    // to get the below license kinds:
10    //   SPDX-license-identifier-Apache-2.0
11    default_applicable_licenses: ["external_robolectric_license"],
12}
13
14java_library_host {
15    name: "Robolectric_shadows_framework_upstream",
16    srcs: [
17        "src/main/java/**/*.java",
18        "src/main/java/**/*.kt",
19    ],
20    java_resource_dirs: ["src/main/resources"],
21    javacflags: [
22        "-Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric",
23        "-Aorg.robolectric.annotation.processing.sdkCheckMode=ERROR",
24        // Uncomment the below to debug annotation processors not firing.
25        //"-verbose",
26        //"-XprintRounds",
27        //"-XprintProcessorInfo",
28        //"-Xlint",
29        //"-J-verbose",
30    ],
31    libs: [
32        "Robolectric_annotations_upstream",
33        "Robolectric_nativeruntime_upstream",
34        "Robolectric_resources_upstream",
35        "Robolectric_pluginapi_upstream",
36        "Robolectric_sandbox_upstream",
37        "Robolectric_shadowapi_upstream",
38        "Robolectric_shadows_versioning_upstream",
39        "Robolectric_utils_upstream",
40        "Robolectric_utils_reflector_upstream",
41        "auto_value_annotations",
42        //jetpack
43        //"androidx.annotation_annotation-nodeps",
44        "jsr305",
45        "icu4j",
46
47        "robolectric-accessibility-test-framework-2.1",
48        "robolectric-javax.annotation-api-1.2",
49        //"hamcrest-library",
50        //"hamcrest",
51        //"stub-annotations",
52        "robolectric-sqlite4java-0.282",
53        "asm-commons-9.2",
54        "guava",
55        "asm-tree-9.2",
56        "asm-9.2",
57        //standard tools
58        "error_prone_annotations",
59        //"grpc-java-netty-shaded",
60        // aar files that make up android and jetpack
61        "robolectric-host-android_all_upstream",
62    ],
63    plugins: [
64        "auto_value_plugin_1.9",
65        "auto_value_builder_plugin_1.9",
66        "Robolectric_processor_upstream",
67    ],
68
69}
70