xref: /aosp_15_r20/external/apache-commons-io/Android.bp (revision 0c4d7b72e49a04598d65c566f44504b95342d75a)
1// Copyright (C) 2023 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
15package {
16    default_applicable_licenses: ["external_apache_commons_io_license"],
17}
18
19license {
20    name: "external_apache_commons_io_license",
21    visibility: [":__subpackages__"],
22    license_kinds: [
23        "SPDX-license-identifier-Apache-2.0",
24    ],
25    license_text: [
26        "LICENSE",
27        "LICENSE.txt",
28        "NOTICE.txt",
29    ],
30}
31
32java_library {
33    name: "apache-commons-io",
34    host_supported: true,
35    srcs: ["src/main/java/**/*.java"],
36    sdk_version: "current",
37    min_sdk_version: "33",
38
39    java_version: "1.8",
40    apex_available: [
41        "//apex_available:platform",
42        "com.android.ondevicepersonalization",
43    ],
44    visibility: [
45        "//external/apache-velocity-engine",
46        "//packages/modules/OnDevicePersonalization:__subpackages__",
47    ],
48}
49