blob: b7448ae29e760d05b20eb3361142becb85a42bda [file] [log] [blame]
Heemin Seog7024b372019-06-11 17:03:01 -07001// Copyright (C) 2019 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
15android_app {
16 name: "CarSettings",
17 overrides: ["Settings"],
18 platform_apis: true,
19
20 srcs: ["src/**/*.java"],
21
22 libs: [
23 "android.car",
Heemin Seog7024b372019-06-11 17:03:01 -070024 ],
25
26 static_libs: [
27 "androidx.lifecycle_lifecycle-common-java8",
28 "androidx.lifecycle_lifecycle-extensions",
29 "androidx.preference_preference",
30 "androidx-constraintlayout_constraintlayout",
JianYang Liu7699d2b2020-01-06 15:36:48 -080031 "androidx.test.core",
Colin Cross3bfc45f2020-01-08 11:11:26 -080032 "car-apps-common",
Heemin Seog7024b372019-06-11 17:03:01 -070033 "car-setup-wizard-lib-utils",
34 "SettingsLib",
35 "android.car.userlib",
36 "androidx-constraintlayout_constraintlayout-solver",
37 "jsr305",
Colin Cross3bfc45f2020-01-08 11:11:26 -080038 "car-ui-lib",
Heemin Seog7024b372019-06-11 17:03:01 -070039 ],
40
41 certificate: "platform",
42
43 optimize: {
44 enabled: false,
45 },
46
47 privileged: true,
48
49 dex_preopt: {
50 enabled: false,
51 },
52
53 required: ["privapp_whitelist_com.android.car.settings"],
54
55 dxflags: ["--multi-dex"],
56
57 product_variables: {
58 pdk: {
59 enabled: false,
60 },
61 },
62}
63
64// Duplicate of CarSettings which includes testing only resources for Robolectric
65android_app {
66 name: "CarSettingsForTesting",
Heemin Seog7024b372019-06-11 17:03:01 -070067 platform_apis: true,
68
69 srcs: ["src/**/*.java"],
70
71 libs: [
72 "android.car",
Heemin Seog7024b372019-06-11 17:03:01 -070073 ],
74
75 static_libs: [
76 "androidx.lifecycle_lifecycle-common-java8",
77 "androidx.lifecycle_lifecycle-extensions",
78 "androidx.preference_preference",
79 "androidx-constraintlayout_constraintlayout",
JianYang Liu7699d2b2020-01-06 15:36:48 -080080 "androidx.test.core",
Colin Cross3bfc45f2020-01-08 11:11:26 -080081 "car-apps-common",
Heemin Seog7024b372019-06-11 17:03:01 -070082 "car-setup-wizard-lib-utils",
83 "SettingsLib",
84 "android.car.userlib",
85 "androidx-constraintlayout_constraintlayout-solver",
86 "jsr305",
Colin Cross3bfc45f2020-01-08 11:11:26 -080087 "car-ui-lib",
Heemin Seog7024b372019-06-11 17:03:01 -070088 ],
89
90 // Testing only resources must be applied last so they take precedence.
91 resource_dirs: [
92 "res",
93 "tests/robotests/res",
94 ],
95
96 certificate: "platform",
97
98 optimize: {
99 enabled: false,
100 },
101
102 privileged: true,
103
104 dex_preopt: {
105 enabled: false,
106 },
107
108 dxflags: ["--multi-dex"],
109
110 product_variables: {
111 pdk: {
112 enabled: false,
113 },
114 },
115}