Anton Hansson | fcb91d4 | 2020-09-21 16:32:14 +0100 | [diff] [blame] | 1 | // Copyright (C) 2020 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
| 16 | default_visibility: ["//visibility:private"], |
| 17 | } |
| 18 | |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 19 | genrule { |
| 20 | name: "current-api-xml", |
| 21 | tools: ["metalava"], |
Anton Hansson | 00febe2 | 2020-11-05 10:30:59 +0000 | [diff] [blame] | 22 | srcs: [":frameworks-base-api-current.txt"], |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 23 | out: ["current.api"], |
| 24 | cmd: "$(location metalava) --no-banner -convert2xmlnostrip $(in) $(out)", |
Anton Hansson | fcb91d4 | 2020-09-21 16:32:14 +0100 | [diff] [blame] | 25 | visibility: ["//visibility:public"], |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 26 | } |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 27 | |
| 28 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 29 | name: "frameworks-base-api-current.txt", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 30 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 31 | ":android.net.ipsec.ike{.public.api.txt}", |
Anton Hansson | fc948d86 | 2020-12-17 16:57:35 +0000 | [diff] [blame] | 32 | ":art.module.public.api{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 33 | ":conscrypt.module.public.api{.public.api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 34 | ":framework-appsearch{.public.api.txt}", |
Anton Hansson | 0eccccb | 2020-09-24 12:09:25 +0100 | [diff] [blame] | 35 | ":framework-graphics{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 36 | ":framework-media{.public.api.txt}", |
| 37 | ":framework-mediaprovider{.public.api.txt}", |
| 38 | ":framework-permission{.public.api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 39 | ":framework-permission-s{.public.api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 40 | ":framework-scheduling{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 41 | ":framework-sdkextensions{.public.api.txt}", |
| 42 | ":framework-statsd{.public.api.txt}", |
| 43 | ":framework-tethering{.public.api.txt}", |
| 44 | ":framework-wifi{.public.api.txt}", |
Paul Duffin | 5a4e8f2 | 2020-11-25 15:45:43 +0000 | [diff] [blame] | 45 | ":i18n.module.public.api{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 46 | ":non-updatable-current.txt", |
| 47 | ], |
| 48 | out: ["current.txt"], |
| 49 | tools: ["metalava"], |
| 50 | cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 51 | dists: [ |
| 52 | { |
| 53 | targets: ["droidcore"], |
| 54 | dir: "api", |
| 55 | dest: "current.txt", |
| 56 | }, |
| 57 | { |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 58 | targets: ["sdk", "win_sdk"], |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 59 | dir: "apistubs/android/public/api", |
| 60 | dest: "android.txt", |
| 61 | }, |
| 62 | ], |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 63 | visibility: ["//visibility:public"], |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | genrule { |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 67 | name: "frameworks-base-api-current-compat", |
| 68 | srcs: [ |
| 69 | ":android.api.public.latest", |
| 70 | ":android-incompatibilities.api.public.latest", |
| 71 | ":frameworks-base-api-current.txt", |
| 72 | ], |
| 73 | out: ["stdout.txt"], |
| 74 | tools: ["metalava"], |
| 75 | cmd: "$(location metalava) --no-banner --format=v2 " + |
| 76 | "--check-compatibility:api:released $(location :android.api.public.latest) " + |
| 77 | "--baseline:compatibility:released $(location :android-incompatibilities.api.public.latest) " + |
| 78 | "$(location :frameworks-base-api-current.txt) " + |
| 79 | "> $(genDir)/stdout.txt", |
| 80 | } |
| 81 | |
| 82 | genrule { |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 83 | name: "frameworks-base-api-current.srcjar", |
| 84 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 85 | ":android.net.ipsec.ike{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 86 | ":api-stubs-docs-non-updatable", |
Anton Hansson | fc948d86 | 2020-12-17 16:57:35 +0000 | [diff] [blame] | 87 | ":art.module.public.api{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 88 | ":conscrypt.module.public.api{.public.stubs.source}", |
| 89 | ":framework-appsearch{.public.stubs.source}", |
| 90 | ":framework-graphics{.public.stubs.source}", |
| 91 | ":framework-media{.public.stubs.source}", |
| 92 | ":framework-mediaprovider{.public.stubs.source}", |
| 93 | ":framework-permission{.public.stubs.source}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 94 | ":framework-permission-s{.public.stubs.source}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 95 | ":framework-scheduling{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 96 | ":framework-sdkextensions{.public.stubs.source}", |
| 97 | ":framework-statsd{.public.stubs.source}", |
| 98 | ":framework-tethering{.public.stubs.source}", |
| 99 | ":framework-wifi{.public.stubs.source}", |
Paul Duffin | 5a4e8f2 | 2020-11-25 15:45:43 +0000 | [diff] [blame] | 100 | ":i18n.module.public.api{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 101 | ], |
| 102 | out: ["current.srcjar"], |
| 103 | tools: ["merge_zips"], |
| 104 | cmd: "$(location merge_zips) $(out) $(in)", |
| 105 | visibility: ["//visibility:private"], // Used by make module in //development, mind. |
| 106 | } |
| 107 | |
| 108 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 109 | name: "frameworks-base-api-removed.txt", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 110 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 111 | ":android.net.ipsec.ike{.public.removed-api.txt}", |
Anton Hansson | fc948d86 | 2020-12-17 16:57:35 +0000 | [diff] [blame] | 112 | ":art.module.public.api{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 113 | ":conscrypt.module.public.api{.public.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 114 | ":framework-appsearch{.public.removed-api.txt}", |
| 115 | ":framework-graphics{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 116 | ":framework-media{.public.removed-api.txt}", |
| 117 | ":framework-mediaprovider{.public.removed-api.txt}", |
| 118 | ":framework-permission{.public.removed-api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 119 | ":framework-permission-s{.public.removed-api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 120 | ":framework-scheduling{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 121 | ":framework-sdkextensions{.public.removed-api.txt}", |
| 122 | ":framework-statsd{.public.removed-api.txt}", |
| 123 | ":framework-tethering{.public.removed-api.txt}", |
| 124 | ":framework-wifi{.public.removed-api.txt}", |
Paul Duffin | 5a4e8f2 | 2020-11-25 15:45:43 +0000 | [diff] [blame] | 125 | ":i18n.module.public.api{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 126 | ":non-updatable-removed.txt", |
| 127 | ], |
| 128 | out: ["removed.txt"], |
| 129 | tools: ["metalava"], |
| 130 | cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 131 | dists: [ |
| 132 | { |
| 133 | targets: ["droidcore"], |
| 134 | dir: "api", |
| 135 | dest: "removed.txt", |
| 136 | }, |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 137 | { |
| 138 | targets: ["sdk", "win_sdk"], |
| 139 | dir: "apistubs/android/public/api", |
| 140 | dest: "removed.txt", |
| 141 | }, |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 142 | ], |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 143 | } |
| 144 | |
| 145 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 146 | name: "frameworks-base-api-system-current.txt", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 147 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 148 | ":android.net.ipsec.ike{.system.api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 149 | ":framework-appsearch{.system.api.txt}", |
Anton Hansson | 0eccccb | 2020-09-24 12:09:25 +0100 | [diff] [blame] | 150 | ":framework-graphics{.system.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 151 | ":framework-media{.system.api.txt}", |
| 152 | ":framework-mediaprovider{.system.api.txt}", |
| 153 | ":framework-permission{.system.api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 154 | ":framework-permission-s{.system.api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 155 | ":framework-scheduling{.system.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 156 | ":framework-sdkextensions{.system.api.txt}", |
| 157 | ":framework-statsd{.system.api.txt}", |
| 158 | ":framework-tethering{.system.api.txt}", |
| 159 | ":framework-wifi{.system.api.txt}", |
| 160 | ":non-updatable-system-current.txt", |
| 161 | ], |
| 162 | out: ["system-current.txt"], |
| 163 | tools: ["metalava"], |
| 164 | cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 165 | dists: [ |
| 166 | { |
| 167 | targets: ["droidcore"], |
| 168 | dir: "api", |
| 169 | dest: "system-current.txt", |
| 170 | }, |
| 171 | { |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 172 | targets: ["sdk", "win_sdk"], |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 173 | dir: "apistubs/android/system/api", |
| 174 | dest: "android.txt", |
| 175 | }, |
| 176 | ], |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 177 | visibility: ["//visibility:public"], |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | genrule { |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 181 | name: "frameworks-base-api-system-current-compat", |
| 182 | srcs: [ |
| 183 | ":android.api.system.latest", |
| 184 | ":android-incompatibilities.api.system.latest", |
| 185 | ":frameworks-base-api-current.txt", |
| 186 | ":frameworks-base-api-system-current.txt", |
| 187 | ], |
| 188 | out: ["stdout.txt"], |
| 189 | tools: ["metalava"], |
| 190 | cmd: "$(location metalava) --no-banner --format=v2 " + |
| 191 | "--check-compatibility:api:released $(location :android.api.system.latest) " + |
| 192 | "--check-compatibility:base $(location :frameworks-base-api-current.txt) " + |
| 193 | "--baseline:compatibility:released $(location :android-incompatibilities.api.system.latest) " + |
| 194 | "$(location :frameworks-base-api-system-current.txt) " + |
| 195 | "> $(genDir)/stdout.txt", |
| 196 | } |
| 197 | |
| 198 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 199 | name: "frameworks-base-api-system-removed.txt", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 200 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 201 | ":android.net.ipsec.ike{.system.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 202 | ":framework-appsearch{.system.removed-api.txt}", |
| 203 | ":framework-graphics{.system.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 204 | ":framework-media{.system.removed-api.txt}", |
| 205 | ":framework-mediaprovider{.system.removed-api.txt}", |
| 206 | ":framework-permission{.system.removed-api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 207 | ":framework-permission-s{.system.removed-api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 208 | ":framework-scheduling{.system.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 209 | ":framework-sdkextensions{.system.removed-api.txt}", |
| 210 | ":framework-statsd{.system.removed-api.txt}", |
| 211 | ":framework-tethering{.system.removed-api.txt}", |
| 212 | ":framework-wifi{.system.removed-api.txt}", |
| 213 | ":non-updatable-system-removed.txt", |
| 214 | ], |
| 215 | out: ["system-removed.txt"], |
| 216 | tools: ["metalava"], |
| 217 | cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 218 | dists: [ |
| 219 | { |
| 220 | targets: ["droidcore"], |
| 221 | dir: "api", |
| 222 | dest: "system-removed.txt", |
| 223 | }, |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 224 | { |
| 225 | targets: ["sdk", "win_sdk"], |
| 226 | dir: "apistubs/android/system/api", |
| 227 | dest: "removed.txt", |
| 228 | }, |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 229 | ], |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 230 | visibility: ["//visibility:public"], |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 231 | } |
| 232 | |
| 233 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 234 | name: "frameworks-base-api-module-lib-current.txt", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 235 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 236 | ":android.net.ipsec.ike{.module-lib.api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 237 | ":framework-appsearch{.module-lib.api.txt}", |
Anton Hansson | 0eccccb | 2020-09-24 12:09:25 +0100 | [diff] [blame] | 238 | ":framework-graphics{.module-lib.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 239 | ":framework-media{.module-lib.api.txt}", |
| 240 | ":framework-mediaprovider{.module-lib.api.txt}", |
| 241 | ":framework-permission{.module-lib.api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 242 | ":framework-permission-s{.module-lib.api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 243 | ":framework-scheduling{.module-lib.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 244 | ":framework-sdkextensions{.module-lib.api.txt}", |
| 245 | ":framework-statsd{.module-lib.api.txt}", |
| 246 | ":framework-tethering{.module-lib.api.txt}", |
| 247 | ":framework-wifi{.module-lib.api.txt}", |
| 248 | ":non-updatable-module-lib-current.txt", |
| 249 | ], |
| 250 | out: ["module-lib-current.txt"], |
| 251 | tools: ["metalava"], |
| 252 | cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 253 | dists: [ |
| 254 | { |
| 255 | targets: ["droidcore"], |
| 256 | dir: "api", |
| 257 | dest: "module-lib-current.txt", |
| 258 | }, |
| 259 | { |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 260 | targets: ["sdk", "win_sdk"], |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 261 | dir: "apistubs/android/module-lib/api", |
| 262 | dest: "android.txt", |
| 263 | }, |
| 264 | ], |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 265 | } |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 266 | |
| 267 | genrule { |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 268 | name: "frameworks-base-api-module-lib-current-compat", |
| 269 | srcs: [ |
| 270 | ":android.api.module-lib.latest", |
| 271 | ":android-incompatibilities.api.module-lib.latest", |
| 272 | ":frameworks-base-api-current.txt", |
| 273 | ":frameworks-base-api-module-lib-current.txt", |
| 274 | ], |
| 275 | out: ["stdout.txt"], |
| 276 | tools: ["metalava"], |
| 277 | cmd: "$(location metalava) --no-banner --format=v2 " + |
| 278 | "--check-compatibility:api:released $(location :android.api.module-lib.latest) " + |
| 279 | // Note: having "public" be the base of module-lib is not perfect -- it should |
| 280 | // ideally be a merged public+system), but this will help when migrating from |
| 281 | // MODULE_LIBS -> public. |
| 282 | "--check-compatibility:base $(location :frameworks-base-api-current.txt) " + |
| 283 | "--baseline:compatibility:released $(location :android-incompatibilities.api.module-lib.latest) " + |
| 284 | "$(location :frameworks-base-api-module-lib-current.txt) " + |
| 285 | "> $(genDir)/stdout.txt", |
| 286 | } |
| 287 | |
| 288 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 289 | name: "frameworks-base-api-module-lib-removed.txt", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 290 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 291 | ":android.net.ipsec.ike{.module-lib.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 292 | ":framework-appsearch{.module-lib.removed-api.txt}", |
| 293 | ":framework-graphics{.module-lib.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 294 | ":framework-media{.module-lib.removed-api.txt}", |
| 295 | ":framework-mediaprovider{.module-lib.removed-api.txt}", |
| 296 | ":framework-permission{.module-lib.removed-api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 297 | ":framework-permission-s{.module-lib.removed-api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 298 | ":framework-scheduling{.module-lib.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 299 | ":framework-sdkextensions{.module-lib.removed-api.txt}", |
| 300 | ":framework-statsd{.module-lib.removed-api.txt}", |
| 301 | ":framework-tethering{.module-lib.removed-api.txt}", |
| 302 | ":framework-wifi{.module-lib.removed-api.txt}", |
| 303 | ":non-updatable-module-lib-removed.txt", |
| 304 | ], |
| 305 | out: ["module-lib-removed.txt"], |
| 306 | tools: ["metalava"], |
| 307 | cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 308 | dists: [ |
| 309 | { |
| 310 | targets: ["droidcore"], |
| 311 | dir: "api", |
| 312 | dest: "module-lib-removed.txt", |
| 313 | }, |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 314 | { |
| 315 | targets: ["sdk", "win_sdk"], |
| 316 | dir: "apistubs/android/module-lib/api", |
| 317 | dest: "removed.txt", |
| 318 | }, |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 319 | ], |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 320 | } |
Anton Hansson | a15427a | 2020-10-02 18:21:14 +0100 | [diff] [blame] | 321 | |
| 322 | genrule { |
| 323 | name: "combined-removed-dex", |
| 324 | srcs: [ |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 325 | ":frameworks-base-api-removed.txt", |
| 326 | ":frameworks-base-api-system-removed.txt", |
Anton Hansson | a15427a | 2020-10-02 18:21:14 +0100 | [diff] [blame] | 327 | ":android.car-stubs-docs{.removed-api.txt}", |
| 328 | ":android.car-system-stubs-docs{.removed-api.txt}", |
| 329 | ], |
| 330 | tool_files: ["gen_combined_removed_dex.sh"], |
| 331 | tools: ["metalava"], |
| 332 | out: ["combined-removed-dex.txt"], |
| 333 | cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)", |
| 334 | } |