blob: e8946da68df74271cfb6ef12083384affae3acb4 [file] [log] [blame]
Amit Mahajan77221792019-10-17 12:12:30 -07001// 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
18android_app {
Amit Mahajan14e676a2019-12-09 23:38:25 -080019 name: "TeleServiceLib",
Amit Mahajan77221792019-10-17 12:12:30 -070020
21 libs: [
22 "telephony-common",
23 "voip-common",
24 "ims-common",
25 "org.apache.http.legacy",
26 "libprotobuf-java-lite",
27 ],
28
29 static_libs: [
30 "androidx.appcompat_appcompat",
31 "androidx.preference_preference",
32 "androidx.recyclerview_recyclerview",
33 "androidx.legacy_legacy-preference-v14",
34 "guava",
35 "volley",
36 "android-support-annotations",
37 "com.android.phone.common-lib",
38 ],
39
40 srcs: [
41 "src/**/*.java",
42 "sip/src/**/*.java",
43 "ecc/proto/**/*.proto",
44 "src/com/android/phone/EventLogTags.logtags",
45 ],
46
47 resource_dirs: [
48 "res",
49 "sip/res",
50 ],
51
52 asset_dirs: [
53 "assets",
54 "ecc/output",
55 ],
56
57 aaptflags: [
58 "--extra-packages com.android.services.telephony.sip",
Amit Mahajan14e676a2019-12-09 23:38:25 -080059 "--shared-lib",
60 "--extra-packages com.android.phone",
Amit Mahajan77221792019-10-17 12:12:30 -070061 ],
62
Amit Mahajan14e676a2019-12-09 23:38:25 -080063 export_package_resources: true,
64
Amit Mahajan77221792019-10-17 12:12:30 -070065 platform_apis: true,
66
67 certificate: "platform",
68 privileged: true,
69
70 optimize: {
71 proguard_flags_files: [
72 "proguard.flags",
73 "sip/proguard.flags",
Amit Mahajan14e676a2019-12-09 23:38:25 -080074 "proguard.proguard",
Amit Mahajan77221792019-10-17 12:12:30 -070075 ],
76 },
77
78 defaults: ["SettingsLibDefaults"],
79
80 proto: {
81 type: "lite",
82 },
83}