Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 1 | // 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 | |
| 15 | android_app { |
| 16 | name: "CarSettings", |
| 17 | overrides: ["Settings"], |
| 18 | platform_apis: true, |
| 19 | |
| 20 | srcs: ["src/**/*.java"], |
| 21 | |
| 22 | libs: [ |
| 23 | "android.car", |
Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 24 | ], |
| 25 | |
| 26 | static_libs: [ |
| 27 | "androidx.lifecycle_lifecycle-common-java8", |
| 28 | "androidx.lifecycle_lifecycle-extensions", |
| 29 | "androidx.preference_preference", |
| 30 | "androidx-constraintlayout_constraintlayout", |
JianYang Liu | 7699d2b | 2020-01-06 15:36:48 -0800 | [diff] [blame] | 31 | "androidx.test.core", |
Colin Cross | 3bfc45f | 2020-01-08 11:11:26 -0800 | [diff] [blame] | 32 | "car-apps-common", |
Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 33 | "car-setup-wizard-lib-utils", |
| 34 | "SettingsLib", |
| 35 | "android.car.userlib", |
| 36 | "androidx-constraintlayout_constraintlayout-solver", |
| 37 | "jsr305", |
Colin Cross | 3bfc45f | 2020-01-08 11:11:26 -0800 | [diff] [blame] | 38 | "car-ui-lib", |
Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 39 | ], |
| 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 |
| 65 | android_app { |
| 66 | name: "CarSettingsForTesting", |
Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 67 | platform_apis: true, |
| 68 | |
| 69 | srcs: ["src/**/*.java"], |
| 70 | |
| 71 | libs: [ |
| 72 | "android.car", |
Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 73 | ], |
| 74 | |
| 75 | static_libs: [ |
| 76 | "androidx.lifecycle_lifecycle-common-java8", |
| 77 | "androidx.lifecycle_lifecycle-extensions", |
| 78 | "androidx.preference_preference", |
| 79 | "androidx-constraintlayout_constraintlayout", |
JianYang Liu | 7699d2b | 2020-01-06 15:36:48 -0800 | [diff] [blame] | 80 | "androidx.test.core", |
Colin Cross | 3bfc45f | 2020-01-08 11:11:26 -0800 | [diff] [blame] | 81 | "car-apps-common", |
Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 82 | "car-setup-wizard-lib-utils", |
| 83 | "SettingsLib", |
| 84 | "android.car.userlib", |
| 85 | "androidx-constraintlayout_constraintlayout-solver", |
| 86 | "jsr305", |
Colin Cross | 3bfc45f | 2020-01-08 11:11:26 -0800 | [diff] [blame] | 87 | "car-ui-lib", |
Heemin Seog | 7024b37 | 2019-06-11 17:03:01 -0700 | [diff] [blame] | 88 | ], |
| 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 | } |