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

Commit bc4d61ed authored by Nan Zhang's avatar Nan Zhang Committed by android-build-merger
Browse files

Merge "Update Android.bp for api-stubs in order to do api-check."

am: 001d2aed

Change-Id: Ic7500b86c150b2c5f5870374a6ab5b0215278814
parents ef9db6bf 001d2aed
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -911,6 +911,15 @@ doc_defaults {
    installable: false,
}

check_last_released_api_args = "-hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 " +
    "-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 " +
    "-error 16 -error 17 -error 18"

check_current_api_args = "-error 2 -error 3 -error 4 -error 5 -error 6 " +
    "-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 "+
    "-error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 " +
    "-error 25 -error 26 -error 27"

droiddoc {
    name: "api-stubs-docs",
    defaults: ["framework-docs-default"],
@@ -924,6 +933,18 @@ droiddoc {
    private_api_filename: "private.txt",
    removed_api_filename: "removed.txt",
    args: framework_docs_args + " -referenceonly -nodocs",
    check_api: {
        last_released: {
            api_file: ":last-released-public-api",
            removed_api_file: "api/removed.txt",
            args: check_last_released_api_args,
        },
        current: {
            api_file: "api/current.txt",
            removed_api_file: "api/removed.txt",
            args: check_current_api_args,
        },
    },
}

droiddoc {
@@ -942,6 +963,18 @@ droiddoc {
    removed_api_filename: "system-removed.txt",
    exact_api_filename: "system-exact.txt",
    args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.SystemApi -nodocs",
    check_api: {
        last_released: {
            api_file: ":last-released-system-api",
            removed_api_file: "api/system-removed.txt",
            args: check_last_released_api_args,
        },
        current: {
            api_file: "api/system-current.txt",
            removed_api_file: "api/system-removed.txt",
            args: check_current_api_args,
        },
    },
}

droiddoc {
@@ -958,6 +991,13 @@ droiddoc {
    removed_api_filename: "test-removed.txt",
    exact_api_filename: "test-exact.txt",
    args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.TestApi -nodocs",
    check_api: {
        current: {
            api_file: "api/test-current.txt",
            removed_api_file: "api/test-removed.txt",
            args: check_current_api_args,
        },
    },
}

droiddoc {