blob: 7c3a17e05b3c00f442d735a550fcb18d36017868 [file] [log] [blame]
Yabin Huang59237eb2020-02-19 17:44:36 -08001// Copyright (C) 2020 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: "CarRotaryController",
17 srcs: ["src/**/*.java"],
18 resource_dirs: ["res"],
Yabin Huang40917502020-03-31 11:30:17 -070019
20 // Because it uses a platform API (CarInputManager).
21 platform_apis: true,
22
23 // This app should be platform signed because it requires android.permission.MONITOR_INPUT
24 // permission, which is of type "signature".
25 certificate: "platform",
26
Yabin Huang59237eb2020-02-19 17:44:36 -080027 optimize: {
28 enabled: false,
29 },
30 dex_preopt: {
31 enabled: false,
32 },
Yabin Huang40917502020-03-31 11:30:17 -070033 libs: [
34 "android.car",
35 ],
Yabin Huang59237eb2020-02-19 17:44:36 -080036 static_libs: [
37 "car-ui-lib",
38 ],
39 product_variables: {
40 pdk: {
41 enabled: false,
42 },
43 },
44}
Heemin Seog5343a0f2020-12-11 20:20:39 -080045
46android_library {
47 name: "CarRotaryControllerForUnitTesting",
48
49 manifest: "tests/unit/AndroidManifest.xml",
50
51 srcs: ["src/**/*.java"],
52
53 resource_dirs: [
Heemin Seog0b835262020-12-23 14:57:56 -080054 "tests/unit/res",
Heemin Seog5343a0f2020-12-11 20:20:39 -080055 "res",
56 ],
57
58 platform_apis: true,
59
60 optimize: {
61 enabled: false,
62 },
63 dex_preopt: {
64 enabled: false,
65 },
66 libs: [
67 "android.car",
68 ],
69 static_libs: [
70 "car-ui-lib",
71 ],
72 product_variables: {
73 pdk: {
74 enabled: false,
75 },
76 },
77
78 aaptflags: ["--extra-packages com.android.car.rotary"],
79}