blob: 73447cafeef47ac9c82b04cc65cd6bb9ab2848aa [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
Danny Epstein346b25c2021-03-05 10:28:23 -080020 // This app uses allowlisted privileged permissions.
21 required: ["allowed_privapp_com.android.car.rotary"],
22
Yabin Huang40917502020-03-31 11:30:17 -070023 // Because it uses a platform API (CarInputManager).
24 platform_apis: true,
25
26 // This app should be platform signed because it requires android.permission.MONITOR_INPUT
27 // permission, which is of type "signature".
28 certificate: "platform",
29
Danny Epstein346b25c2021-03-05 10:28:23 -080030 // This app uses allowlisted privileged permissions.
31 privileged: true,
32
Yabin Huang59237eb2020-02-19 17:44:36 -080033 optimize: {
34 enabled: false,
35 },
36 dex_preopt: {
37 enabled: false,
38 },
Yabin Huang40917502020-03-31 11:30:17 -070039 libs: [
40 "android.car",
41 ],
Yabin Huang59237eb2020-02-19 17:44:36 -080042 static_libs: [
43 "car-ui-lib",
44 ],
45 product_variables: {
46 pdk: {
47 enabled: false,
48 },
49 },
50}
Heemin Seog5343a0f2020-12-11 20:20:39 -080051
52android_library {
53 name: "CarRotaryControllerForUnitTesting",
54
55 manifest: "tests/unit/AndroidManifest.xml",
56
57 srcs: ["src/**/*.java"],
58
59 resource_dirs: [
Heemin Seog0b835262020-12-23 14:57:56 -080060 "tests/unit/res",
Heemin Seog5343a0f2020-12-11 20:20:39 -080061 "res",
62 ],
63
64 platform_apis: true,
65
66 optimize: {
67 enabled: false,
68 },
69 dex_preopt: {
70 enabled: false,
71 },
72 libs: [
73 "android.car",
74 ],
75 static_libs: [
76 "car-ui-lib",
77 ],
78 product_variables: {
79 pdk: {
80 enabled: false,
81 },
82 },
83
84 aaptflags: ["--extra-packages com.android.car.rotary"],
85}