Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | |
| 16 | android_app { |
| 17 | name: "CarNotification", |
| 18 | |
| 19 | srcs: ["src/**/*.java"], |
| 20 | |
| 21 | resource_dirs: ["res"], |
| 22 | |
| 23 | platform_apis: true, |
Uriel Sade | fc34718 | 2019-01-10 14:12:28 -0800 | [diff] [blame] | 24 | certificate: "platform", |
| 25 | privileged: true, |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 26 | |
| 27 | optimize: { |
| 28 | enabled: false, |
| 29 | }, |
| 30 | |
| 31 | dex_preopt: { |
| 32 | enabled: false, |
| 33 | }, |
| 34 | |
| 35 | static_libs: [ |
Heemin Seog | d66bad5 | 2019-03-15 16:43:11 -0700 | [diff] [blame] | 36 | "androidx.cardview_cardview", |
| 37 | "androidx.recyclerview_recyclerview", |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 38 | "androidx.palette_palette", |
Uriel Sade | 48e479e | 2018-12-03 10:50:29 -0800 | [diff] [blame] | 39 | "car-assist-client-lib", |
Danny Epstein | 1b080de | 2020-05-19 20:22:49 -0700 | [diff] [blame] | 40 | "car-ui-lib", |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 41 | "android.car.userlib", |
Alex Stetson | 30dbdac | 2020-07-16 14:10:44 -0700 | [diff] [blame] | 42 | "androidx-constraintlayout_constraintlayout", |
| 43 | "car-uxr-client-lib" |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 44 | ], |
| 45 | |
| 46 | libs: ["android.car"], |
| 47 | |
| 48 | product_variables: { |
| 49 | pdk: { |
| 50 | enabled: false, |
| 51 | }, |
| 52 | }, |
| 53 | } |
| 54 | |
Priyank Singh | 98d2081 | 2019-06-19 14:01:08 -0700 | [diff] [blame] | 55 | // Duplicate of CarNotification which includes testing only resources for Robolectric |
| 56 | android_app { |
| 57 | name: "CarNotificationForTesting", |
| 58 | |
| 59 | srcs: ["src/**/*.java"], |
| 60 | |
| 61 | // Testing only resources must be applied last so they take precedence. |
| 62 | resource_dirs: [ |
| 63 | "res", |
| 64 | "tests/robotests/res", |
| 65 | ], |
| 66 | |
| 67 | platform_apis: true, |
| 68 | certificate: "platform", |
| 69 | privileged: true, |
| 70 | |
| 71 | optimize: { |
| 72 | enabled: false, |
| 73 | }, |
| 74 | |
| 75 | dex_preopt: { |
| 76 | enabled: false, |
| 77 | }, |
| 78 | |
| 79 | static_libs: [ |
| 80 | "androidx.cardview_cardview", |
| 81 | "androidx.recyclerview_recyclerview", |
| 82 | "androidx.palette_palette", |
| 83 | "car-assist-client-lib", |
Danny Epstein | 1b080de | 2020-05-19 20:22:49 -0700 | [diff] [blame] | 84 | "car-ui-lib", |
Priyank Singh | 98d2081 | 2019-06-19 14:01:08 -0700 | [diff] [blame] | 85 | "android.car.userlib", |
Alex Stetson | 30dbdac | 2020-07-16 14:10:44 -0700 | [diff] [blame] | 86 | "androidx-constraintlayout_constraintlayout", |
| 87 | "car-uxr-client-lib", |
Priyank Singh | 98d2081 | 2019-06-19 14:01:08 -0700 | [diff] [blame] | 88 | ], |
| 89 | |
| 90 | libs: ["android.car"], |
| 91 | |
| 92 | product_variables: { |
| 93 | pdk: { |
| 94 | enabled: false, |
| 95 | }, |
| 96 | }, |
| 97 | } |
| 98 | |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 99 | // As Lib |
| 100 | android_library { |
| 101 | name: "CarNotificationLib", |
| 102 | srcs: ["src/**/*.java"], |
| 103 | |
| 104 | resource_dirs: ["res"], |
| 105 | |
| 106 | manifest: "AndroidManifest-withoutActivity.xml", |
| 107 | |
| 108 | platform_apis: true, |
| 109 | |
| 110 | optimize: { |
| 111 | enabled: false, |
| 112 | }, |
| 113 | |
| 114 | dex_preopt: { |
| 115 | enabled: false, |
| 116 | }, |
| 117 | |
| 118 | static_libs: [ |
Heemin Seog | d66bad5 | 2019-03-15 16:43:11 -0700 | [diff] [blame] | 119 | "androidx.cardview_cardview", |
| 120 | "androidx.recyclerview_recyclerview", |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 121 | "androidx.palette_palette", |
Uriel Sade | 48e479e | 2018-12-03 10:50:29 -0800 | [diff] [blame] | 122 | "car-assist-client-lib", |
Danny Epstein | c49e7b8 | 2020-08-05 15:26:03 -0700 | [diff] [blame] | 123 | "car-ui-lib", |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 124 | "android.car.userlib", |
Alex Stetson | 30dbdac | 2020-07-16 14:10:44 -0700 | [diff] [blame] | 125 | "androidx-constraintlayout_constraintlayout", |
| 126 | "car-uxr-client-lib", |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 127 | ], |
| 128 | |
| 129 | libs: ["android.car"], |
| 130 | |
| 131 | product_variables: { |
| 132 | pdk: { |
| 133 | enabled: false, |
| 134 | }, |
| 135 | }, |
| 136 | } |