xref: /aosp_15_r20/external/mobile-data-download/proto/Android.bp (revision 6fa6b5e213d87a73421ed761ee7d492115d5f98c)
1*6fa6b5e2SAndroid Build Coastguard Worker// Copyright (C) 2022 The Android Open Source Project
2*6fa6b5e2SAndroid Build Coastguard Worker//
3*6fa6b5e2SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*6fa6b5e2SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*6fa6b5e2SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*6fa6b5e2SAndroid Build Coastguard Worker//
7*6fa6b5e2SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*6fa6b5e2SAndroid Build Coastguard Worker//
9*6fa6b5e2SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*6fa6b5e2SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*6fa6b5e2SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*6fa6b5e2SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*6fa6b5e2SAndroid Build Coastguard Worker// limitations under the License.
14*6fa6b5e2SAndroid Build Coastguard Worker
15*6fa6b5e2SAndroid Build Coastguard Workerpackage {
16*6fa6b5e2SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
17*6fa6b5e2SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
18*6fa6b5e2SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "mobile_data_downloader_license"
19*6fa6b5e2SAndroid Build Coastguard Worker    // to get the below license kinds:
20*6fa6b5e2SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
21*6fa6b5e2SAndroid Build Coastguard Worker    default_applicable_licenses: ["mobile_data_downloader_license"],
22*6fa6b5e2SAndroid Build Coastguard Worker}
23*6fa6b5e2SAndroid Build Coastguard Worker
24*6fa6b5e2SAndroid Build Coastguard Workerjava_library {
25*6fa6b5e2SAndroid Build Coastguard Worker    name: "mobile-data-download-java-proto-lite",
26*6fa6b5e2SAndroid Build Coastguard Worker    proto: {
27*6fa6b5e2SAndroid Build Coastguard Worker        type: "lite",
28*6fa6b5e2SAndroid Build Coastguard Worker        include_dirs: ["external/protobuf/src"],
29*6fa6b5e2SAndroid Build Coastguard Worker        canonical_path_from_root: false,
30*6fa6b5e2SAndroid Build Coastguard Worker        //local_include_dirs: ["proto/*"],
31*6fa6b5e2SAndroid Build Coastguard Worker    },
32*6fa6b5e2SAndroid Build Coastguard Worker    static_libs: [
33*6fa6b5e2SAndroid Build Coastguard Worker        "libprotobuf-java-lite",
34*6fa6b5e2SAndroid Build Coastguard Worker    ],
35*6fa6b5e2SAndroid Build Coastguard Worker    srcs: [
36*6fa6b5e2SAndroid Build Coastguard Worker        "**/*.proto",
37*6fa6b5e2SAndroid Build Coastguard Worker        ":libprotobuf-internal-protos"],
38*6fa6b5e2SAndroid Build Coastguard Worker    sdk_version: "current",
39*6fa6b5e2SAndroid Build Coastguard Worker    min_sdk_version: "30",
40*6fa6b5e2SAndroid Build Coastguard Worker    jarjar_rules: "jarjar-rules.txt",
41*6fa6b5e2SAndroid Build Coastguard Worker    apex_available: [
42*6fa6b5e2SAndroid Build Coastguard Worker        "//apex_available:platform",
43*6fa6b5e2SAndroid Build Coastguard Worker        "com.android.adservices",
44*6fa6b5e2SAndroid Build Coastguard Worker        "com.android.extservices",
45*6fa6b5e2SAndroid Build Coastguard Worker        "com.android.ondevicepersonalization",
46*6fa6b5e2SAndroid Build Coastguard Worker    ],
47*6fa6b5e2SAndroid Build Coastguard Worker}
48