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

Commit 64549608 authored by Anton Hansson's avatar Anton Hansson Committed by Automerger Merge Worker
Browse files

Merge "Use filegroups for the droidstub txt files" am: 134ad282 am: 2880f60f am: 71ab6ddb

parents 3bd6db2d 71ab6ddb
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -36,8 +36,8 @@ droidstubs {
    args: metalava_framework_docs_args,
    check_api: {
        current: {
            api_file: "core/api/current.txt",
            removed_api_file: "core/api/removed.txt",
            api_file: ":non-updatable-current.txt",
            removed_api_file: ":non-updatable-removed.txt",
        },
        last_released: {
            api_file: ":android-non-updatable.api.public.latest",
@@ -88,8 +88,8 @@ droidstubs {
    args: metalava_framework_docs_args + priv_apps,
    check_api: {
        current: {
            api_file: "core/api/system-current.txt",
            removed_api_file: "core/api/system-removed.txt",
            api_file: ":non-updatable-system-current.txt",
            removed_api_file: ":non-updatable-system-removed.txt",
        },
        last_released: {
            api_file: ":android-non-updatable.api.system.latest",
@@ -99,7 +99,7 @@ droidstubs {
        api_lint: {
            enabled: true,
            new_since: ":android.api.system.latest",
            baseline_file: "core/api/system-lint-baseline.txt",
            baseline_file: ":non-updatable-system-lint-baseline.txt",
        },
    },
    dists: [
@@ -127,12 +127,12 @@ droidstubs {
    args: metalava_framework_docs_args + test + priv_apps_in_stubs,
    check_api: {
        current: {
            api_file: "core/api/test-current.txt",
            removed_api_file: "core/api/test-removed.txt",
            api_file: ":non-updatable-test-current.txt",
            removed_api_file: ":non-updatable-test-removed.txt",
        },
        api_lint: {
            enabled: true,
            baseline_file: "core/api/test-lint-baseline.txt",
            baseline_file: ":non-updatable-test-lint-baseline.txt",
        },
    },
    dists: [
@@ -172,8 +172,8 @@ droidstubs {
    args: metalava_framework_docs_args + priv_apps_in_stubs + module_libs,
    check_api: {
        current: {
            api_file: "core/api/module-lib-current.txt",
            removed_api_file: "core/api/module-lib-removed.txt",
            api_file: ":non-updatable-module-lib-current.txt",
            removed_api_file: ":non-updatable-module-lib-removed.txt",
        },
        last_released: {
            api_file: ":android-non-updatable.api.module-lib.latest",
@@ -183,7 +183,7 @@ droidstubs {
        api_lint: {
            enabled: true,
            new_since: ":android.api.module-lib.latest",
            baseline_file: "core/api/module-lib-lint-baseline.txt",
            baseline_file: ":non-updatable-module-lib-lint-baseline.txt",
        },
    },
    dists: [
+31 −5
Original line number Diff line number Diff line
@@ -13,7 +13,10 @@
// limitations under the License.

package {
    default_visibility: ["//visibility:private"],
    default_visibility: [
        "//frameworks/base",
        "//frameworks/base/api",
    ],
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
@@ -27,31 +30,33 @@ package {
filegroup {
    name: "non-updatable-current.txt",
    srcs: ["current.txt"],
    visibility: ["//frameworks/base/api"],
}

filegroup {
    name: "non-updatable-removed.txt",
    srcs: ["removed.txt"],
    visibility: ["//frameworks/base/api"],
}

filegroup {
    name: "non-updatable-system-current.txt",
    srcs: ["system-current.txt"],
    visibility: ["//frameworks/base/api"],
}

filegroup {
    name: "non-updatable-system-removed.txt",
    srcs: ["system-removed.txt"],
    visibility: ["//frameworks/base/api"],
}

filegroup {
    name: "non-updatable-system-lint-baseline.txt",
    srcs: ["system-lint-baseline.txt"],
}

filegroup {
    name: "non-updatable-module-lib-current.txt",
    srcs: ["module-lib-current.txt"],
    visibility: [
        "//frameworks/base",
        "//frameworks/base/api",
        "//cts/tests/signature/api",
    ],
@@ -61,11 +66,32 @@ filegroup {
    name: "non-updatable-module-lib-removed.txt",
    srcs: ["module-lib-removed.txt"],
    visibility: [
        "//frameworks/base",
        "//frameworks/base/api",
        "//cts/tests/signature/api",
    ],
}

filegroup {
    name: "non-updatable-module-lib-lint-baseline.txt",
    srcs: ["module-lib-lint-baseline.txt"],
}

filegroup {
    name: "non-updatable-test-current.txt",
    srcs: ["test-current.txt"],
}

filegroup {
    name: "non-updatable-test-removed.txt",
    srcs: ["test-removed.txt"],
}

filegroup {
    name: "non-updatable-test-lint-baseline.txt",
    srcs: ["test-lint-baseline.txt"],
}

java_api_contribution {
    name: "api-stubs-docs-non-updatable-public-stubs",
    api_surface: "public",