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

Commit 05115587 authored by Anton Hansson's avatar Anton Hansson
Browse files

Compile service-statsd against the system server SDK

This ensures this jar doesn't link against any non-sdk jars,
and hides the implementation names of the actual stub jars.

Bug: 146757305
Test: m
Change-Id: Ia80ada60acd9b059f566dec349ac1c4308298fd1
parent cf404f64
Loading
Loading
Loading
Loading
+2 −17
Original line number Diff line number Diff line
@@ -21,28 +21,13 @@ filegroup {

java_library {
    name: "service-statsd",
    installable: true,

    srcs: [
        ":service-statsd-sources",
    ],

    // TODO(b/146757305) should be "module_current" since not allowed to use
    // @CorePlatformApi's
    sdk_version: "core_platform",

    srcs: [ ":service-statsd-sources" ],
    sdk_version: "system_server_current",
    libs: [
        "framework-annotations-lib",
        "services-stubs",
        "framework-statsd",

        // TODO(b/146757305): should be unnecessary once
        // sdk_version="module_lib_current" or "module_current"
        "android_module_lib_stubs_current",
    ],

    plugins: ["java_api_finder"],

    apex_available: [
        "com.android.os.statsd",
        "test_com.android.os.statsd",