blob: 607e8c17ee0bbe83373484f3ce17143e3ffc2bc6 [file] [log] [blame]
Colin Crossa7158942016-11-23 17:01:45 -08001subdirs=["tools"]
Nan Zhang50935212018-02-27 15:07:04 -08002
3filegroup {
4 name: "api-version-xml",
5 srcs: [
Anton Hansson2615bde2018-04-19 13:30:56 +01006 "*/public/api/android.txt",
7 "*/public/api/android.xml",
Nan Zhang50935212018-02-27 15:07:04 -08008 ],
9}
10
11filegroup {
12 name: "current-support-api",
13 srcs: [
14 "current/support-api.txt",
15 ],
16}
Nan Zhang4d722a52018-05-04 18:47:37 -070017
Nan Zhang13177a22018-08-22 11:07:05 -070018filegroup {
19 name: "metalava-sdk-android-jars",
20 srcs: [
21 "**/android.jar",
22 ],
23}
24
25droiddoc_exported_dir {
26 name: "sdk-dir",
27 path: ".",
28}
29
Nan Zhang4d722a52018-05-04 18:47:37 -070030genrule {
31 name: "last-released-public-api",
32 srcs: [
33 "*/public/api/android.txt",
34 ],
35 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt",
36 out: [
37 "last-released-api.txt",
38 ],
39}
40
41genrule {
42 name: "last-released-system-api",
43 srcs: [
44 "*/system/api/android.txt",
45 ],
46 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt",
47 out: [
48 "last-released-api.txt",
49 ],
50}
Jiyong Parkd6455472018-05-12 22:15:27 +090051
Nan Zhang028d8ec2018-06-04 16:03:12 -070052genrule {
53 name: "public-api-for-metalava-annotations",
54 srcs: [
55 "*/public/api/android.txt",
56 ],
57 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -2 | head -1) $(genDir)/last-released-api.txt",
58 out: [
59 "last-released-api.txt",
60 ],
61}
62
Jiyong Parkd6455472018-05-12 22:15:27 +090063prebuilt_apis {
Sundong Ahneacb58d2018-06-21 15:03:01 +090064 name: "sdk",
65 api_dirs: [
66 "1",
67 "2",
68 "3",
69 "4",
70 "5",
71 "6",
72 "7",
73 "8",
74 "9",
75 "10",
76 "11",
77 "12",
78 "13",
79 "14",
80 "15",
81 "16",
82 "17",
83 "18",
84 "19",
85 "20",
86 "21",
87 "22",
88 "23",
89 "24",
90 "25",
91 "26",
92 "27",
93 "28",
94 "current",
95 ],
Jiyong Parkd6455472018-05-12 22:15:27 +090096}