Merge "Correct the order of the SdkKinds" into main am: b92fc67f50

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

Change-Id: I28c96738139b0da7cb598ed14b9f5370e97ad150
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-05-04 01:46:48 +00:00
committed by Automerger Merge Worker

View File

@@ -40,9 +40,15 @@ type SdkContext interface {
// SdkKind represents a particular category of an SDK spec like public, system, test, etc. // SdkKind represents a particular category of an SDK spec like public, system, test, etc.
type SdkKind int type SdkKind int
// These are generally ordered from the narrower sdk version to the wider sdk version,
// but not all entries have a strict subset/superset relationship.
// For example, SdkTest and SdkModule do not have a strict subset/superset relationship but both
// are supersets of SdkSystem.
// The general trend should be kept when an additional sdk kind is added.
const ( const (
SdkInvalid SdkKind = iota SdkInvalid SdkKind = iota
SdkNone SdkNone
SdkToolchain // API surface provided by ART to compile other API domains
SdkCore SdkCore
SdkCorePlatform SdkCorePlatform
SdkIntraCore // API surface provided by one core module to another SdkIntraCore // API surface provided by one core module to another
@@ -53,7 +59,6 @@ const (
SdkModule SdkModule
SdkSystemServer SdkSystemServer
SdkPrivate SdkPrivate
SdkToolchain // API surface provided by ART to compile other API domains
) )
// String returns the string representation of this SdkKind // String returns the string representation of this SdkKind