blob: 490338f63427be5b434ab338c94fb77709ecfe0c [file] [log] [blame]
Sasha Smundak3fe49a52019-01-28 14:47:22 -08001// Build the Telecom service.
2android_app {
3 name: "Telecom",
4 libs: ["telephony-common"],
Michael W140c6772019-11-17 15:21:12 +01005 static_libs: [
6 "org.lineageos.platform.internal",
7 "org.lineageos.lib.phone",
8 ],
Sasha Smundak3fe49a52019-01-28 14:47:22 -08009 srcs: [
10 "src/**/*.java",
11 "proto/**/*.proto",
12 ],
13 resource_dirs: ["res"],
14 proto: {
15 type: "nano",
16 local_include_dirs: ["proto/"],
17 output_params: ["optional_field_style=accessors"],
18 },
19 platform_apis: true,
20 certificate: "platform",
21 privileged: true,
22 optimize: {
23 proguard_flags_files: ["proguard.flags"],
24 },
25 defaults: ["SettingsLibDefaults"],
26}
27
28android_test {
29 name: "TelecomUnitTests",
30 static_libs: [
31 "android-ex-camera2",
32 "guava",
33 "mockito-target-inline",
KOUSHIK PANUGANTI7d111662019-03-15 15:46:39 -070034 "androidx.test.rules",
Sasha Smundak3fe49a52019-01-28 14:47:22 -080035 "platform-test-annotations",
36 "androidx.legacy_legacy-support-core-ui",
37 "androidx.legacy_legacy-support-core-utils",
38 "androidx.core_core",
39 "androidx.fragment_fragment",
40 ],
41 srcs: [
42 "tests/src/**/*.java",
43 "src/**/*.java",
44 "proto/**/*.proto",
45 ],
46 proto: {
47 type: "nano",
48 local_include_dirs: ["proto/"],
49 output_params: ["optional_field_style=accessors"],
50 },
51 resource_dirs: [
52 "tests/res",
53 "res",
54 ],
55 libs: [
56 "android.test.mock",
57 "android.test.base",
58 "android.test.runner",
59 "telephony-common",
60 ],
61
62 jni_libs: ["libdexmakerjvmtiagent"],
63
64 aaptflags: [
65 "--auto-add-overlay",
66 "--extra-packages",
67 "com.android.server.telecom",
68 ],
69 manifest: "tests/AndroidManifest.xml",
70 optimize: {
71 enabled: false,
72 },
73 platform_apis: true,
74 certificate: "platform",
75 jacoco: {
76 include_filter: ["com.android.server.telecom.*"],
77 exclude_filter: ["com.android.server.telecom.tests.*"],
78 },
79 test_suites: ["device-tests"],
80 defaults: ["SettingsLibDefaults"],
81}