diff options
author | Paul Duffin <paulduffin@google.com> | 2021-06-25 18:28:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-06-25 18:28:55 +0000 |
commit | 3ca616b9f9d98d3537a58ae201e0188ff13aba9a (patch) | |
tree | a6accd7b1d6f222b6dd1e7f978dd8e2c13c1eff0 /java/bootclasspath.go | |
parent | 05fc06ebcd4f9730a3ba05649043b3a2e3e76565 (diff) | |
parent | 05bbff90bd74bf1e1bb2d2131359b39891d8551f (diff) |
Merge "Add HiddenAPIScope to replace use of SdkKind" into sc-dev
Diffstat (limited to 'java/bootclasspath.go')
-rw-r--r-- | java/bootclasspath.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/bootclasspath.go b/java/bootclasspath.go index eddcc838b..d754fe6aa 100644 --- a/java/bootclasspath.go +++ b/java/bootclasspath.go @@ -225,13 +225,13 @@ type BootclasspathAPIProperties struct { Core_platform_api BootclasspathNestedAPIProperties } -// sdkKindToStubLibs calculates the stub library modules for each relevant android.SdkKind from the +// apiScopeToStubLibs calculates the stub library modules for each relevant *HiddenAPIScope from the // Stub_libs properties. -func (p BootclasspathAPIProperties) sdkKindToStubLibs() map[android.SdkKind][]string { - m := map[android.SdkKind][]string{} - for _, kind := range []android.SdkKind{android.SdkPublic, android.SdkSystem, android.SdkTest} { - m[kind] = p.Api.Stub_libs +func (p BootclasspathAPIProperties) apiScopeToStubLibs() map[*HiddenAPIScope][]string { + m := map[*HiddenAPIScope][]string{} + for _, apiScope := range hiddenAPISdkLibrarySupportedScopes { + m[apiScope] = p.Api.Stub_libs } - m[android.SdkCorePlatform] = p.Core_platform_api.Stub_libs + m[CorePlatformHiddenAPIScope] = p.Core_platform_api.Stub_libs return m } |