1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5android_library {
6    name: "ActivityContext",
7    sdk_version: "27",
8    srcs: [
9        "src/main/java/**/*.java"
10    ],
11    static_libs: [
12        "EventLib",
13        "compatibility-device-util-axt",
14    ],
15    manifest: "src/main/AndroidManifest.xml",
16}
17
18android_test {
19    name: "ActivityContextTest",
20    srcs: [
21        "src/test/java/**/*.java"
22    ],
23    test_suites: [
24        "general-tests",
25    ],
26    static_libs: [
27        "ActivityContext",
28        "androidx.test.ext.junit",
29        "ctstestrunner-axt",
30        "truth-prebuilt",
31        "testng", // Used for assertThrows
32    ],
33    manifest: "src/test/AndroidManifest.xml",
34}
35
36android_test {
37    name: "ActivityContextInstrumentOtherAppTest",
38    srcs: [
39        "src/test/java/**/*.java"
40    ],
41    test_suites: [
42        "general-tests",
43    ],
44    static_libs: [
45        "ActivityContext",
46        "androidx.test.ext.junit",
47        "ctstestrunner-axt",
48        "truth-prebuilt",
49        "testng", // Used for assertThrows
50    ],
51    manifest: "src/test/AndroidManifestInstrumentEmptyTestApp.xml",
52    data: [":EmptyTestApp"],
53    test_config: "ActivityContextInstrumentOtherAppTest.xml"
54}
55