Remi NGUYEN VAN | df41716 | 2021-01-15 16:22:36 +0900 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 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 | |
Bob Badour | 56ea88a | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "frameworks_base_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["frameworks_base_license"], |
| 24 | } |
| 25 | |
Remi NGUYEN VAN | fcdd15e | 2021-02-15 20:16:28 +0900 | [diff] [blame] | 26 | // TODO: use a java_library in the bootclasspath instead |
Remi NGUYEN VAN | df41716 | 2021-01-15 16:22:36 +0900 | [diff] [blame] | 27 | filegroup { |
Remi NGUYEN VAN | fcdd15e | 2021-02-15 20:16:28 +0900 | [diff] [blame] | 28 | name: "framework-connectivity-internal-sources", |
Remi NGUYEN VAN | df41716 | 2021-01-15 16:22:36 +0900 | [diff] [blame] | 29 | srcs: [ |
| 30 | "src/**/*.java", |
| 31 | "src/**/*.aidl", |
| 32 | ], |
| 33 | path: "src", |
| 34 | visibility: [ |
Remi NGUYEN VAN | fcdd15e | 2021-02-15 20:16:28 +0900 | [diff] [blame] | 35 | "//visibility:private", |
| 36 | ], |
| 37 | } |
| 38 | |
| 39 | filegroup { |
| 40 | name: "framework-connectivity-aidl-export-sources", |
| 41 | srcs: [ |
| 42 | "aidl-export/**/*.aidl", |
| 43 | ], |
| 44 | path: "aidl-export", |
| 45 | visibility: [ |
| 46 | "//visibility:private", |
| 47 | ], |
| 48 | } |
| 49 | |
| 50 | // TODO: use a java_library in the bootclasspath instead |
| 51 | filegroup { |
| 52 | name: "framework-connectivity-sources", |
| 53 | srcs: [ |
| 54 | ":framework-connectivity-internal-sources", |
| 55 | ":framework-connectivity-aidl-export-sources", |
| 56 | ], |
| 57 | visibility: [ |
Remi NGUYEN VAN | df41716 | 2021-01-15 16:22:36 +0900 | [diff] [blame] | 58 | "//frameworks/base", |
| 59 | "//packages/modules/Connectivity:__subpackages__", |
| 60 | ], |
Bob Badour | 56ea88a | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 61 | } |
Remi NGUYEN VAN | be17910 | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 62 | |
| 63 | java_sdk_library { |
| 64 | name: "framework-connectivity", |
| 65 | api_only: true, |
| 66 | defaults: ["framework-module-defaults"], |
| 67 | // TODO: build against module API |
| 68 | platform_apis: true, |
| 69 | srcs: [ |
| 70 | ":framework-connectivity-sources", |
| 71 | ], |
| 72 | aidl: { |
| 73 | include_dirs: [ |
| 74 | // Include directories for parcelables that are part of the stable API, and need a |
| 75 | // one-line "parcelable X" .aidl declaration to be used in AIDL interfaces. |
| 76 | // TODO(b/180293679): remove these dependencies as they should not be necessary once |
| 77 | // the module builds against API (the parcelable declarations exist in framework.aidl) |
| 78 | "frameworks/base/core/java", // For framework parcelables |
| 79 | "frameworks/native/aidl/binder", // For PersistableBundle.aidl |
| 80 | ], |
| 81 | }, |
| 82 | libs: [ |
| 83 | "unsupportedappusage", |
| 84 | ], |
| 85 | permitted_packages: ["android.net", "com.android.connectivity.aidl"], |
| 86 | } |