Sasha Smundak | 3fe49a5 | 2019-01-28 14:47:22 -0800 | [diff] [blame] | 1 | // Build the Telecom service. |
| 2 | android_app { |
| 3 | name: "Telecom", |
| 4 | libs: ["telephony-common"], |
Michael W | 140c677 | 2019-11-17 15:21:12 +0100 | [diff] [blame] | 5 | static_libs: [ |
| 6 | "org.lineageos.platform.internal", |
| 7 | "org.lineageos.lib.phone", |
| 8 | ], |
Sasha Smundak | 3fe49a5 | 2019-01-28 14:47:22 -0800 | [diff] [blame] | 9 | 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 | |
| 28 | android_test { |
| 29 | name: "TelecomUnitTests", |
| 30 | static_libs: [ |
| 31 | "android-ex-camera2", |
| 32 | "guava", |
| 33 | "mockito-target-inline", |
KOUSHIK PANUGANTI | 7d11166 | 2019-03-15 15:46:39 -0700 | [diff] [blame] | 34 | "androidx.test.rules", |
Sasha Smundak | 3fe49a5 | 2019-01-28 14:47:22 -0800 | [diff] [blame] | 35 | "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 | } |