1// Copyright 2019 Google Inc. All rights reserved. 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 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20// Build the Phone app which includes the emergency dialer. See Contacts 21// for the 'other' dialer. 22android_app { 23 name: "TeleService", 24 25 libs: [ 26 "telephony-common", 27 "voip-common", 28 "ims-common", 29 "libprotobuf-java-lite", 30 "app-compat-annotations", 31 "unsupportedappusage", 32 "org.apache.http.legacy", 33 ], 34 35 static_libs: [ 36 "androidx.appcompat_appcompat", 37 "androidx.preference_preference", 38 "androidx.recyclerview_recyclerview", 39 "androidx.legacy_legacy-preference-v14", 40 "android-support-annotations", 41 "com.android.phone.common-lib", 42 "guava", 43 "PlatformProperties", 44 "modules-utils-fastxmlserializer", 45 "modules-utils-os", 46 "nist-sip", 47 "service-entitlement", 48 "android.permission.flags-aconfig-java-export", 49 "satellite-s2storage-ro", 50 "s2-geometry-library-java", 51 "dropbox_flags_lib", 52 ], 53 54 srcs: [ 55 ":framework-telephony-common-shared-srcs", 56 "src/**/*.java", 57 "ecc/proto/**/*.proto", 58 "src/com/android/phone/EventLogTags.logtags", 59 ], 60 61 jarjar_rules: ":jarjar-rules-shared", 62 63 resource_dirs: [ 64 "res", 65 ], 66 67 asset_dirs: [ 68 "assets", 69 "ecc/output", 70 ], 71 72 platform_apis: true, 73 74 certificate: "platform", 75 privileged: true, 76 77 optimize: { 78 proguard_flags_files: [ 79 "proguard.flags", 80 ], 81 }, 82 83 proto: { 84 type: "lite", 85 }, 86 87 generate_product_characteristics_rro: true, 88} 89 90// Allow other applications to use public constants from SlicePurchaseController 91java_library { 92 name: "SlicePurchaseController", 93 srcs: ["src/com/android/phone/slice/*.java",], 94 libs: [ 95 "telephony-common", 96 "service-entitlement" 97 ], 98} 99 100platform_compat_config { 101 name: "TeleService-platform-compat-config", 102 src: ":TeleService", 103} 104 105