diff options
| -rw-r--r-- | packages/CredentialManager/Android.bp | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/packages/CredentialManager/Android.bp b/packages/CredentialManager/Android.bp index 991fe41bb7f3..c292b5027f36 100644 --- a/packages/CredentialManager/Android.bp +++ b/packages/CredentialManager/Android.bp @@ -7,19 +7,14 @@ package { default_applicable_licenses: ["frameworks_base_license"], } -android_app { - name: "CredentialManager", - defaults: ["platform_app_defaults"], - certificate: "platform", +android_library { + name: "CredentialManager-handheld", + + platform_apis: true, + srcs: ["src/**/*.kt"], resource_dirs: ["res"], - dex_preopt: { - profile_guided: true, - //TODO: b/312357299 - Update baseline profile - profile: "profile.txt.prof", - }, - static_libs: [ "CredentialManagerShared", "PlatformComposeCore", @@ -42,6 +37,23 @@ android_app { "androidx.recyclerview_recyclerview", "kotlinx-coroutines-core", ], +} + +android_app { + name: "CredentialManager", + defaults: ["platform_app_defaults"], + certificate: "platform", + + dex_preopt: { + profile_guided: true, + //TODO: b/312357299 - Update baseline profile + profile: "profile.txt.prof", + }, + + // Do not add new dependencies here. Add to CredentialManager-handheld instead. + static_libs: [ + "CredentialManager-handheld", + ], platform_apis: true, privileged: true, |