blob: a4cb2ca270809ea7dd20977c4b591a750b78794c [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",
koushik panuganti5fb84992019-03-19 23:10:05 -070030 "androidx.test.rules",
Sasha Smundak4bef6152019-02-06 10:26:09 -080031 "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",
Brad Ebinger81e8a252019-11-11 16:59:44 -080036 "androidx.test.ext.junit"
Sasha Smundak4bef6152019-02-06 10:26:09 -080037 ],
38 srcs: [
39 "tests/src/**/*.java",
40 "src/**/*.java",
41 "proto/**/*.proto",
42 ],
43 proto: {
44 type: "nano",
45 local_include_dirs: ["proto/"],
46 output_params: ["optional_field_style=accessors"],
47 },
48 resource_dirs: [
49 "tests/res",
50 "res",
51 ],
52 libs: [
53 "android.test.mock",
54 "android.test.base",
55 "android.test.runner",
56 "telephony-common",
57 ],
58
59 jni_libs: ["libdexmakerjvmtiagent"],
60
61 aaptflags: [
62 "--auto-add-overlay",
63 "--extra-packages",
64 "com.android.server.telecom",
65 ],
66 manifest: "tests/AndroidManifest.xml",
67 optimize: {
68 enabled: false,
69 },
70 platform_apis: true,
71 certificate: "platform",
72 jacoco: {
73 include_filter: ["com.android.server.telecom.*"],
74 exclude_filter: ["com.android.server.telecom.tests.*"],
75 },
76 test_suites: ["device-tests"],
77 defaults: ["SettingsLibDefaults"],
78}