1// 2// Copyright (C) 2015 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// 16 17android_app { 18 name: "CarDialerApp", 19 20 srcs: ["src/**/*.java"], 21 22 resource_dirs: ["res"], 23 24 platform_apis: true, 25 26 required: ["privapp_whitelist_com.android.car.dialer"], 27 28 overrides: ["Dialer"], 29 30 libs: ["android.car"], 31 32 static_libs: [ 33 "androidx.recyclerview_recyclerview", 34 "androidx.lifecycle_lifecycle-extensions", 35 "androidx.preference_preference", 36 "androidx-constraintlayout_constraintlayout", 37 "androidx.legacy_legacy-support-v4", 38 "androidx.cardview_cardview", 39 "car-apps-common", 40 "car-arch-common", 41 "car-telephony-common", 42 "car-theme-lib", 43 "car-ui-lib", 44 "androidx-constraintlayout_constraintlayout-solver", 45 "guava", 46 "glide-prebuilt", 47 "libphonenumber", 48 "androidx.sqlite_sqlite-framework", 49 "androidx.sqlite_sqlite", 50 "androidx.room_room-runtime", 51 ], 52 53 plugins: ["androidx.room_room-compiler-plugin"], 54 55 optimize: { 56 enabled: false, 57 }, 58 59 privileged: true, 60 61 dex_preopt: { 62 enabled: false, 63 }, 64 65 product_variables: { 66 pdk: { 67 enabled: false, 68 }, 69 }, 70} 71 72//################################################################################## 73// Duplicate of CarDialerApp which includes testing only resources for Robolectric # 74//################################################################################## 75 76android_app { 77 name: "CarDialerAppForTesting", 78 79 srcs: ["src/**/*.java"], 80 81 resource_dirs: [ 82 "res", 83 "tests/robotests/res", 84 ], 85 86 platform_apis: true, 87 88 libs: ["android.car"], 89 90 static_libs: [ 91 "androidx.recyclerview_recyclerview", 92 "androidx.lifecycle_lifecycle-extensions", 93 "androidx.preference_preference", 94 "androidx-constraintlayout_constraintlayout", 95 "androidx.legacy_legacy-support-v4", 96 "androidx.cardview_cardview", 97 "car-apps-common", 98 "car-arch-common", 99 "car-telephony-common", 100 "car-theme-lib", 101 "car-ui-lib", 102 "androidx-constraintlayout_constraintlayout-solver", 103 "guava", 104 "glide-prebuilt", 105 "libphonenumber", 106 "androidx.sqlite_sqlite-framework", 107 "androidx.sqlite_sqlite", 108 "androidx.room_room-runtime", 109 ], 110 111 plugins: ["androidx.room_room-compiler-plugin"], 112 113 optimize: { 114 enabled: false, 115 }, 116 117 privileged: true, 118 119 dex_preopt: { 120 enabled: false, 121 }, 122 123 product_variables: { 124 pdk: { 125 enabled: false, 126 }, 127 }, 128} 129 130//################################################################################## 131