1android_test {
2
3    name: "PhotopickerTests",
4    test_suites: ["general-tests"],
5    manifest: "AndroidManifest.xml",
6    srcs: ["src/**/*.kt"],
7    compile_multilib: "both",
8    certificate: "media",
9    sdk_version: "core_current",
10    min_sdk_version: "30",
11    libs: [
12        "android.test.mock",
13        "framework-configinfrastructure.stubs.module_lib",
14        "framework-connectivity.stubs.module_lib",
15        "framework-mediaprovider.impl",
16        // Include stubs for @TestApi methods
17        "android_test_stubs_current",
18        "framework-res",
19    ],
20    resource_dirs: ["res"],
21    static_libs: [
22        // sources
23        "PhotopickerLib", // test dependencies
24        "androidx.compose.runtime_runtime",
25        "androidx.compose.ui_ui-test-junit4",
26        "androidx.compose.ui_ui-test-manifest",
27        "androidx.navigation_navigation-testing",
28        "androidx.test.core",
29        "androidx.test.rules",
30        "hilt_android",
31        "hilt_android_testing",
32        "mockito-target",
33        "modules-utils-build",
34        "truth",
35    ],
36
37    aaptflags: ["--custom-package com.android.photopicker"],
38
39}
40