blob: c292b5027f366b5e0f573dbd95b5164d10c51a89 [file] [log] [blame]
Helen Qindb3645e2022-09-21 05:02:34 +00001package {
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
Helen Qin6ea13392024-01-12 23:31:03 +000010android_library {
11 name: "CredentialManager-handheld",
12
13 platform_apis: true,
14
Helen Qindb3645e2022-09-21 05:02:34 +000015 srcs: ["src/**/*.kt"],
16 resource_dirs: ["res"],
17
18 static_libs: [
shuanghaod76bcec2023-11-17 19:23:58 +000019 "CredentialManagerShared",
Helen Qin00b417e2023-03-02 22:42:51 +000020 "PlatformComposeCore",
Helen Qindb3645e2022-09-21 05:02:34 +000021 "androidx.activity_activity-compose",
22 "androidx.appcompat_appcompat",
Helen Qin4e2bf062022-10-31 20:34:41 +000023 "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",
Helen Qindb3645e2022-09-21 05:02:34 +000028 "androidx.compose.runtime_runtime",
29 "androidx.compose.ui_ui",
30 "androidx.compose.ui_ui-tooling",
31 "androidx.core_core-ktx",
Helen Qin8a83c3d2023-02-01 19:06:04 +000032 "androidx.credentials_credentials",
Helen Qindb3645e2022-09-21 05:02:34 +000033 "androidx.lifecycle_lifecycle-extensions",
34 "androidx.lifecycle_lifecycle-livedata",
35 "androidx.lifecycle_lifecycle-runtime-ktx",
36 "androidx.lifecycle_lifecycle-viewmodel-compose",
Helen Qindb3645e2022-09-21 05:02:34 +000037 "androidx.recyclerview_recyclerview",
Helen Qin4e2bf062022-10-31 20:34:41 +000038 "kotlinx-coroutines-core",
Helen Qindb3645e2022-09-21 05:02:34 +000039 ],
Helen Qin6ea13392024-01-12 23:31:03 +000040}
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 ],
Helen Qindb3645e2022-09-21 05:02:34 +000057
58 platform_apis: true,
Helen Qinebaf11e2023-01-13 22:03:11 +000059 privileged: true,
Helen Qindb3645e2022-09-21 05:02:34 +000060
Colin Cross6954ea72023-07-18 10:52:21 -070061 kotlincflags: ["-Xjvm-default=all"],
Helen Qin7731c982022-10-18 01:13:43 +000062
63 optimize: {
64 proguard_compatibility: false,
65 },
Helen Qindb3645e2022-09-21 05:02:34 +000066}