xref: /aosp_15_r20/external/robolectric/integration_tests/nativegraphics/Android.bp (revision e6ba16074e6af37d123cb567d575f496bf0a58ee)
1*e6ba1607SAndroid Build Coastguard Workerpackage {
2*e6ba1607SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
3*e6ba1607SAndroid Build Coastguard Worker}
4*e6ba1607SAndroid Build Coastguard Worker
5*e6ba1607SAndroid Build Coastguard Workerandroid_library {
6*e6ba1607SAndroid Build Coastguard Worker    name: "NativeGraphicsTestsAssetsLib",
7*e6ba1607SAndroid Build Coastguard Worker    asset_dirs: ["src/main/assets"],
8*e6ba1607SAndroid Build Coastguard Worker    resource_dirs: ["src/main/res"],
9*e6ba1607SAndroid Build Coastguard Worker    min_sdk_version: "26",
10*e6ba1607SAndroid Build Coastguard Worker    target_sdk_version: "31",
11*e6ba1607SAndroid Build Coastguard Worker    manifest: "AndroidManifest.xml",
12*e6ba1607SAndroid Build Coastguard Worker    optimize: {
13*e6ba1607SAndroid Build Coastguard Worker        enabled: false,
14*e6ba1607SAndroid Build Coastguard Worker    },
15*e6ba1607SAndroid Build Coastguard Worker    lint: {
16*e6ba1607SAndroid Build Coastguard Worker        baseline_filename: "lint-baseline.xml",
17*e6ba1607SAndroid Build Coastguard Worker    },
18*e6ba1607SAndroid Build Coastguard Worker}
19*e6ba1607SAndroid Build Coastguard Worker
20*e6ba1607SAndroid Build Coastguard Workerandroid_app {
21*e6ba1607SAndroid Build Coastguard Worker    name: "NativeGraphicsPseudoApp",
22*e6ba1607SAndroid Build Coastguard Worker    srcs: [],
23*e6ba1607SAndroid Build Coastguard Worker    static_libs: [
24*e6ba1607SAndroid Build Coastguard Worker        "NativeGraphicsTestsAssetsLib",
25*e6ba1607SAndroid Build Coastguard Worker        "androidx.core_core",
26*e6ba1607SAndroid Build Coastguard Worker    ],
27*e6ba1607SAndroid Build Coastguard Worker    manifest: "robo-manifest.xml",
28*e6ba1607SAndroid Build Coastguard Worker    aaptflags: [
29*e6ba1607SAndroid Build Coastguard Worker        "--extra-packages",
30*e6ba1607SAndroid Build Coastguard Worker        "org.robolectric.shadows",
31*e6ba1607SAndroid Build Coastguard Worker    ],
32*e6ba1607SAndroid Build Coastguard Worker    dont_merge_manifests: true,
33*e6ba1607SAndroid Build Coastguard Worker    platform_apis: true,
34*e6ba1607SAndroid Build Coastguard Worker    system_ext_specific: true,
35*e6ba1607SAndroid Build Coastguard Worker    min_sdk_version: "26",
36*e6ba1607SAndroid Build Coastguard Worker    target_sdk_version: "31",
37*e6ba1607SAndroid Build Coastguard Worker    certificate: "platform",
38*e6ba1607SAndroid Build Coastguard Worker    privileged: true,
39*e6ba1607SAndroid Build Coastguard Worker    resource_dirs: ["src/main/res"],
40*e6ba1607SAndroid Build Coastguard Worker    kotlincflags: ["-Xjvm-default=all"],
41*e6ba1607SAndroid Build Coastguard Worker
42*e6ba1607SAndroid Build Coastguard Worker    plugins: ["dagger2-compiler"],
43*e6ba1607SAndroid Build Coastguard Worker    lint: {
44*e6ba1607SAndroid Build Coastguard Worker        baseline_filename: "lint-baseline.xml",
45*e6ba1607SAndroid Build Coastguard Worker    },
46*e6ba1607SAndroid Build Coastguard Worker}
47*e6ba1607SAndroid Build Coastguard Worker
48*e6ba1607SAndroid Build Coastguard Workerandroid_robolectric_test {
49*e6ba1607SAndroid Build Coastguard Worker    name: "NativeGraphicsTests",
50*e6ba1607SAndroid Build Coastguard Worker    srcs: [
51*e6ba1607SAndroid Build Coastguard Worker        "src/**/*.kt",
52*e6ba1607SAndroid Build Coastguard Worker        "src/**/*.java",
53*e6ba1607SAndroid Build Coastguard Worker    ],
54*e6ba1607SAndroid Build Coastguard Worker    static_libs: [
55*e6ba1607SAndroid Build Coastguard Worker        "androidx.test.uiautomator_uiautomator",
56*e6ba1607SAndroid Build Coastguard Worker        "androidx.test.ext.junit",
57*e6ba1607SAndroid Build Coastguard Worker    ],
58*e6ba1607SAndroid Build Coastguard Worker    libs: [
59*e6ba1607SAndroid Build Coastguard Worker        "android.test.runner.stubs.system",
60*e6ba1607SAndroid Build Coastguard Worker        "android.test.base.stubs.system",
61*e6ba1607SAndroid Build Coastguard Worker        "android.test.mock.stubs.system",
62*e6ba1607SAndroid Build Coastguard Worker        "truth",
63*e6ba1607SAndroid Build Coastguard Worker        "guava-android-testlib",
64*e6ba1607SAndroid Build Coastguard Worker    ],
65*e6ba1607SAndroid Build Coastguard Worker    upstream: true,
66*e6ba1607SAndroid Build Coastguard Worker    java_resource_dirs: ["config"],
67*e6ba1607SAndroid Build Coastguard Worker    instrumentation_for: "NativeGraphicsPseudoApp",
68*e6ba1607SAndroid Build Coastguard Worker
69*e6ba1607SAndroid Build Coastguard Worker    strict_mode: false,
70*e6ba1607SAndroid Build Coastguard Worker}
71