You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.4 KiB
55 lines
1.4 KiB
//#############################################
|
|
// Compile Robolectric sandbox
|
|
//#############################################
|
|
|
|
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-shadows_license"],
|
|
}
|
|
|
|
java_library_host {
|
|
name: "Robolectric_sandbox",
|
|
srcs: ["src/main/java/**/*.java"],
|
|
libs: [
|
|
"Robolectric_annotations",
|
|
"Robolectric_shadowapi",
|
|
"Robolectric_utils",
|
|
"asm-commons-6.0",
|
|
"guava",
|
|
"asm-tree-6.0",
|
|
"asm-6.0",
|
|
"jsr305",
|
|
],
|
|
}
|
|
|
|
//#############################################
|
|
// Compile Robolectric sandbox tests
|
|
//#############################################
|
|
|
|
java_test_host {
|
|
name: "Robolectric_sandbox_tests",
|
|
srcs: ["src/test/java/**/*.java"],
|
|
static_libs: [
|
|
"Robolectric_annotations",
|
|
"Robolectric_shadowapi",
|
|
"Robolectric_sandbox",
|
|
"Robolectric_junit",
|
|
"Robolectric_utils",
|
|
"mockito",
|
|
"hamcrest",
|
|
"asm-commons-6.0",
|
|
"guava",
|
|
"objenesis",
|
|
"asm-tree-6.0",
|
|
"junit",
|
|
"truth-prebuilt",
|
|
"asm-6.0",
|
|
"jsr305",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|