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