package { default_applicable_licenses: ["Android-Apache-2.0"], } /** * Note that the prebuilt APIs are added/updated automatically by * running the update script at: * vendor/google_clockwork/sdk/scripts/update-wear-sdk-prebuilts.sh * * The prebuilt_apis module provides a number of generated, prebuilt * artifacts including: * * wear-sdk.api.. * * where scope is one of public, system or test * * and version can either be a specific wear version specified by * a platform SDK/QPR version scheme, e.g. * * wear-sdk.api.public.33.1 * * or wear-sdk.api.public.latest to use the latest available version * */ prebuilt_apis { name: "wear-sdk-prebuilts", api_dirs: [ "33.0", // no release, empty "33.1", "33.2", "33.3", "33.4", "34.1", "35.1", "36.0", "current", ], } droiddoc_exported_dir { name: "wear-sdk-dir", path: ".", } genrule { name: "latest-finalized-wear-flags", srcs: [ "*/finalized-flags.txt", ], out: ["latest-finalized-flags.txt"], // call to `tr` to convert the space separated single line to multiple lines, since // fileglob for srcs is expanded prior to use here. List is sorted and most recent used. cmd: "cp `echo \"$(in)\" | tr ' ' '\n' | grep -v -e current | sort -V | tail -n1` $(out)", }