xref: /aosp_15_r20/frameworks/base/obex/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Worker//
2*d57664e9SAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
3*d57664e9SAndroid Build Coastguard Worker//
4*d57664e9SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*d57664e9SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*d57664e9SAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*d57664e9SAndroid Build Coastguard Worker//
8*d57664e9SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*d57664e9SAndroid Build Coastguard Worker//
10*d57664e9SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*d57664e9SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*d57664e9SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*d57664e9SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*d57664e9SAndroid Build Coastguard Worker// limitations under the License.
15*d57664e9SAndroid Build Coastguard Worker//
16*d57664e9SAndroid Build Coastguard Worker
17*d57664e9SAndroid Build Coastguard Workerpackage {
18*d57664e9SAndroid Build Coastguard Worker    default_applicable_licenses: ["frameworks_base_obex_license"],
19*d57664e9SAndroid Build Coastguard Worker}
20*d57664e9SAndroid Build Coastguard Worker
21*d57664e9SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
22*d57664e9SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
23*d57664e9SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
24*d57664e9SAndroid Build Coastguard Worker//
25*d57664e9SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
26*d57664e9SAndroid Build Coastguard Worker//
27*d57664e9SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
28*d57664e9SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
29*d57664e9SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
30*d57664e9SAndroid Build Coastguard Worker//
31*d57664e9SAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private"
32*d57664e9SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
33*d57664e9SAndroid Build Coastguard Worker// used in the current project.
34*d57664e9SAndroid Build Coastguard Worker// See: http://go/android-license-faq
35*d57664e9SAndroid Build Coastguard Workerlicense {
36*d57664e9SAndroid Build Coastguard Worker    name: "frameworks_base_obex_license",
37*d57664e9SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
38*d57664e9SAndroid Build Coastguard Worker    license_kinds: [
39*d57664e9SAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
40*d57664e9SAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
41*d57664e9SAndroid Build Coastguard Worker    ],
42*d57664e9SAndroid Build Coastguard Worker    license_text: [
43*d57664e9SAndroid Build Coastguard Worker        "NOTICE",
44*d57664e9SAndroid Build Coastguard Worker    ],
45*d57664e9SAndroid Build Coastguard Worker}
46*d57664e9SAndroid Build Coastguard Worker
47*d57664e9SAndroid Build Coastguard Worker// No longer used. Only kept because the ObexPacket class is a public API.
48*d57664e9SAndroid Build Coastguard Worker// The library has been migrated to platform/external/obex.
49*d57664e9SAndroid Build Coastguard Workerjava_sdk_library {
50*d57664e9SAndroid Build Coastguard Worker    name: "javax.obex",
51*d57664e9SAndroid Build Coastguard Worker    srcs: ["javax/**/*.java"],
52*d57664e9SAndroid Build Coastguard Worker    api_packages: ["javax.obex"],
53*d57664e9SAndroid Build Coastguard Worker    dist_group: "android",
54*d57664e9SAndroid Build Coastguard Worker}
55