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