Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ea733e4 authored by Muhammad Qureshi's avatar Muhammad Qureshi
Browse files

Clean up service-statsd

- Build against framework-statsd
- Build against service-stubs

Bug: 146084685
Test: m
Change-Id: I0b855c065ce0159dbfd73998a54bc388a4d9611a
parent 7a59ea4c
Loading
Loading
Loading
Loading
+17 −4
Original line number Diff line number Diff line
// 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",
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ filegroup {
        ":services.usb-sources",
        ":services.voiceinteraction-sources",
        ":service-permission-sources",
        ":service-statsd-sources",
    ],
    visibility: ["//visibility:private"],
}