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

Commit aab881d8 authored by Paul Duffin's avatar Paul Duffin
Browse files

Use new `metalava signature-to-jdiff` sub-command

Also, removes `--no-banner` as it is deprecated and `--format=v2` is
unnecessary.

Bug: 290825755
Test: m current-api-xml
Change-Id: Ib2ff55cf2bfd2128866b2e4f67cf39303135b79b
parent bc38028c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -60,14 +60,14 @@ python_test_host {
metalava_cmd = "$(location metalava)"
metalava_cmd = "$(location metalava)"
// Silence reflection warnings. See b/168689341
// Silence reflection warnings. See b/168689341
metalava_cmd += " -J--add-opens=java.base/java.util=ALL-UNNAMED "
metalava_cmd += " -J--add-opens=java.base/java.util=ALL-UNNAMED "
metalava_cmd += " --quiet --no-banner --format=v2 "
metalava_cmd += " --quiet "


genrule {
genrule {
    name: "current-api-xml",
    name: "current-api-xml",
    tools: ["metalava"],
    tools: ["metalava"],
    srcs: [":frameworks-base-api-current.txt"],
    srcs: [":frameworks-base-api-current.txt"],
    out: ["current.api"],
    out: ["current.api"],
    cmd: metalava_cmd + "-convert2xmlnostrip $(in) $(out)",
    cmd: metalava_cmd + "signature-to-jdiff $(in) $(out)",
    visibility: ["//visibility:public"],
    visibility: ["//visibility:public"],
}
}