summaryrefslogtreecommitdiff
path: root/packages/CredentialManager/Android.bp
blob: c292b5027f366b5e0f573dbd95b5164d10c51a89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_base_license"],
}

android_library {
    name: "CredentialManager-handheld",

    platform_apis: true,

    srcs: ["src/**/*.kt"],
    resource_dirs: ["res"],

    static_libs: [
        "CredentialManagerShared",
        "PlatformComposeCore",
        "androidx.activity_activity-compose",
        "androidx.appcompat_appcompat",
        "androidx.compose.animation_animation-core",
        "androidx.compose.foundation_foundation",
        "androidx.compose.material3_material3",
        "androidx.compose.material_material-icons-core",
        "androidx.compose.material_material-icons-extended",
        "androidx.compose.runtime_runtime",
        "androidx.compose.ui_ui",
        "androidx.compose.ui_ui-tooling",
        "androidx.core_core-ktx",
        "androidx.credentials_credentials",
        "androidx.lifecycle_lifecycle-extensions",
        "androidx.lifecycle_lifecycle-livedata",
        "androidx.lifecycle_lifecycle-runtime-ktx",
        "androidx.lifecycle_lifecycle-viewmodel-compose",
        "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,

    kotlincflags: ["-Xjvm-default=all"],

    optimize: {
        proguard_compatibility: false,
    },
}