xref: /aosp_15_r20/external/icu/android_icu4j/src/icu74/Android.bp (revision 0e209d3975ff4a8c132096b14b0e9364a753506e)
1//
2// Copyright (C) 2024 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
17package {
18    default_team: "trendy_team_java_core_libraries",
19    default_visibility: ["//visibility:private"],
20    // See: http://go/android-license-faq
21    // A large-scale-change added 'default_applicable_licenses' to import
22    // all of the 'license_kinds' from "external_icu_license"
23    // to get the below license kinds:
24    //   SPDX-license-identifier-Apache-2.0
25    //   SPDX-license-identifier-BSD
26    //   SPDX-license-identifier-ICU
27    //   SPDX-license-identifier-MIT
28    //   SPDX-license-identifier-Unicode-DFS
29    //   legacy_unencumbered
30    default_applicable_licenses: ["external_icu_license"],
31}
32
33// Small static library used by TwilightService in the system server and WallpaperPicker2 app. To
34// avoid @CorePlaformApi, the system server doesn't use CalendarAstronomer in android.icu.
35// Don't link this in boot classpath or Zygote to avoid class collision with the
36// com.ibm.icu.impl.CalendarAstronomer in the app classloader.
37java_library_static {
38    name: "icu4j_calendar_astronomer",
39    host_supported: false,
40    sdk_version: "core_current",
41    srcs: ["main/java/com/ibm/icu/impl/CalendarAstronomer.java"],
42    visibility: [
43        "//frameworks/base/services/core",
44        "//packages/apps/WallpaperPicker2",
45    ],
46}
47