Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
Brad Stenning | b896c58 | 2019-09-11 11:40:45 -0700 | [diff] [blame] | 16 | android_library { |
| 17 | name: "CarSystemUI-core", |
Brad Stenning | 5583295 | 2018-08-27 08:39:30 -0700 | [diff] [blame] | 18 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 19 | srcs: [ |
| 20 | "src/**/*.java", |
| 21 | "src/**/I*.aidl", |
| 22 | ], |
| 23 | |
Brad Stenning | b896c58 | 2019-09-11 11:40:45 -0700 | [diff] [blame] | 24 | resource_dirs: [ |
| 25 | "res-keyguard", |
| 26 | "res", |
| 27 | ], |
| 28 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 29 | static_libs: [ |
| 30 | "SystemUI-core", |
Dave Mankoff | 1a0e382 | 2019-07-03 13:26:55 -0400 | [diff] [blame] | 31 | "CarNotificationLib", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 32 | "SystemUIPluginLib", |
| 33 | "SystemUISharedLib", |
| 34 | "SettingsLib", |
Ying Zheng | 149f938 | 2018-11-02 15:46:07 -0700 | [diff] [blame] | 35 | "android.car.userlib", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 36 | "androidx.legacy_legacy-support-v4", |
| 37 | "androidx.recyclerview_recyclerview", |
| 38 | "androidx.preference_preference", |
| 39 | "androidx.appcompat_appcompat", |
| 40 | "androidx.mediarouter_mediarouter", |
| 41 | "androidx.palette_palette", |
| 42 | "androidx.legacy_legacy-preference-v14", |
| 43 | "androidx.leanback_leanback", |
| 44 | "androidx.slice_slice-core", |
| 45 | "androidx.slice_slice-view", |
| 46 | "androidx.slice_slice-builders", |
| 47 | "androidx.arch.core_core-runtime", |
| 48 | "androidx.lifecycle_lifecycle-extensions", |
| 49 | "SystemUI-tags", |
| 50 | "SystemUI-proto", |
Govinda Wasserman | 8d49d0d | 2019-08-22 16:51:48 -0400 | [diff] [blame] | 51 | "dagger2-2.19", |
| 52 | "//external/kotlinc:kotlin-annotations", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 53 | ], |
| 54 | |
| 55 | libs: [ |
| 56 | "telephony-common", |
| 57 | "android.car", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 58 | ], |
| 59 | |
| 60 | manifest: "AndroidManifest.xml", |
| 61 | |
Brad Stenning | b896c58 | 2019-09-11 11:40:45 -0700 | [diff] [blame] | 62 | plugins: ["dagger2-compiler-2.19"], |
| 63 | |
| 64 | } |
| 65 | |
Heemin Seog | d0cfab0 | 2019-10-23 16:52:31 -0700 | [diff] [blame^] | 66 | android_library { |
| 67 | name: "CarSystemUI-tests", |
| 68 | manifest: "tests/AndroidManifest.xml", |
| 69 | resource_dirs: [ |
| 70 | "tests/res", |
| 71 | "res-keyguard", |
| 72 | "res", |
| 73 | ], |
| 74 | srcs: [ |
| 75 | "tests/src/**/*.java", |
| 76 | "src/**/*.java", |
| 77 | "src/**/I*.aidl", |
| 78 | ], |
| 79 | static_libs: [ |
| 80 | "SystemUI-tests", |
| 81 | "CarNotificationLib", |
| 82 | "SystemUIPluginLib", |
| 83 | "SystemUISharedLib", |
| 84 | "SettingsLib", |
| 85 | "android.car.userlib", |
| 86 | "androidx.legacy_legacy-support-v4", |
| 87 | "androidx.recyclerview_recyclerview", |
| 88 | "androidx.preference_preference", |
| 89 | "androidx.appcompat_appcompat", |
| 90 | "androidx.mediarouter_mediarouter", |
| 91 | "androidx.palette_palette", |
| 92 | "androidx.legacy_legacy-preference-v14", |
| 93 | "androidx.leanback_leanback", |
| 94 | "androidx.slice_slice-core", |
| 95 | "androidx.slice_slice-view", |
| 96 | "androidx.slice_slice-builders", |
| 97 | "androidx.arch.core_core-runtime", |
| 98 | "androidx.lifecycle_lifecycle-extensions", |
| 99 | "SystemUI-tags", |
| 100 | "SystemUI-proto", |
| 101 | "metrics-helper-lib", |
| 102 | "androidx.test.rules", "hamcrest-library", |
| 103 | "mockito-target-inline-minus-junit4", |
| 104 | "testables", |
| 105 | "truth-prebuilt", |
| 106 | "dagger2-2.19", |
| 107 | "//external/kotlinc:kotlin-annotations", |
| 108 | ], |
| 109 | libs: [ |
| 110 | "android.test.runner", |
| 111 | "telephony-common", |
| 112 | "android.test.base", |
| 113 | "android.car", |
| 114 | ], |
| 115 | |
| 116 | aaptflags: [ |
| 117 | "--extra-packages", |
| 118 | "com.android.systemui", |
| 119 | ], |
| 120 | |
| 121 | plugins: ["dagger2-compiler-2.19"], |
| 122 | } |
| 123 | |
Brad Stenning | b896c58 | 2019-09-11 11:40:45 -0700 | [diff] [blame] | 124 | android_app { |
| 125 | name: "CarSystemUI", |
| 126 | |
| 127 | static_libs: [ |
| 128 | "CarSystemUI-core", |
| 129 | ], |
| 130 | |
| 131 | libs: [ |
| 132 | "telephony-common", |
| 133 | "android.car", |
| 134 | ], |
| 135 | |
| 136 | resource_dirs: [], |
| 137 | |
| 138 | overrides: [ |
| 139 | "SystemUI", |
| 140 | ], |
| 141 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 142 | platform_apis: true, |
Nicholas Sauer | 1564057 | 2019-02-28 09:54:37 -0800 | [diff] [blame] | 143 | product_specific: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 144 | certificate: "platform", |
| 145 | privileged: true, |
| 146 | |
| 147 | optimize: { |
| 148 | proguard_flags_files: [ |
| 149 | "proguard.flags", |
| 150 | ], |
| 151 | }, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 152 | dxflags: ["--multi-dex"], |
| 153 | |
| 154 | aaptflags: [ |
| 155 | "--extra-packages", |
| 156 | "com.android.keyguard", |
| 157 | ], |
| 158 | |
Brad Stenning | b896c58 | 2019-09-11 11:40:45 -0700 | [diff] [blame] | 159 | kotlincflags: ["-Xjvm-default=enable"], |
| 160 | |
Colin Cross | a3b22bf | 2019-01-23 15:38:30 -0800 | [diff] [blame] | 161 | plugins: ["dagger2-compiler-2.19"], |
Nicholas Sauer | 1564057 | 2019-02-28 09:54:37 -0800 | [diff] [blame] | 162 | |
| 163 | required: ["privapp_whitelist_com.android.systemui"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 164 | } |