Merge "Proper API hierarchy between MODULE_LIBS and PRIV_APPS system APIs" am: 7bbcc22858 am: f5ad49afb2

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1360980

Change-Id: I7577d21c1696b47256f4fb514d7a3e06bcce7c88
This commit is contained in:
Makoto Onuki
2020-07-15 16:00:22 +00:00
committed by Automerger Merge Worker

View File

@@ -143,6 +143,7 @@ type apiScope struct {
droidstubsArgsForGeneratingApi []string
// True if the stubs source and api can be created by the same metalava invocation.
// TODO(b/146727827) Now that metalava supports "API hierarchy", do we still need it?
createStubsSourceAndApiTogether bool
// Whether the api scope can be treated as unstable, and should skip compat checks.
@@ -284,6 +285,7 @@ var (
sdkVersion: "module_current",
droidstubsArgs: []string{
"--show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES\\)",
"--show-for-stub-purposes-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\)",
},
})
apiScopeSystemServer = initApiScope(&apiScope{