Helen Qin | 68e23a0 | 2024-01-16 23:55:23 +0000 | [diff] [blame^] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_base_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_base_license"], |
| 8 | } |
| 9 | |
| 10 | android_app { |
| 11 | name: "CredentialManagerRobo", |
| 12 | srcs: [], |
| 13 | static_libs: [ |
| 14 | "SystemUI-core", |
| 15 | "CredentialManager-handheld", |
| 16 | "ScreenshotComposeUtilsLib", |
| 17 | "androidx.test.espresso.core", |
| 18 | "androidx.compose.material3_material3", |
| 19 | "platform-screenshot-diff-core", |
| 20 | ], |
| 21 | manifest: "robo-manifest.xml", |
| 22 | dont_merge_manifests: true, |
| 23 | platform_apis: true, |
| 24 | system_ext_specific: true, |
| 25 | certificate: "platform", |
| 26 | privileged: true, |
| 27 | kotlincflags: ["-Xjvm-default=all"], |
| 28 | asset_dirs: ["customization/assets"], |
| 29 | resource_dirs: ["screenshot/customization/res"], |
| 30 | use_resource_processor: true, |
| 31 | } |
| 32 | |
| 33 | // This is a RNG (Robolectric native graphics) test target. |
| 34 | android_robolectric_test { |
| 35 | name: "CredentialManagerScreenshotTest", |
| 36 | srcs: [ |
| 37 | ":CredentialManagerScreenshotTestFiles", |
| 38 | ], |
| 39 | |
| 40 | // Do not add any libraries here, instead add them to the ScreenshotTestStub |
| 41 | static_libs: [ |
| 42 | "androidx.compose.runtime_runtime", |
| 43 | "androidx.test.uiautomator_uiautomator", |
| 44 | "androidx.test.ext.junit", |
| 45 | "inline-mockito-robolectric-prebuilt", |
| 46 | "platform-parametric-runner-lib", |
| 47 | "uiautomator-helpers", |
| 48 | ], |
| 49 | libs: [ |
| 50 | "android.test.runner", |
| 51 | "android.test.base", |
| 52 | "android.test.mock", |
| 53 | "truth", |
| 54 | ], |
| 55 | upstream: true, |
| 56 | java_resource_dirs: ["config"], |
| 57 | instrumentation_for: "CredentialManagerRobo", |
| 58 | } |