aboutsummaryrefslogtreecommitdiff
path: root/pluginapi/Android.bp
blob: 29e46f9907199c9abea70709c3483d69b66c401f (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
35
36
37
38
39
40
41
//#############################################
// Compile Robolectric utils
//#############################################

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_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["external_robolectric_license"],
}

java_library_host {
    name: "Robolectric_pluginapi_upstream",
    srcs: ["src/main/java/**/*.java"],
    static_libs: [
        "robolectric-javax.annotation-api-1.2",
        "Robolectric_annotations_upstream",
        "guava",
        "jsr330",
        "jsr305",
    ],
}

//#############################################
// Compile Robolectric utils tests
//#############################################

java_test_host {
    name: "Robolectric_pluginapi_tests_upstream",
    srcs: ["src/test/java/**/*.java"],
    static_libs: [
        "Robolectric_pluginapi_upstream",
        "hamcrest",
        "guava",
        "junit",
        "truth",
    ],
    test_suites: ["general-tests"],
}