Yabin Huang | 59237eb | 2020-02-19 17:44:36 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | android_app { |
| 16 | name: "CarRotaryController", |
| 17 | srcs: ["src/**/*.java"], |
| 18 | resource_dirs: ["res"], |
Yabin Huang | 4091750 | 2020-03-31 11:30:17 -0700 | [diff] [blame] | 19 | |
| 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 Huang | 59237eb | 2020-02-19 17:44:36 -0800 | [diff] [blame] | 27 | optimize: { |
| 28 | enabled: false, |
| 29 | }, |
| 30 | dex_preopt: { |
| 31 | enabled: false, |
| 32 | }, |
Yabin Huang | 4091750 | 2020-03-31 11:30:17 -0700 | [diff] [blame] | 33 | libs: [ |
| 34 | "android.car", |
| 35 | ], |
Yabin Huang | 59237eb | 2020-02-19 17:44:36 -0800 | [diff] [blame] | 36 | static_libs: [ |
| 37 | "car-ui-lib", |
| 38 | ], |
| 39 | product_variables: { |
| 40 | pdk: { |
| 41 | enabled: false, |
| 42 | }, |
| 43 | }, |
| 44 | } |
Heemin Seog | 5343a0f | 2020-12-11 20:20:39 -0800 | [diff] [blame] | 45 | |
| 46 | android_library { |
| 47 | name: "CarRotaryControllerForUnitTesting", |
| 48 | |
| 49 | manifest: "tests/unit/AndroidManifest.xml", |
| 50 | |
| 51 | srcs: ["src/**/*.java"], |
| 52 | |
| 53 | resource_dirs: [ |
Heemin Seog | 0b83526 | 2020-12-23 14:57:56 -0800 | [diff] [blame^] | 54 | "tests/unit/res", |
Heemin Seog | 5343a0f | 2020-12-11 20:20:39 -0800 | [diff] [blame] | 55 | "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 | } |