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