1//############################################# 2// Compile Robolectric shadowapi 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_shadowapi_upstream", 16 libs: [ 17 "jsr305", 18 ], 19 static_libs: [ 20 "Robolectric_utils_upstream", 21 "Robolectric_annotations_upstream", 22 ], 23 srcs: ["src/main/java/**/*.java"], 24 openjdk9: { 25 javacflags: [ 26 "--add-opens=java.base/java.lang=ALL-UNNAMED", 27 ], 28 }, 29} 30 31//############################################# 32// Compile Robolectric shadowapi tests 33//############################################# 34java_test_host { 35 name: "Robolectric_shadowapi_tests_upstream", 36 srcs: ["src/test/java/**/*.java"], 37 static_libs: [ 38 "Robolectric_shadowapi_upstream", 39 "hamcrest", 40 "guava", 41 "junit", 42 "truth", 43 ], 44 test_suites: ["general-tests"], 45} 46