1//############################################# 2// Compile Robolectric sandbox 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-Apache-2.0 11 default_applicable_licenses: ["external_robolectric-shadows_license"], 12} 13 14java_library_host { 15 name: "Robolectric_sandbox", 16 srcs: ["src/main/java/**/*.java"], 17 libs: [ 18 "Robolectric_annotations", 19 "Robolectric_shadowapi", 20 "Robolectric_utils", 21 "ow2-asm-commons", 22 "guava", 23 "ow2-asm-tree", 24 "ow2-asm", 25 "jsr305", 26 ], 27} 28 29//############################################# 30// Compile Robolectric sandbox tests 31//############################################# 32 33java_test_host { 34 name: "Robolectric_sandbox_tests", 35 srcs: ["src/test/java/**/*.java"], 36 static_libs: [ 37 "Robolectric_annotations", 38 "Robolectric_shadowapi", 39 "Robolectric_sandbox", 40 "Robolectric_junit", 41 "Robolectric_utils", 42 "mockito", 43 "hamcrest", 44 "ow2-asm-commons", 45 "guava", 46 "objenesis", 47 "ow2-asm-tree", 48 "junit", 49 "truth-prebuilt", 50 "ow2-asm", 51 "jsr305", 52 ], 53 test_suites: ["general-tests"], 54 errorprone: { 55 javacflags: [ 56 "-Xep:ReturnValueIgnored:WARN", 57 ], 58 }, 59} 60