aboutsummaryrefslogtreecommitdiff
path: root/shadowapi/Android.bp
blob: ad3841e2f178d5b29bfe5f506b40ffe156653fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//#############################################
// Compile Robolectric shadowapi
//#############################################

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_shadowapi",
    libs: ["jsr305"],
    srcs: ["src/main/java/**/*.java"],
}

//#############################################
// Compile Robolectric shadowapi tests
//#############################################
java_test_host {
    name: "Robolectric_shadowapi_tests",
    srcs: ["src/test/java/**/*.java"],
    static_libs: [
        "Robolectric_shadowapi",
        "hamcrest",
        "guava",
        "junit",
        "truth-prebuilt",
    ],
    test_suites: ["general-tests"],
}