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, |
| 24 | |
| 25 | optimize: { |
| 26 | enabled: false, |
| 27 | }, |
| 28 | |
| 29 | dex_preopt: { |
| 30 | enabled: false, |
| 31 | }, |
| 32 | |
| 33 | static_libs: [ |
| 34 | "androidx.car_car", |
| 35 | "androidx.palette_palette", |
| 36 | "car-theme-lib-bp", |
| 37 | "android.car.userlib", |
Brad Stenning | 1d6225f | 2018-12-14 13:51:59 -0800 | [diff] [blame] | 38 | "androidx-constraintlayout_constraintlayout-solver" |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 39 | ], |
| 40 | |
| 41 | libs: ["android.car"], |
| 42 | |
| 43 | product_variables: { |
| 44 | pdk: { |
| 45 | enabled: false, |
| 46 | }, |
| 47 | }, |
| 48 | } |
| 49 | |
| 50 | // As Lib |
| 51 | android_library { |
| 52 | name: "CarNotificationLib", |
| 53 | srcs: ["src/**/*.java"], |
| 54 | |
| 55 | resource_dirs: ["res"], |
| 56 | |
| 57 | manifest: "AndroidManifest-withoutActivity.xml", |
| 58 | |
| 59 | platform_apis: true, |
| 60 | |
| 61 | optimize: { |
| 62 | enabled: false, |
| 63 | }, |
| 64 | |
| 65 | dex_preopt: { |
| 66 | enabled: false, |
| 67 | }, |
| 68 | |
| 69 | static_libs: [ |
| 70 | "androidx.car_car", |
| 71 | "androidx.palette_palette", |
| 72 | "car-theme-lib-bp", |
| 73 | "android.car.userlib", |
Brad Stenning | 1d6225f | 2018-12-14 13:51:59 -0800 | [diff] [blame] | 74 | "androidx-constraintlayout_constraintlayout-solver" |
Brad Stenning | fb19813 | 2018-12-12 13:33:14 -0800 | [diff] [blame] | 75 | ], |
| 76 | |
| 77 | libs: ["android.car"], |
| 78 | |
| 79 | product_variables: { |
| 80 | pdk: { |
| 81 | enabled: false, |
| 82 | }, |
| 83 | }, |
| 84 | } |
Priaynk Singh | faaec8f | 2018-12-03 09:45:43 -0800 | [diff] [blame] | 85 | |
| 86 | // Duplicate of CarNotification which includes testing only resources for Robolectric |
| 87 | |
| 88 | android_app { |
| 89 | name: "CarNotificationForTesting", |
| 90 | |
| 91 | srcs: ["src/**/*.java"], |
| 92 | |
| 93 | resource_dirs: ["res"], |
| 94 | |
| 95 | platform_apis: true, |
| 96 | |
| 97 | optimize: { |
| 98 | enabled: false, |
| 99 | }, |
| 100 | |
| 101 | dex_preopt: { |
| 102 | enabled: false, |
| 103 | }, |
| 104 | |
| 105 | static_libs: [ |
| 106 | "androidx.car_car", |
| 107 | "androidx.palette_palette", |
| 108 | "car-theme-lib-bp", |
| 109 | "android.car.userlib", |
| 110 | "androidx-constraintlayout_constraintlayout-solver" |
| 111 | ], |
| 112 | |
| 113 | libs: ["android.car"], |
| 114 | |
| 115 | product_variables: { |
| 116 | pdk: { |
| 117 | enabled: false, |
| 118 | }, |
| 119 | }, |
| 120 | } |
| 121 | |
| 122 | // As Lib |
| 123 | android_library { |
| 124 | name: "CarNotificationModuleForTesting", |
| 125 | srcs: ["src/**/*.java"], |
| 126 | |
| 127 | resource_dirs: ["res"], |
| 128 | |
| 129 | manifest: "AndroidManifest-withoutActivity.xml", |
| 130 | |
| 131 | platform_apis: true, |
| 132 | |
| 133 | optimize: { |
| 134 | enabled: false, |
| 135 | }, |
| 136 | |
| 137 | dex_preopt: { |
| 138 | enabled: false, |
| 139 | }, |
| 140 | |
| 141 | static_libs: [ |
| 142 | "androidx.car_car", |
| 143 | "androidx.palette_palette", |
| 144 | "car-theme-lib-bp", |
| 145 | "android.car.userlib", |
| 146 | "androidx-constraintlayout_constraintlayout-solver" |
| 147 | ], |
| 148 | |
| 149 | libs: ["android.car"], |
| 150 | |
| 151 | product_variables: { |
| 152 | pdk: { |
| 153 | enabled: false, |
| 154 | }, |
| 155 | }, |
| 156 | } |
| 157 | |