blob: 5c851fd2f716e023ea9661cfbfbd5a5f1ce3d963 [file] [log] [blame]
Aaron Huangf73ff8c2019-12-06 18:12:24 +08001// Copyright (C) 2019 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
Aaron Huang1fb6a372020-01-03 20:35:55 +080015// 1. The "net-utils-framework-common" library is also compiled into the framework and placed on the
16// boot classpath. It uses jarjar rules so that anything outside the framework can use this
17// library directly.
18// 2. The "net-utils-services-common" library is for use by modules and frameworks/base/services.
19// It does not need to be jarjared because it is not placed on the bootclasspath.
Aaron Huangf73ff8c2019-12-06 18:12:24 +080020
21filegroup {
22 name: "net-utils-framework-common-srcs",
23 srcs: ["src_frameworkcommon/**/*.java"],
24 visibility: ["//frameworks/base"],
25}
26
27java_library {
28 name: "net-utils-framework-common",
29 srcs: [":net-utils-framework-common-srcs" ],
30 jarjar_rules: "jarjar-rules-shared.txt",
31 visibility: [
32 "//frameworks/base/packages/Tethering",
33 "//frameworks/opt/net/wifi",
34 "//frameworks/opt/net/ike",
35 "//frameworks/opt/telephony",
36 "//packages/modules/NetworkStack",
37 "//packages/modules/CaptivePortalLogin",
38 ]
39}
Aaron Huang1fb6a372020-01-03 20:35:55 +080040
41java_library {
42 name: "net-utils-services-common",
43 srcs: ["src_servicescommon/**/*.java"],
44 visibility: [
45 "//frameworks/base/services",
46 "//frameworks/base/packages/Tethering",
47 "//frameworks/opt/net/wifi/service",
48 "//frameworks/opt/net/ike",
49 "//packages/modules/NetworkStack",
50 "//packages/modules/CaptivePortalLogin",
51 ],
52}