android_test { name: "PhotopickerTests", test_suites: ["general-tests"], manifest: "AndroidManifest.xml", srcs: ["src/**/*.kt"], compile_multilib: "both", certificate: "media", sdk_version: "core_current", min_sdk_version: "30", libs: [ "android.test.mock", "framework-configinfrastructure.stubs.module_lib", "framework-connectivity.stubs.module_lib", "framework-mediaprovider.impl", // Include stubs for @TestApi methods "android_test_stubs_current", "framework-res", ], resource_dirs: ["res"], static_libs: [ // sources "PhotopickerLib", // test dependencies "androidx.compose.runtime_runtime", "androidx.compose.ui_ui-test-junit4", "androidx.compose.ui_ui-test-manifest", "androidx.navigation_navigation-testing", "androidx.test.core", "androidx.test.rules", "hilt_android", "hilt_android_testing", "mockito-target", "modules-utils-build", "truth", ], aaptflags: ["--custom-package com.android.photopicker"], }