1package {
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
10android_library {
11    name: "CredentialManager-handheld",
12
13    platform_apis: true,
14
15    srcs: ["src/**/*.kt"],
16    resource_dirs: ["res"],
17
18    static_libs: [
19        "CredentialManagerShared",
20        "PlatformComposeCore",
21        "androidx.activity_activity-compose",
22        "androidx.appcompat_appcompat",
23        "androidx.compose.animation_animation-core",
24        "androidx.compose.foundation_foundation",
25        "androidx.compose.material3_material3",
26        "androidx.compose.material_material-icons-core",
27        "androidx.compose.material_material-icons-extended",
28        "androidx.compose.runtime_runtime",
29        "androidx.compose.ui_ui",
30        "androidx.compose.ui_ui-tooling",
31        "androidx.core_core-ktx",
32        "androidx.credentials_credentials",
33        "androidx.lifecycle_lifecycle-extensions",
34        "androidx.lifecycle_lifecycle-livedata",
35        "androidx.lifecycle_lifecycle-runtime-ktx",
36        "androidx.lifecycle_lifecycle-viewmodel-compose",
37        "androidx.recyclerview_recyclerview",
38        "kotlinx-coroutines-core",
39    ],
40}
41
42android_app {
43    name: "CredentialManager",
44    defaults: ["platform_app_defaults"],
45    certificate: "platform",
46
47    dex_preopt: {
48        profile_guided: true,
49        //TODO: b/312357299 - Update baseline profile
50        profile: "profile.txt.prof",
51    },
52
53    // Do not add new dependencies here. Add to CredentialManager-handheld instead.
54    static_libs: [
55        "CredentialManager-handheld",
56    ],
57
58    platform_apis: true,
59    privileged: true,
60
61    kotlincflags: ["-Xjvm-default=all"],
62
63    optimize: {
64        proguard_compatibility: false,
65    },
66}
67