Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2017 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame] | 17 | package { |
| 18 | default_visibility: ["//visibility:private"], |
Bob Badour | 68fa342 | 2021-02-12 20:43:12 -0800 | [diff] [blame] | 19 | // See: http://go/android-license-faq |
| 20 | // A large-scale-change added 'default_applicable_licenses' to import |
| 21 | // all of the 'license_kinds' from "external_icu_license" |
| 22 | // to get the below license kinds: |
| 23 | // SPDX-license-identifier-Apache-2.0 |
| 24 | // SPDX-license-identifier-BSD |
| 25 | // SPDX-license-identifier-ICU |
| 26 | // SPDX-license-identifier-MIT |
| 27 | // SPDX-license-identifier-Unicode-DFS |
| 28 | // legacy_unencumbered |
| 29 | default_applicable_licenses: ["external_icu_license"], |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame] | 30 | } |
| 31 | |
Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 32 | //========================================================== |
| 33 | // build repackaged ICU for target |
| 34 | // |
| 35 | // This is done in the libcore/JavaLibraries.mk file as there are circular |
| 36 | // dependencies between ICU and libcore |
| 37 | //========================================================== |
| 38 | filegroup { |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 39 | name: "android_icu4j_public_api_files", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 40 | srcs: [ |
| 41 | ":android_icu4j_repackaged_src_files", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 42 | ], |
Jiyong Park | 684fe8a | 2019-08-19 13:23:42 +0900 | [diff] [blame] | 43 | path: "src/main/java", |
Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 44 | } |
| 45 | |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 46 | filegroup { |
| 47 | name: "android_icu4j_repackaged_src_files", |
| 48 | srcs: ["src/main/java/android/icu/**/*.java"], |
| 49 | path: "src/main/java", |
| 50 | } |
| 51 | |
| 52 | // The files contains Android-specific codes to expose intra-core APIs |
Victor Chang | 71d684d | 2020-05-15 18:17:49 +0100 | [diff] [blame] | 53 | // from ICU4J/ICU4C to libcore or core platform APIs to the framework. |
| 54 | // The package is com.android.icu.* and should not expose any public APIs. |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 55 | filegroup { |
| 56 | name: "libcore_icu_bridge_src_files", |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 57 | srcs: ["libcore_bridge/src/java/**/*.java"], |
| 58 | path: "libcore_bridge/src/java", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 59 | } |
| 60 | |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 61 | java_defaults { |
| 62 | name: "libcore_icu_bridge_defaults", |
| 63 | srcs: [ |
| 64 | "libcore_bridge/src/java/**/*.java", |
| 65 | ":app-compat-annotations-source", |
| 66 | ], |
Andrei Onea | 55651ce | 2020-12-09 16:16:43 +0000 | [diff] [blame] | 67 | jarjar_rules: "jarjar-rules.txt", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 68 | plugins: [ |
| 69 | "compat-changeid-annotation-processor", |
| 70 | ], |
| 71 | } |
| 72 | |
Martin Stjernholm | 3a15e59 | 2020-11-11 02:37:00 +0000 | [diff] [blame] | 73 | // A host library containing time zone related classes. Used for |
| 74 | // host-side tools and tests that have to deal with Android |
| 75 | // time zone data. |
| 76 | java_library_host { |
| 77 | name: "timezone-host", |
| 78 | visibility: [ |
| 79 | "//packages/modules/RuntimeI18n/apex", |
| 80 | "//system/timezone/distro/core", |
| 81 | ], |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 82 | srcs: [ |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 83 | "libcore_bridge/src/java/com/android/i18n/timezone/TzDataSetVersion.java", |
| 84 | ], |
Martin Stjernholm | 3a15e59 | 2020-11-11 02:37:00 +0000 | [diff] [blame] | 85 | libs: [ |
| 86 | "art.module.api.annotations", |
| 87 | ], |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 88 | } |
| 89 | |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 90 | // core-repackaged-icu4j contains only the repackaged ICU4J that does not |
| 91 | // use any internal or android specific code. If it ever did then it could depend on |
| 92 | // art-module-intra-core-api-stubs-system-modules (a superset) instead. |
| 93 | // It is important that core-icu4j is restricted to only use stable APIs from the ART module |
| 94 | // since it is in a different APEX module that can be updated independently. |
| 95 | java_library_static { |
| 96 | name: "core-repackaged-icu4j", |
| 97 | installable: false, |
| 98 | srcs: [":android_icu4j_repackaged_src_files"], |
Artur Satayev | 2fc4dc3 | 2019-12-10 12:12:35 +0000 | [diff] [blame] | 99 | libs: ["unsupportedappusage"], |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 100 | // The resource files are generated in the downstream branch master-icu-dev. |
| 101 | java_resource_dirs: ["resources"], |
| 102 | |
| 103 | sdk_version: "none", |
| 104 | system_modules: "art-module-public-api-stubs-system-modules", |
| 105 | |
| 106 | dxflags: ["--core-library"], |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 107 | apex_available: [ |
| 108 | "com.android.i18n", |
| 109 | ], |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 110 | errorprone: { |
| 111 | javacflags: [ |
| 112 | "-Xep:MissingOverride:OFF", // Ignore missing @Override. |
| 113 | "-Xep:ConstantOverflow:WARN", // Known constant overflow in SplittableRandom |
| 114 | ], |
| 115 | }, |
| 116 | } |
| 117 | |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 118 | // A separated core library that contains ICU4J because ICU4J will be in a different APEX module, |
| 119 | // not in ART module. |
| 120 | java_library { |
| 121 | name: "core-icu4j", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 122 | defaults: ["libcore_icu_bridge_defaults"], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 123 | visibility: [ |
Victor Chang | a12ff87 | 2020-05-15 18:20:51 +0100 | [diff] [blame] | 124 | "//packages/modules/RuntimeI18n/apex", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 125 | "//external/robolectric-shadows", |
| 126 | "//frameworks/layoutlib", |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 127 | "//art/build", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 128 | ], |
Jiyong Park | 0ddd1ef | 2019-12-19 02:11:30 +0000 | [diff] [blame] | 129 | apex_available: [ |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 130 | "com.android.i18n", |
| 131 | ], |
| 132 | permitted_packages: [ |
| 133 | "android.icu", |
| 134 | "com.android.icu", |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 135 | "com.android.i18n.timezone", |
Jiyong Park | 0ddd1ef | 2019-12-19 02:11:30 +0000 | [diff] [blame] | 136 | ], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 137 | installable: true, |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 138 | hostdex: false, |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 139 | |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 140 | static_libs: ["core-repackaged-icu4j"], |
Paul Duffin | 2626a2a | 2019-10-08 15:17:42 +0100 | [diff] [blame] | 141 | |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 142 | // It is important that core-icu4j is restricted to only use stable APIs from the ART module |
| 143 | // since it is in a different APEX module that can be updated independently. |
| 144 | sdk_version: "none", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 145 | system_modules: "art-module-intra-core-api-stubs-system-modules", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 146 | |
| 147 | dxflags: ["--core-library"], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 148 | } |
| 149 | |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 150 | platform_compat_config { |
| 151 | name: "icu4j-platform-compat-config", |
| 152 | src: ":core-icu4j", |
| 153 | } |
| 154 | |
Nicolas Geoffray | 329d035 | 2020-06-01 16:04:02 +0100 | [diff] [blame] | 155 | java_sdk_library { |
| 156 | name: "i18n.module.public.api", |
| 157 | visibility: [ |
Paul Duffin | c546649 | 2020-11-25 15:44:23 +0000 | [diff] [blame] | 158 | "//frameworks/base", |
| 159 | "//frameworks/base/api", |
Nicolas Geoffray | 329d035 | 2020-06-01 16:04:02 +0100 | [diff] [blame] | 160 | "//libcore", |
| 161 | "//packages/modules/RuntimeI18n/apex", |
| 162 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 163 | // this module. |
| 164 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 165 | // locations. |
| 166 | "//prebuilts:__subpackages__", |
| 167 | ], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 168 | srcs: [ |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 169 | ":android_icu4j_public_api_files", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 170 | ], |
Anton Hansson | 2dac858 | 2020-12-22 11:58:34 +0000 | [diff] [blame] | 171 | droiddoc_options: [ |
| 172 | "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* ", |
| 173 | ], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 174 | errorprone: { |
| 175 | javacflags: [ |
| 176 | "-Xep:MissingOverride:OFF", |
| 177 | ], |
| 178 | }, |
Nicolas Geoffray | 329d035 | 2020-06-01 16:04:02 +0100 | [diff] [blame] | 179 | api_dir: "api/public", |
| 180 | api_only: true, |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 181 | sdk_version: "none", |
| 182 | system_modules: "art-module-public-api-stubs-system-modules", |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 183 | |
Paul Duffin | c546649 | 2020-11-25 15:44:23 +0000 | [diff] [blame] | 184 | // The base name for the artifacts that are automatically published to the |
| 185 | // dist and which end up in one of the sub-directories of prebuilts/sdk. |
| 186 | // As long as this matches the name of the artifacts in prebuilts/sdk then |
| 187 | // the API will be checked for compatibility against the latest released |
| 188 | // version of the API. |
| 189 | dist_stem: "runtime-i18n", |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 190 | } |
| 191 | |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 192 | // Generates stub source files for the intra-core API of the I18N module. |
| 193 | // i.e. every class/member that is either in the public API or annotated with |
| 194 | // @IntraCoreApi. |
| 195 | // |
| 196 | // The API specification .txt files managed by this only contain the additional |
| 197 | // classes/members that are in the intra-core API but which are not the public |
| 198 | // API. |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 199 | java_sdk_library { |
| 200 | name: "i18n.module.intra.core.api", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 201 | defaults: ["libcore_icu_bridge_defaults"], |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 202 | srcs: [ |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 203 | ":android_icu4j_repackaged_src_files", |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 204 | ], |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 205 | visibility: [ |
| 206 | "//libcore:__subpackages__", |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 207 | "//packages/modules/RuntimeI18n/apex", |
| 208 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 209 | // this module. |
| 210 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 211 | // locations. |
| 212 | "//prebuilts:__subpackages__", |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 213 | ], |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 214 | api_dir: "api/intra", |
| 215 | api_only: true, |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 216 | sdk_version: "none", |
| 217 | system_modules: "art-module-intra-core-api-stubs-system-modules", |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 218 | |
| 219 | droiddoc_options: [ |
| 220 | "--hide-annotation libcore.api.Hide ", |
| 221 | "--show-single-annotation libcore.api.IntraCoreApi ", |
| 222 | "--skip-annotation-instance-methods=false ", |
| 223 | ], |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 224 | |
| 225 | // Don't copy any output files to the dist. |
| 226 | no_dist: true, |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 227 | } |
| 228 | |
Anton Hansson | a60edaf | 2020-12-21 17:07:12 +0000 | [diff] [blame] | 229 | // Referenced implicitly from i18n.module.intra.core.api. |
| 230 | filegroup { |
| 231 | name: "i18n.module.intra.core.api.api.public.latest", |
| 232 | srcs: [ |
| 233 | "api/intra/last-api.txt", |
| 234 | ], |
| 235 | } |
| 236 | |
| 237 | // Referenced implicitly from i18n.module.intra.core.api. |
| 238 | filegroup { |
| 239 | name: "i18n.module.intra.core.api-removed.api.public.latest", |
| 240 | srcs: [ |
| 241 | "api/intra/last-removed.txt", |
| 242 | ], |
| 243 | } |
| 244 | |
Jaewoong Jung | 3fd81f3 | 2021-03-09 16:06:07 -0800 | [diff] [blame] | 245 | // Referenced implicitly from i18n.module.intra.core.api. |
| 246 | filegroup { |
| 247 | name: "i18n.module.intra.core.api-incompatibilities.api.public.latest", |
| 248 | srcs: [ |
| 249 | "api/intra/last-incompatibilities.txt", |
| 250 | ], |
| 251 | } |
| 252 | |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 253 | // Referenced implicitly from legacy.i18n.module.platform.api. |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 254 | filegroup { |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 255 | name: "legacy.i18n.module.platform.api.api.public.latest", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 256 | srcs: [ |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 257 | "api/legacy_platform/last-api.txt", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 258 | ], |
| 259 | } |
| 260 | |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 261 | // Referenced implicitly from legacy.i18n.module.platform.api. |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 262 | filegroup { |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 263 | name: "legacy.i18n.module.platform.api-removed.api.public.latest", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 264 | srcs: [ |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 265 | "api/legacy_platform/last-removed.txt", |
| 266 | ], |
| 267 | } |
| 268 | |
Jaewoong Jung | 3fd81f3 | 2021-03-09 16:06:07 -0800 | [diff] [blame] | 269 | // Referenced implicitly from legacy.i18n.module.platform.api. |
| 270 | filegroup { |
| 271 | name: "legacy.i18n.module.platform.api-incompatibilities.api.public.latest", |
| 272 | srcs: [ |
| 273 | "api/legacy_platform/last-incompatibilities.txt", |
| 274 | ], |
| 275 | } |
| 276 | |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 277 | // Referenced implicitly from stable.i18n.module.platform.api. |
| 278 | filegroup { |
| 279 | name: "stable.i18n.module.platform.api.api.public.latest", |
| 280 | srcs: [ |
| 281 | "api/stable_platform/last-api.txt", |
| 282 | ], |
| 283 | } |
| 284 | |
| 285 | // Referenced implicitly from stable.i18n.module.platform.api. |
| 286 | filegroup { |
| 287 | name: "stable.i18n.module.platform.api-removed.api.public.latest", |
| 288 | srcs: [ |
| 289 | "api/stable_platform/last-removed.txt", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 290 | ], |
| 291 | } |
| 292 | |
Jaewoong Jung | 3fd81f3 | 2021-03-09 16:06:07 -0800 | [diff] [blame] | 293 | // Referenced implicitly from stable.i18n.module.platform.api. |
| 294 | filegroup { |
| 295 | name: "stable.i18n.module.platform.api-incompatibilities.api.public.latest", |
| 296 | srcs: [ |
| 297 | "api/stable_platform/last-incompatibilities.txt", |
| 298 | ], |
| 299 | } |
| 300 | |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 301 | // Generates stub source files for the core platform API of the I18N module. |
| 302 | // i.e. every class/member that is either in the public API or annotated with |
| 303 | // @CorePlatformApi. |
| 304 | // |
| 305 | // The API specification .txt files managed by this only contain the additional |
| 306 | // classes/members that are in the intra-core API but which are not in the public |
| 307 | // API. |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 308 | // |
| 309 | // For notes on the legacy and stable versions see mmodules/core_platform_api/Android.bp. |
| 310 | |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 311 | java_sdk_library { |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 312 | name: "legacy.i18n.module.platform.api", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 313 | defaults: ["libcore_icu_bridge_defaults"], |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 314 | srcs: [ |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 315 | ":android_icu4j_repackaged_src_files", |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 316 | ], |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 317 | visibility: [ |
| 318 | "//libcore:__subpackages__", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 319 | "//packages/modules/RuntimeI18n/apex", |
| 320 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 321 | // this module. |
| 322 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 323 | // locations. |
| 324 | "//prebuilts:__subpackages__", |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 325 | ], |
| 326 | hostdex: true, |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 327 | api_dir: "api/legacy_platform", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 328 | api_only: true, |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 329 | sdk_version: "none", |
Pete Gillin | 5e28f35 | 2020-06-02 16:22:22 +0100 | [diff] [blame] | 330 | system_modules: "legacy-art-module-platform-api-stubs-system-modules", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 331 | |
| 332 | droiddoc_options: [ |
| 333 | "--hide-annotation libcore.api.Hide ", |
| 334 | "--show-single-annotation libcore.api.CorePlatformApi ", |
| 335 | "--skip-annotation-instance-methods=false ", |
| 336 | ], |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 337 | |
| 338 | // Don't copy any output files to the dist. |
| 339 | no_dist: true, |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 340 | } |
| 341 | |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 342 | java_sdk_library { |
| 343 | name: "stable.i18n.module.platform.api", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 344 | defaults: ["libcore_icu_bridge_defaults"], |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 345 | srcs: [ |
| 346 | ":android_icu4j_repackaged_src_files", |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 347 | ], |
| 348 | visibility: [ |
| 349 | "//libcore:__subpackages__", |
| 350 | "//packages/modules/RuntimeI18n/apex", |
| 351 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 352 | // this module. |
| 353 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 354 | // locations. |
| 355 | "//prebuilts:__subpackages__", |
| 356 | ], |
| 357 | hostdex: true, |
| 358 | api_dir: "api/stable_platform", |
| 359 | api_only: true, |
| 360 | sdk_version: "none", |
| 361 | system_modules: "stable-art-module-platform-api-stubs-system-modules", |
| 362 | |
| 363 | droiddoc_options: [ |
| 364 | "--hide-annotation libcore.api.Hide ", |
| 365 | "--show-single-annotation libcore.api.CorePlatformApi\\(status=libcore.api.CorePlatformApi.Status.STABLE\\)", |
| 366 | "--skip-annotation-instance-methods=false ", |
| 367 | ], |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 368 | |
| 369 | // Don't copy any output files to the dist. |
| 370 | no_dist: true, |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 371 | } |
| 372 | |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 373 | //========================================================== |
| 374 | // build repackaged ICU tests |
| 375 | // |
| 376 | // Target builds against core-libart and core-oj so that it can access all the |
| 377 | // repackaged android.icu classes and methods and not just the ones available |
| 378 | // through the Android API. |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 379 | //========================================================== |
| 380 | java_test { |
| 381 | name: "android-icu4j-tests", |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame] | 382 | visibility: [ |
| 383 | "//cts/tests/tests/icu", |
| 384 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 385 | |
| 386 | srcs: [ |
| 387 | "src/main/tests/**/*.java", |
| 388 | "testing/src/**/*.java", |
| 389 | ], |
Victor Chang | d956e99 | 2018-11-20 11:07:18 +0000 | [diff] [blame] | 390 | java_resource_dirs: [ |
| 391 | "src/main/tests", |
Paul Duffin | 22d367a | 2019-06-25 12:06:26 +0100 | [diff] [blame] | 392 | "testing/src", |
Victor Chang | d956e99 | 2018-11-20 11:07:18 +0000 | [diff] [blame] | 393 | ], |
Paul Duffin | cddef92 | 2019-10-02 11:46:02 +0100 | [diff] [blame] | 394 | libs: [ |
| 395 | "core-icu4j", |
| 396 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 397 | static_libs: [ |
| 398 | "junit", |
| 399 | "junit-params", |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 400 | "tzdata-testing", |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 401 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 402 | |
Neil Fuller | 45359cf | 2018-10-02 16:42:42 +0100 | [diff] [blame] | 403 | patch_module: "java.base", |
Paul Duffin | 7f35fb9 | 2019-06-07 14:10:01 +0100 | [diff] [blame] | 404 | sdk_version: "none", |
Paul Duffin | cddef92 | 2019-10-02 11:46:02 +0100 | [diff] [blame] | 405 | system_modules: "art-module-intra-core-api-stubs-system-modules", |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 406 | } |