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

Commit cfa332fb authored by Zi Wang's avatar Zi Wang Committed by Gerrit Code Review
Browse files

Merge "Add java_genrule to replace handcrafted api fingerprint generation"

parents a78c7e67 00a8681b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -257,3 +257,15 @@ genrule {
    out: ["combined-removed-dex.txt"],
    cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
}

java_genrule {
    name: "api_fingerprint",
    srcs: [
        ":frameworks-base-api-current.txt",
        ":frameworks-base-api-system-current.txt",
        ":frameworks-base-api-module-lib-current.txt",
        ":frameworks-base-api-system-server-current.txt",
    ],
    out: ["api_fingerprint.txt"],
    cmd: "cat $(in) | md5sum | cut -d' ' -f1 > $(out)",
}