Bob Badour | a3aa3db | 2021-02-26 02:54:21 -0800 | [diff] [blame] | 1 | // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE |
| 2 | // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE |
| 3 | // DEPENDING ON IT IN YOUR PROJECT. *** |
| 4 | package { |
| 5 | default_applicable_licenses: ["prebuilts_sdk_license"], |
| 6 | } |
| 7 | |
| 8 | // Added automatically by a large-scale-change that took the approach of |
| 9 | // 'apply every license found to every target'. While this makes sure we respect |
| 10 | // every license restriction, it may not be entirely correct. |
| 11 | // |
| 12 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 13 | // |
| 14 | // Please consider splitting the single license below into multiple licenses, |
| 15 | // taking care not to lose any license_kind information, and overriding the |
| 16 | // default license using the 'licenses: [...]' property on targets as needed. |
| 17 | // |
| 18 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 19 | // to attach the license to, and including a comment whether the files may be |
| 20 | // used in the current project. |
| 21 | // See: http://go/android-license-faq |
| 22 | license { |
| 23 | name: "prebuilts_sdk_license", |
| 24 | visibility: [":__subpackages__"], |
| 25 | license_kinds: [ |
| 26 | "SPDX-license-identifier-Apache-2.0", |
| 27 | "SPDX-license-identifier-BSD", |
| 28 | "SPDX-license-identifier-CC0-1.0", |
| 29 | "SPDX-license-identifier-CPL-1.0", |
| 30 | "SPDX-license-identifier-MIT", |
| 31 | "SPDX-license-identifier-NCSA", |
| 32 | "SPDX-license-identifier-OFL", // by exception only |
| 33 | "SPDX-license-identifier-Unicode-DFS", |
| 34 | "SPDX-license-identifier-W3C", |
| 35 | "legacy_unencumbered", |
| 36 | ], |
| 37 | license_text: [ |
| 38 | "NOTICE", |
| 39 | ], |
| 40 | } |
| 41 | |
Colin Cross | a715894 | 2016-11-23 17:01:45 -0800 | [diff] [blame] | 42 | subdirs=["tools"] |
Nan Zhang | 5093521 | 2018-02-27 15:07:04 -0800 | [diff] [blame] | 43 | |
| 44 | filegroup { |
| 45 | name: "api-version-xml", |
| 46 | srcs: [ |
Anton Hansson | 2615bde | 2018-04-19 13:30:56 +0100 | [diff] [blame] | 47 | "*/public/api/android.txt", |
| 48 | "*/public/api/android.xml", |
Nan Zhang | 5093521 | 2018-02-27 15:07:04 -0800 | [diff] [blame] | 49 | ], |
| 50 | } |
| 51 | |
| 52 | filegroup { |
| 53 | name: "current-support-api", |
| 54 | srcs: [ |
| 55 | "current/support-api.txt", |
| 56 | ], |
| 57 | } |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 58 | |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 59 | filegroup { |
Charles Munger | 88b9e15 | 2019-11-19 14:02:55 -0800 | [diff] [blame] | 60 | name: "current-androidx-api", |
| 61 | srcs: [ |
| 62 | "current/androidx-api.txt", |
| 63 | ], |
| 64 | } |
| 65 | |
| 66 | filegroup { |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 67 | name: "metalava-sdk-android-jars", |
| 68 | srcs: [ |
| 69 | "**/android.jar", |
| 70 | ], |
| 71 | } |
| 72 | |
| 73 | droiddoc_exported_dir { |
| 74 | name: "sdk-dir", |
| 75 | path: ".", |
| 76 | } |
| 77 | |
Anton Hansson | 7004711 | 2020-02-19 12:04:35 +0000 | [diff] [blame] | 78 | genrule { |
Jeff Gaston | b77349a | 2019-09-20 14:24:20 -0400 | [diff] [blame] | 79 | name: "last-released-public-api-for-metalava-annotations", |
| 80 | srcs: [ |
| 81 | "*/public/api/android.txt", |
| 82 | ], |
| 83 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -2 | head -1) $(genDir)/last-released-api-for-metalava-annotations.txt", |
| 84 | out: [ |
| 85 | "last-released-api-for-metalava-annotations.txt", |
| 86 | ], |
| 87 | } |
| 88 | |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 89 | prebuilt_apis { |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 90 | name: "sdk", |
| 91 | api_dirs: [ |
| 92 | "1", |
| 93 | "2", |
| 94 | "3", |
| 95 | "4", |
| 96 | "5", |
| 97 | "6", |
| 98 | "7", |
| 99 | "8", |
| 100 | "9", |
| 101 | "10", |
| 102 | "11", |
| 103 | "12", |
| 104 | "13", |
| 105 | "14", |
| 106 | "15", |
| 107 | "16", |
| 108 | "17", |
| 109 | "18", |
| 110 | "19", |
| 111 | "20", |
| 112 | "21", |
| 113 | "22", |
| 114 | "23", |
| 115 | "24", |
| 116 | "25", |
| 117 | "26", |
| 118 | "27", |
| 119 | "28", |
Oussama Ben Abdelbaki | 43a48ea | 2019-05-08 18:01:52 -0400 | [diff] [blame] | 120 | "29", |
Svet Ganov | be8b618 | 2020-04-30 17:19:53 -0700 | [diff] [blame] | 121 | "30", |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 122 | "current", |
| 123 | ], |
Anton Hansson | dd42c49 | 2021-01-22 16:46:27 +0000 | [diff] [blame] | 124 | next_api_dir: "31", |
Liz Kammer | 6b36db7 | 2020-08-20 10:19:18 -0700 | [diff] [blame] | 125 | imports_sdk_version: "none", |
Liz Kammer | 19ccaca | 2020-09-02 08:55:43 -0700 | [diff] [blame] | 126 | imports_compile_dex: true, |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 127 | } |