1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5/** 6 * Note that the prebuilt APIs are added/updated automatically by 7 * running the update script at: 8 * vendor/google_clockwork/sdk/scripts/update-wear-sdk-prebuilts.sh 9 * 10 * The prebuilt_apis module provides a number of generated, prebuilt 11 * artifacts including: 12 * 13 * wear-sdk.api.<scope>.<version> 14 * 15 * where scope is one of public, system or test 16 * 17 * and version can either be a specific wear version specified by 18 * a platform SDK/QPR version scheme, e.g. 19 * 20 * wear-sdk.api.public.33.1 21 * 22 * or wear-sdk.api.public.latest to use the latest available version 23 * 24 */ 25prebuilt_apis { 26 name: "wear-sdk-prebuilts", 27 api_dirs: [ 28 "33.0", // no release, empty 29 "33.1", 30 "33.2", 31 "33.3", 32 "33.4", 33 "34.1", 34 "35.1", 35 "36.0", 36 "current", 37 ], 38} 39 40droiddoc_exported_dir { 41 name: "wear-sdk-dir", 42 path: ".", 43} 44 45genrule { 46 name: "latest-finalized-wear-flags", 47 srcs: [ 48 "*/finalized-flags.txt", 49 ], 50 out: ["latest-finalized-flags.txt"], 51 // call to `tr` to convert the space separated single line to multiple lines, since 52 // fileglob for srcs is expanded prior to use here. List is sorted and most recent used. 53 cmd: "cp `echo \"$(in)\" | tr ' ' '\n' | grep -v -e current | sort -V | tail -n1` $(out)", 54} 55