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
15// Build the Phone app which includes the emergency dialer. See Contacts
16// for the 'other' dialer.
17
18package {
19    default_applicable_licenses: ["packages_services_Telephony_license"],
20}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25    name: "packages_services_Telephony_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29    ],
30    license_text: [
31        "NOTICE",
32    ],
33}
34
35android_app {
36    name: "TeleService",
37
38    libs: [
39        "telephony-common",
40        "voip-common",
41        "ims-common",
42        "libprotobuf-java-lite",
43        "unsupportedappusage",
44        "org.apache.http.legacy",
45    ],
46
47    static_libs: [
48        "androidx.appcompat_appcompat",
49        "androidx.preference_preference",
50        "androidx.recyclerview_recyclerview",
51        "androidx.legacy_legacy-preference-v14",
52        "android-support-annotations",
53        "com.android.phone.common-lib",
54        "guava",
55        "PlatformProperties",
56        "modules-utils-os",
57        "nist-sip",
58    ],
59
60    srcs: [
61        ":framework-telephony-common-shared-srcs",
62        "src/**/*.java",
63        "sip/src/**/*.java",
64        "ecc/proto/**/*.proto",
65        "src/com/android/phone/EventLogTags.logtags",
66    ],
67
68    jarjar_rules: ":jarjar-rules-shared",
69
70    resource_dirs: [
71        "res",
72        "sip/res",
73    ],
74
75    asset_dirs: [
76        "assets",
77        "ecc/output",
78    ],
79
80    aaptflags: [
81        "--extra-packages com.android.services.telephony.sip",
82    ],
83
84    platform_apis: true,
85
86    certificate: "platform",
87    privileged: true,
88
89    optimize: {
90        proguard_flags_files: [
91            "proguard.flags",
92            "sip/proguard.flags",
93        ],
94    },
95
96    proto: {
97        type: "lite",
98    },
99}
100