1// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_library {
21    name: "CarLauncher-core",
22    platform_apis: true,
23
24    srcs: ["src/**/*.java"],
25
26    resource_dirs: ["res"],
27
28    static_libs: [
29        "androidx-constraintlayout_constraintlayout-solver",
30        "androidx-constraintlayout_constraintlayout",
31        "androidx.lifecycle_lifecycle-extensions",
32        "car-media-common",
33        "car-telephony-common",
34        "car-ui-lib",
35        "WindowManager-Shell",
36    ],
37
38    libs: ["android.car"],
39
40    manifest: "AndroidManifest.xml",
41}
42
43android_app {
44    name: "CarLauncher",
45
46    resource_dirs: [],
47
48    platform_apis: true,
49
50    required: ["allowed_privapp_com.android.car.carlauncher"],
51
52    certificate: "platform",
53
54    privileged: true,
55
56    overrides: [
57        "Launcher2",
58        "Launcher3",
59        "Launcher3QuickStep",
60    ],
61
62    static_libs: ["CarLauncher-core"],
63
64    libs: ["android.car"],
65
66    optimize: {
67        enabled: false,
68    },
69
70    dex_preopt: {
71        enabled: false,
72    },
73
74    product_variables: {
75        pdk: {
76            enabled: false,
77        },
78    },
79}
80