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