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

Commit c537cba7 authored by Jihoon Kang's avatar Jihoon Kang
Browse files

Add aconfig declarations to f/b droidstubs

This change pass the aconfig_declaration modules defined in
AconfigFlags.bp to the *-api-stubs-docs-non-updatable droidstubs module,
so that the "exportable" stubs (i.e. the stubs only containing the
flagged apis that are enabled by the release configuration) can be
generated.

Test: m api-stubs-docs-non-updatable && m checkapi
Bug: 317290555
Merged-In: I944d336e474b9ed61f4554fc9325a8df3a9cf40b
Change-Id: I944d336e474b9ed61f4554fc9325a8df3a9cf40b
parent 4c2e9d3c
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ aconfig_srcjars = [
    ":android.content.pm.flags-aconfig-java{.generated_srcjars}",
    ":android.content.res.flags-aconfig-java{.generated_srcjars}",
    ":android.hardware.biometrics.flags-aconfig-java{.generated_srcjars}",
    ":android.media.playback.flags-aconfig-java{.generated_srcjars}",
    ":android.net.vcn.flags-aconfig-java{.generated_srcjars}",
    ":android.nfc.flags-aconfig-java{.generated_srcjars}",
    ":android.os.flags-aconfig-java{.generated_srcjars}",
@@ -27,6 +28,25 @@ aconfig_srcjars = [
    ":com.android.net.flags-aconfig-java{.generated_srcjars}",
]

stubs_defaults {
    name: "framework-minus-apex-aconfig-declarations",
    aconfig_declarations: [
        "android.content.pm.flags-aconfig",
        "android.content.res.flags-aconfig",
        "android.hardware.biometrics.flags-aconfig",
        "android.media.playback.flags-aconfig",
        "android.net.vcn.flags-aconfig",
        "android.nfc.flags-aconfig",
        "android.os.flags-aconfig",
        "android.security.flags-aconfig",
        "com.android.hardware.camera2-aconfig",
        "com.android.hardware.input.input-aconfig",
        "com.android.window.flags.window-aconfig",
        "com.android.text.flags-aconfig",
        "com.android.net.flags-aconfig",
    ],
}

filegroup {
    name: "framework-minus-apex-aconfig-srcjars",
    srcs: aconfig_srcjars,
+1 −0
Original line number Diff line number Diff line
@@ -278,6 +278,7 @@ packages_to_document = [
// classpath (or sources) somehow.
stubs_defaults {
    name: "android-non-updatable-stubs-defaults",
    defaults: ["framework-minus-apex-aconfig-declarations"],
    srcs: [":android-non-updatable-stub-sources"],
    sdk_version: "none",
    system_modules: "none",