1// 2// Copyright (C) 2020 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 17// Choose only one dependency to depend on. 18 19// A library that wires Dialer with a real Android Framework implementation. 20package { 21 default_applicable_licenses: ["Android-Apache-2.0"], 22} 23 24android_library { 25 name: "car-dialer-framework-dep", 26 // required to access any private API. 27 sdk_version: "system_current", 28 29 min_sdk_version: "29", 30 31 target_sdk_version: "31", 32 33 manifest: "real/AndroidManifest.xml", 34 35 srcs: ["src/**/*.java", "real/src/**/*.java"], 36 37 static_libs: [ 38 "androidx.annotation_annotation", 39 "androidx.core_core", 40 "hilt_android", 41 ], 42} 43 44// A library that connects with a fake Android Framework implementation. 45// Link against this dependency will allow Dialer app to run without a paired phone. 46android_library { 47 name: "car-dialer-fake-framework-dep", 48 49 // required to access any private API and spy() on any framework class. 50 sdk_version: "system_current", 51 52 min_sdk_version: "29", 53 54 target_sdk_version: "31", 55 56 manifest: "fake/AndroidManifest.xml", 57 58 srcs: ["src/**/*.java", "fake/src/**/*.java"], 59 60 asset_dirs: [ 61 "fake/assets", 62 ], 63 64 static_libs: [ 65 "car-telephony-common", 66 "car-apps-common", 67 "androidx.annotation_annotation", 68 "androidx.core_core", 69 "androidx.legacy_legacy-support-v4", 70 "gson-prebuilt-jar", 71 "guava", 72 "hilt_android", 73 "mockito-target-extended-minus-junit4", 74 ], 75 76} 77