summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Qureshi <muhammadq@google.com>2020-02-07 09:30:28 -0800
committerMuhammad Qureshi <muhammadq@google.com>2020-02-08 22:37:04 -0800
commit8ea733e4351f634a55dcef5b33b3c3815e3b344b (patch)
tree7e485e2dc569ab5940605922e6d6999530b1dbd4
parent7a59ea4ca1d0613326befe41d1783fcbb989a977 (diff)
Clean up service-statsd
- Build against framework-statsd - Build against service-stubs Bug: 146084685 Test: m Change-Id: I0b855c065ce0159dbfd73998a54bc388a4d9611a
-rw-r--r--apex/statsd/service/Android.bp21
-rw-r--r--services/Android.bp1
2 files changed, 18 insertions, 4 deletions
diff --git a/apex/statsd/service/Android.bp b/apex/statsd/service/Android.bp
index 910384845810..0f8a151eed7c 100644
--- a/apex/statsd/service/Android.bp
+++ b/apex/statsd/service/Android.bp
@@ -1,17 +1,30 @@
// Statsd Service jar, which will eventually be put in the statsd mainline apex.
// service-statsd needs to be added to PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS.
// This jar will contain StatsCompanionService
+
+filegroup {
+ name: "service-statsd-sources",
+ srcs: [
+ "java/**/*.java",
+ ],
+}
+
java_library {
name: "service-statsd",
installable: true,
srcs: [
- "java/**/*.java",
+ ":service-statsd-sources",
],
- // TODO: link against the proper stubs (b/146084685).
+ // TODO(b/146209659): Use system_current instead once framework-statsd compiles against
+ // system_current.
+ sdk_version: "core_platform",
libs: [
- "framework-minus-apex",
- "services.core",
+ "framework-annotations-lib",
+ "framework-statsd",
+ // TODO(b/146758669): Remove this line after nullability annotations are system APIs.
+ "android_system_stubs_current",
+ "services-stubs",
],
apex_available: [
"com.android.os.statsd",
diff --git a/services/Android.bp b/services/Android.bp
index 32394f4fe5d9..416f448a965f 100644
--- a/services/Android.bp
+++ b/services/Android.bp
@@ -30,6 +30,7 @@ filegroup {
":services.usb-sources",
":services.voiceinteraction-sources",
":service-permission-sources",
+ ":service-statsd-sources",
],
visibility: ["//visibility:private"],
}