diff options
author | 2022-07-05 16:44:10 +0000 | |
---|---|---|
committer | 2022-07-05 16:44:10 +0000 | |
commit | 014fded49d365a5700a28c1080590f2004c763cb (patch) | |
tree | 7d50ab929f45fbe991d4fe63582a76df9070bbaa /android/sdk.go | |
parent | ca51d6e7e6350f5e4243dcd9d532032fcc510ea4 (diff) | |
parent | f861df79071da021f9089ac85c6ecb5b64ea2ffc (diff) |
Merge "Stop exporting systemserverclasspath_fragment when targeting S"
Diffstat (limited to 'android/sdk.go')
-rw-r--r-- | android/sdk.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/android/sdk.go b/android/sdk.go index 2dc0bd7f3..533f2f4ec 100644 --- a/android/sdk.go +++ b/android/sdk.go @@ -661,6 +661,10 @@ type SdkMemberType interface { // an Android.bp file. RequiresBpProperty() bool + // SupportedBuildReleases returns the string representation of a set of target build releases that + // support this member type. + SupportedBuildReleases() string + // UsableWithSdkAndSdkSnapshot returns true if the member type supports the sdk/sdk_snapshot, // false otherwise. UsableWithSdkAndSdkSnapshot() bool @@ -773,6 +777,11 @@ type SdkMemberTypeBase struct { // property to be specifiable in an Android.bp file. BpPropertyNotRequired bool + // The name of the first targeted build release. + // + // If not specified then it is assumed to be available on all targeted build releases. + SupportedBuildReleaseSpecification string + SupportsSdk bool HostOsDependent bool @@ -793,6 +802,10 @@ func (b *SdkMemberTypeBase) RequiresBpProperty() bool { return !b.BpPropertyNotRequired } +func (b *SdkMemberTypeBase) SupportedBuildReleases() string { + return b.SupportedBuildReleaseSpecification +} + func (b *SdkMemberTypeBase) UsableWithSdkAndSdkSnapshot() bool { return b.SupportsSdk } |