xref: /aosp_15_r20/external/icu/android_icu4j/src/icu74/Android.bp (revision 0e209d3975ff4a8c132096b14b0e9364a753506e)
1*0e209d39SAndroid Build Coastguard Worker//
2*0e209d39SAndroid Build Coastguard Worker// Copyright (C) 2024 The Android Open Source Project
3*0e209d39SAndroid Build Coastguard Worker//
4*0e209d39SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*0e209d39SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*0e209d39SAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*0e209d39SAndroid Build Coastguard Worker//
8*0e209d39SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*0e209d39SAndroid Build Coastguard Worker//
10*0e209d39SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*0e209d39SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*0e209d39SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*0e209d39SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*0e209d39SAndroid Build Coastguard Worker// limitations under the License.
15*0e209d39SAndroid Build Coastguard Worker//
16*0e209d39SAndroid Build Coastguard Worker
17*0e209d39SAndroid Build Coastguard Workerpackage {
18*0e209d39SAndroid Build Coastguard Worker    default_team: "trendy_team_java_core_libraries",
19*0e209d39SAndroid Build Coastguard Worker    default_visibility: ["//visibility:private"],
20*0e209d39SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
21*0e209d39SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
22*0e209d39SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_icu_license"
23*0e209d39SAndroid Build Coastguard Worker    // to get the below license kinds:
24*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
25*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-BSD
26*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-ICU
27*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-MIT
28*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Unicode-DFS
29*0e209d39SAndroid Build Coastguard Worker    //   legacy_unencumbered
30*0e209d39SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_icu_license"],
31*0e209d39SAndroid Build Coastguard Worker}
32*0e209d39SAndroid Build Coastguard Worker
33*0e209d39SAndroid Build Coastguard Worker// Small static library used by TwilightService in the system server and WallpaperPicker2 app. To
34*0e209d39SAndroid Build Coastguard Worker// avoid @CorePlaformApi, the system server doesn't use CalendarAstronomer in android.icu.
35*0e209d39SAndroid Build Coastguard Worker// Don't link this in boot classpath or Zygote to avoid class collision with the
36*0e209d39SAndroid Build Coastguard Worker// com.ibm.icu.impl.CalendarAstronomer in the app classloader.
37*0e209d39SAndroid Build Coastguard Workerjava_library_static {
38*0e209d39SAndroid Build Coastguard Worker    name: "icu4j_calendar_astronomer",
39*0e209d39SAndroid Build Coastguard Worker    host_supported: false,
40*0e209d39SAndroid Build Coastguard Worker    sdk_version: "core_current",
41*0e209d39SAndroid Build Coastguard Worker    srcs: ["main/java/com/ibm/icu/impl/CalendarAstronomer.java"],
42*0e209d39SAndroid Build Coastguard Worker    visibility: [
43*0e209d39SAndroid Build Coastguard Worker        "//frameworks/base/services/core",
44*0e209d39SAndroid Build Coastguard Worker        "//packages/apps/WallpaperPicker2",
45*0e209d39SAndroid Build Coastguard Worker    ],
46*0e209d39SAndroid Build Coastguard Worker}
47