Merge "Build framework-connectivity using module_current" am: eb0961067e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1703085

Change-Id: I67461b530e5292f94e3e1426ff0ec93ea657cf21
This commit is contained in:
Remi NGUYEN VAN
2021-05-12 14:05:55 +00:00
committed by Automerger Merge Worker

View File

@@ -25,6 +25,7 @@ package {
java_library { java_library {
name: "framework-connectivity-protos", name: "framework-connectivity-protos",
sdk_version: "module_current",
proto: { proto: {
type: "nano", type: "nano",
}, },
@@ -82,8 +83,7 @@ java_sdk_library {
name: "framework-connectivity", name: "framework-connectivity",
api_only: true, api_only: true,
defaults: ["framework-module-defaults"], defaults: ["framework-module-defaults"],
// TODO: build against module API installable: true,
platform_apis: true,
srcs: [ srcs: [
":framework-connectivity-sources", ":framework-connectivity-sources",
], ],
@@ -100,18 +100,15 @@ java_sdk_library {
libs: [ libs: [
"unsupportedappusage", "unsupportedappusage",
], ],
permitted_packages: ["android.net", "com.android.connectivity.aidl"], permitted_packages: [
"android.net",
"com.android.connectivity.aidl",
],
} }
java_library { java_library {
name: "framework-connectivity.impl", name: "framework-connectivity.impl",
// Instead of building against private API (framework.jar), sdk_version: "module_current",
// build against core_platform + framework-minus-apex + module
// stub libs. This allows framework.jar to depend on this library,
// so it can be part of the private API until all clients have been migrated.
// TODO: just build against module_api, and remove this jar from
// the private API.
sdk_version: "core_platform",
srcs: [ srcs: [
":framework-connectivity-sources", ":framework-connectivity-sources",
], ],
@@ -122,10 +119,10 @@ java_library {
], ],
}, },
libs: [ libs: [
"framework-minus-apex", // TODO (b/183097033) remove once module_current includes core_current
// TODO: just framework-tethering, framework-wifi when building against module_api "stable.core.platform.api.stubs",
"framework-tethering.stubs.module_lib", "framework-tethering",
"framework-wifi.stubs.module_lib", "framework-wifi",
"unsupportedappusage", "unsupportedappusage",
"ServiceConnectivityResources", "ServiceConnectivityResources",
], ],
@@ -136,5 +133,8 @@ java_library {
jarjar_rules: "jarjar-rules.txt", jarjar_rules: "jarjar-rules.txt",
apex_available: ["com.android.tethering"], apex_available: ["com.android.tethering"],
installable: true, installable: true,
permitted_packages: ["android.net", "com.android.connectivity.aidl"], permitted_packages: [
"android.net",
"com.android.connectivity.aidl",
],
} }