• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17android_app {
18    name: "CarDialerApp",
19
20    srcs: ["src/**/*.java"],
21
22    resource_dirs: ["res"],
23
24    platform_apis: true,
25
26    required: ["privapp_whitelist_com.android.car.dialer"],
27
28    overrides: ["Dialer"],
29
30    libs: ["android.car"],
31
32    static_libs: [
33        "androidx.recyclerview_recyclerview",
34        "androidx.lifecycle_lifecycle-extensions",
35        "androidx.preference_preference",
36        "androidx-constraintlayout_constraintlayout",
37        "androidx.legacy_legacy-support-v4",
38        "androidx.cardview_cardview",
39        "car-apps-common",
40        "car-arch-common",
41        "car-telephony-common",
42        "car-theme-lib",
43        "car-ui-lib",
44        "car-uxr-client-lib",
45        "androidx-constraintlayout_constraintlayout-solver",
46        "guava",
47        "glide-prebuilt",
48        "libphonenumber",
49        "androidx.sqlite_sqlite-framework",
50        "androidx.sqlite_sqlite",
51        "androidx.room_room-runtime",
52    ],
53
54    plugins: ["androidx.room_room-compiler-plugin"],
55
56    optimize: {
57        enabled: false,
58    },
59
60    privileged: true,
61
62    dex_preopt: {
63        enabled: false,
64    },
65
66    product_variables: {
67        pdk: {
68            enabled: false,
69        },
70    },
71}
72
73//##################################################################################
74// Duplicate of CarDialerApp which includes testing only resources for Robolectric #
75//##################################################################################
76
77android_app {
78    name: "CarDialerAppForTesting",
79
80    srcs: ["src/**/*.java"],
81
82    resource_dirs: [
83        "res",
84        "tests/robotests/res",
85    ],
86
87    platform_apis: true,
88
89    libs: ["android.car"],
90
91    static_libs: [
92        "androidx.recyclerview_recyclerview",
93        "androidx.lifecycle_lifecycle-extensions",
94        "androidx.preference_preference",
95        "androidx-constraintlayout_constraintlayout",
96        "androidx.legacy_legacy-support-v4",
97        "androidx.cardview_cardview",
98        "car-apps-common",
99        "car-arch-common",
100        "car-telephony-common",
101        "car-theme-lib",
102        "car-ui-lib",
103        "car-uxr-client-lib",
104        "androidx-constraintlayout_constraintlayout-solver",
105        "guava",
106        "glide-prebuilt",
107        "libphonenumber",
108        "androidx.sqlite_sqlite-framework",
109        "androidx.sqlite_sqlite",
110        "androidx.room_room-runtime",
111    ],
112
113    plugins: ["androidx.room_room-compiler-plugin"],
114
115    optimize: {
116        enabled: false,
117    },
118
119    privileged: true,
120
121    dex_preopt: {
122        enabled: false,
123    },
124
125    product_variables: {
126        pdk: {
127            enabled: false,
128        },
129    },
130}
131
132//##################################################################################
133