Add framework-module-defaults for java_sdk_library am: bee7404dcc
Change-Id: I70337bd206245fae523565b7c502852fa9d18905
This commit is contained in:
@@ -63,6 +63,60 @@ mainline_service_stubs_args =
|
||||
"--hide-annotation android.annotation.Hide " +
|
||||
"--hide InternalClasses " // com.android.* classes are okay in this interface
|
||||
|
||||
// Defaults for mainline module provided java_sdk_library instances.
|
||||
java_defaults {
|
||||
name: "framework-module-defaults",
|
||||
|
||||
// Additional annotations used for compiling both the implementation and the
|
||||
// stubs libraries.
|
||||
libs: ["framework-annotations-lib"],
|
||||
|
||||
// Enable api lint. This will eventually become the default for java_sdk_library
|
||||
// but it cannot yet be turned on because some usages have not been cleaned up.
|
||||
// TODO(b/156126315) - Remove when no longer needed.
|
||||
api_lint: {
|
||||
enabled: true,
|
||||
},
|
||||
|
||||
// The API scope specific properties.
|
||||
public: {
|
||||
enabled: true,
|
||||
sdk_version: "module_current",
|
||||
},
|
||||
system: {
|
||||
enabled: true,
|
||||
sdk_version: "module_current",
|
||||
},
|
||||
module_lib: {
|
||||
enabled: true,
|
||||
sdk_version: "module_current",
|
||||
},
|
||||
|
||||
// The stub libraries must be visible to frameworks/base so they can be combined
|
||||
// into API specific libraries.
|
||||
stubs_library_visibility: [
|
||||
"//frameworks/base", // Framework
|
||||
],
|
||||
|
||||
// Set the visibility of the modules creating the stubs source.
|
||||
stubs_source_visibility: [
|
||||
// Ignore any visibility rules specified on the java_sdk_library when
|
||||
// setting the visibility of the stubs source modules.
|
||||
"//visibility:override",
|
||||
|
||||
// Currently, the stub source is not required for anything other than building
|
||||
// the stubs library so is private to avoid misuse.
|
||||
"//visibility:private",
|
||||
],
|
||||
|
||||
// Collates API usages from each module for further analysis.
|
||||
plugins: ["java_api_finder"],
|
||||
|
||||
// Mainline modules should only rely on 'module_lib' APIs provided by other modules
|
||||
// and the non updatable parts of the platform.
|
||||
sdk_version: "module_current",
|
||||
}
|
||||
|
||||
stubs_defaults {
|
||||
name: "framework-module-stubs-defaults-publicapi",
|
||||
args: mainline_framework_stubs_args,
|
||||
|
||||
Reference in New Issue
Block a user