1*e6ba1607SAndroid Build Coastguard Worker//############################################# 2*e6ba1607SAndroid Build Coastguard Worker// Compile Robolectric resources 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-shadows_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_resources_upstream", 16*e6ba1607SAndroid Build Coastguard Worker srcs: ["src/main/java/**/*.java"], 17*e6ba1607SAndroid Build Coastguard Worker libs: [ 18*e6ba1607SAndroid Build Coastguard Worker "Robolectric_annotations_upstream", 19*e6ba1607SAndroid Build Coastguard Worker "Robolectric_utils_upstream", 20*e6ba1607SAndroid Build Coastguard Worker "guava", 21*e6ba1607SAndroid Build Coastguard Worker "jsr305", 22*e6ba1607SAndroid Build Coastguard Worker "auto_value_annotations", 23*e6ba1607SAndroid Build Coastguard Worker ], 24*e6ba1607SAndroid Build Coastguard Worker plugins: [ 25*e6ba1607SAndroid Build Coastguard Worker "auto_value_plugin_1.9", 26*e6ba1607SAndroid Build Coastguard Worker "auto_value_builder_plugin_1.9", 27*e6ba1607SAndroid Build Coastguard Worker ], 28*e6ba1607SAndroid Build Coastguard Worker} 29*e6ba1607SAndroid Build Coastguard Worker 30*e6ba1607SAndroid Build Coastguard Worker//############################################# 31*e6ba1607SAndroid Build Coastguard Worker// Compile Robolectric resources tests 32*e6ba1607SAndroid Build Coastguard Worker//############################################# 33*e6ba1607SAndroid Build Coastguard Worker 34*e6ba1607SAndroid Build Coastguard Workerjava_test_host { 35*e6ba1607SAndroid Build Coastguard Worker name: "Robolectric_resources_tests_upstream", 36*e6ba1607SAndroid Build Coastguard Worker srcs: ["src/test/java/**/*.java"], 37*e6ba1607SAndroid Build Coastguard Worker static_libs: [ 38*e6ba1607SAndroid Build Coastguard Worker "Robolectric_resources_upstream", 39*e6ba1607SAndroid Build Coastguard Worker "Robolectric_annotations_upstream", 40*e6ba1607SAndroid Build Coastguard Worker "Robolectric_utils_upstream", 41*e6ba1607SAndroid Build Coastguard Worker "mockito", 42*e6ba1607SAndroid Build Coastguard Worker "hamcrest", 43*e6ba1607SAndroid Build Coastguard Worker "guava", 44*e6ba1607SAndroid Build Coastguard Worker "objenesis", 45*e6ba1607SAndroid Build Coastguard Worker "junit", 46*e6ba1607SAndroid Build Coastguard Worker "truth", 47*e6ba1607SAndroid Build Coastguard Worker "jsr305", 48*e6ba1607SAndroid Build Coastguard Worker ], 49*e6ba1607SAndroid Build Coastguard Worker java_resource_dirs: ["src/test/resources"], 50*e6ba1607SAndroid Build Coastguard Worker test_suites: ["general-tests"], 51*e6ba1607SAndroid Build Coastguard Worker} 52