blob: ff56bb513a1d742132e42916b44c1f23f35db71b [file] [log] [blame]
Tej Singhc53ac0a2019-09-20 16:29:13 -07001// Statsd Service jar, which will eventually be put in the statsd mainline apex.
Tej Singhccd009162019-12-11 15:57:44 -08002// service-statsd needs to be added to PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS.
Tej Singhc53ac0a2019-09-20 16:29:13 -07003// This jar will contain StatsCompanionService
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -08004
5filegroup {
6 name: "service-statsd-sources",
7 srcs: [
8 "java/**/*.java",
9 ],
10}
11
Tej Singhc53ac0a2019-09-20 16:29:13 -070012java_library {
Anton Hansson97369f82019-11-22 11:40:08 +000013 name: "service-statsd",
Tej Singhc53ac0a2019-09-20 16:29:13 -070014 installable: true,
15
16 srcs: [
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080017 ":service-statsd-sources",
Tej Singhc53ac0a2019-09-20 16:29:13 -070018 ],
Muhammad Qureshifc3e3052020-02-09 13:27:28 -080019
20 // TODO(b/146757305) should be "module_current" since not allowed to use
21 // @CorePlatformApi's
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080022 sdk_version: "core_platform",
Muhammad Qureshifc3e3052020-02-09 13:27:28 -080023
Tej Singhc53ac0a2019-09-20 16:29:13 -070024 libs: [
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080025 "framework-annotations-lib",
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080026 "services-stubs",
Muhammad Qureshifc3e3052020-02-09 13:27:28 -080027 "framework-statsd",
28
29 // TODO(b/146757305): should be unnecessary once
30 // sdk_version="module_lib_current" or "module_current"
31 "android_module_lib_stubs_current",
Tej Singhc53ac0a2019-09-20 16:29:13 -070032 ],
Muhammad Qureshifc3e3052020-02-09 13:27:28 -080033
Howard Ro30ab9fe2020-02-26 23:34:17 -080034 plugins: ["java_api_finder"],
35
Anton Hansson5e0d3942020-01-10 17:38:35 +000036 apex_available: [
37 "com.android.os.statsd",
38 "test_com.android.os.statsd",
39 ],
Anton Hansson97369f82019-11-22 11:40:08 +000040}