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 "asm-commons-6.0", 22 "guava", 23 "asm-tree-6.0", 24 "asm-6.0", 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 "asm-commons-6.0", 45 "guava", 46 "objenesis", 47 "asm-tree-6.0", 48 "junit", 49 "truth-prebuilt", 50 "asm-6.0", 51 "jsr305", 52 ], 53 test_suites: ["general-tests"], 54} 55