Bob Badour | 00c26b5 | 2021-02-12 20:15:28 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: [ |
| 3 | "packages_providers_ContactsProvider_license", |
| 4 | ], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change |
| 8 | // See: http://go/android-license-faq |
| 9 | license { |
| 10 | name: "packages_providers_ContactsProvider_license", |
| 11 | visibility: [":__subpackages__"], |
| 12 | license_kinds: [ |
| 13 | "SPDX-license-identifier-Apache-2.0", |
| 14 | ], |
| 15 | license_text: [ |
| 16 | "NOTICE", |
| 17 | ], |
| 18 | } |
| 19 | |
Sasha Smundak | 3a60018 | 2019-01-10 19:04:14 -0800 | [diff] [blame] | 20 | android_app { |
| 21 | name: "ContactsProvider", |
Jeff Sharkey | f5e28c0 | 2020-10-23 14:43:52 -0600 | [diff] [blame] | 22 | defaults: ["platform_app_defaults"], |
Sasha Smundak | 3a60018 | 2019-01-10 19:04:14 -0800 | [diff] [blame] | 23 | // Only compile source java files in this apk. |
| 24 | srcs: [ |
| 25 | "src/**/*.java", |
| 26 | "src/com/android/providers/contacts/EventLogTags.logtags", |
| 27 | ], |
| 28 | libs: [ |
Tyler Gunn | 305a3bd | 2019-08-14 14:36:17 -0700 | [diff] [blame] | 29 | "ext" |
Sasha Smundak | 3a60018 | 2019-01-10 19:04:14 -0800 | [diff] [blame] | 30 | ], |
| 31 | static_libs: [ |
| 32 | "android-common", |
| 33 | "com.android.vcard", |
| 34 | "guava", |
| 35 | ], |
| 36 | |
| 37 | // The Jacoco tool analyzes code coverage when running unit tests on the |
| 38 | // application. This configuration line selects which packages will be analyzed, |
| 39 | // leaving out code which is tested by other means (e.g. static libraries) that |
| 40 | // would dilute the coverage results. These options do not affect regular |
| 41 | // production builds. |
| 42 | jacoco: { |
| 43 | include_filter: ["com.android.providers.contacts.*"], |
| 44 | }, |
| 45 | platform_apis: true, |
| 46 | certificate: "shared", |
| 47 | privileged: true, |
| 48 | optimize: { |
| 49 | proguard_flags_files: ["proguard.flags"], |
| 50 | }, |
| 51 | } |