blob: dea06690c8e674e57132305b03513bb74a1c3112 [file] [log] [blame]
Bob Badoureb0cff22021-02-28 19:54:12 -08001// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
2// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3// DEPENDING ON IT IN YOUR PROJECT. ***
4package {
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
22license {
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 Crossa7158942016-11-23 17:01:45 -080042subdirs=["tools"]
Nan Zhang50935212018-02-27 15:07:04 -080043
44filegroup {
Nan Zhang50935212018-02-27 15:07:04 -080045 name: "current-support-api",
46 srcs: [
47 "current/support-api.txt",
48 ],
49}
Nan Zhang4d722a52018-05-04 18:47:37 -070050
Nan Zhang13177a22018-08-22 11:07:05 -070051filegroup {
Charles Munger88b9e152019-11-19 14:02:55 -080052 name: "current-androidx-api",
53 srcs: [
54 "current/androidx-api.txt",
55 ],
56}
57
58filegroup {
Nan Zhang13177a22018-08-22 11:07:05 -070059 name: "metalava-sdk-android-jars",
60 srcs: [
61 "**/android.jar",
62 ],
63}
64
65droiddoc_exported_dir {
66 name: "sdk-dir",
67 path: ".",
68}
69
Anton Hansson70047112020-02-19 12:04:35 +000070genrule {
Jeff Gastonb77349a2019-09-20 14:24:20 -040071 name: "last-released-public-api-for-metalava-annotations",
72 srcs: [
73 "*/public/api/android.txt",
74 ],
75 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -2 | head -1) $(genDir)/last-released-api-for-metalava-annotations.txt",
76 out: [
77 "last-released-api-for-metalava-annotations.txt",
78 ],
79}
80
Jiyong Park681c4422020-07-06 12:44:41 +090081// This filegroup is to package android.jar into CtsUsesNativeLibraryTestCase
82filegroup {
83 name: "sdk_public_30_android",
84 srcs: [
85 "30/public/android.jar",
86 ],
87 visibility: [
88 "//cts/hostsidetests/library",
89 ],
90}
91
Jiyong Parkd6455472018-05-12 22:15:27 +090092prebuilt_apis {
Sundong Ahneacb58d2018-06-21 15:03:01 +090093 name: "sdk",
94 api_dirs: [
95 "1",
96 "2",
97 "3",
98 "4",
99 "5",
100 "6",
101 "7",
102 "8",
103 "9",
104 "10",
105 "11",
106 "12",
107 "13",
108 "14",
109 "15",
110 "16",
111 "17",
112 "18",
113 "19",
114 "20",
115 "21",
116 "22",
117 "23",
118 "24",
119 "25",
120 "26",
121 "27",
122 "28",
Oussama Ben Abdelbaki43a48ea2019-05-08 18:01:52 -0400123 "29",
Svet Ganovbe8b6182020-04-30 17:19:53 -0700124 "30",
Anton Hansson56859a22021-06-07 11:33:47 +0100125 "31",
Paul Duffin6f5c3ae2022-01-25 18:12:04 +0000126 "32",
Yurii Zubrytskyi8440aab2022-04-26 12:32:02 -0700127 "33",
Sundong Ahneacb58d2018-06-21 15:03:01 +0900128 "current",
129 ],
Anton Hanssonbe66e712022-02-17 11:28:06 +0000130 extensions_dir: "extensions",
paulhu519cb6d2021-11-26 11:18:56 +0800131 next_api_dir: "33",
Liz Kammer6b36db72020-08-20 10:19:18 -0700132 imports_sdk_version: "none",
Liz Kammer19ccaca2020-09-02 08:55:43 -0700133 imports_compile_dex: true,
Jiyong Parkd6455472018-05-12 22:15:27 +0900134}
Yuntao Xua8d77602021-09-09 12:55:07 -0700135
136filegroup {
137 name: "prebuilt_sdk_system_public_api_txt",
138 srcs: [
139 "*/system/api/*.txt",
140 "*/public/api/*.txt",
Yuntao Xu6ed109f2021-09-09 17:44:04 -0700141 ]
142}
143
144filegroup {
145 name: "prebuilt_sdk_system_api_android_txt",
146 srcs: [
147 "*/system/api/android.txt",
Yuntao Xua8d77602021-09-09 12:55:07 -0700148 ],
149}