//############################################# // Compile Robolectric resources //############################################# 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_license"], } java_library_host { name: "Robolectric_resources_upstream", srcs: ["src/main/java/**/*.java"], libs: [ "Robolectric_annotations_upstream", "Robolectric_utils_upstream", "guava", "jsr305", "auto_value_annotations", ], plugins: [ "auto_value_plugin_1.9", "auto_value_builder_plugin_1.9", ], } //############################################# // Compile Robolectric resources tests //############################################# java_test_host { name: "Robolectric_resources_tests_upstream", srcs: ["src/test/java/**/*.java"], static_libs: [ "Robolectric_resources_upstream", "Robolectric_annotations_upstream", "Robolectric_utils_upstream", "mockito", "hamcrest", "guava", "objenesis", "junit", "truth", "jsr305", ], java_resource_dirs: ["src/test/resources"], test_suites: ["general-tests"], }