diff options
author | 2023-03-01 23:38:49 +0000 | |
---|---|---|
committer | 2023-03-23 19:31:17 +0000 | |
commit | ca70fc40bd5d7bf3b24c25de0a06c2a6df17f7ea (patch) | |
tree | 8c21f8c82f722a14a4a63ce19b96ab84aa0081e1 /android/sdk_version.go | |
parent | ddfab6001487ee655552555ccf8130a09510e7e9 (diff) |
Update target_sdk_version from SdkSpec to ApiLevel
target_sdk_version signifies device version and does not need an sdkKind to
describe it fully. Update the type and cleanup existing usages. As a
side benefit, we also get better error handling since users can no
longer enter something like `public_30` as a valid target_sdk_version in bp
files
Test: m nothing
Test: no change in ninja files (this should be a no-op)
Bug: 208456999
Change-Id: I3c19245e29184bd9e5660ad8981966f64dfa9424
Diffstat (limited to 'android/sdk_version.go')
-rw-r--r-- | android/sdk_version.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/sdk_version.go b/android/sdk_version.go index 2107cbedb..26e002ae7 100644 --- a/android/sdk_version.go +++ b/android/sdk_version.go @@ -31,9 +31,9 @@ type SdkContext interface { // ReplaceMaxSdkVersionPlaceholder returns SdkSpec to replace the maxSdkVersion property of permission and // uses-permission tags if it is set. ReplaceMaxSdkVersionPlaceholder(ctx EarlyModuleContext) SdkSpec - // TargetSdkVersion returns the SdkSpec that corresponds to the target_sdk_version property of the current module, + // TargetSdkVersion returns the ApiLevel that corresponds to the target_sdk_version property of the current module, // or from sdk_version if it is not set. - TargetSdkVersion(ctx EarlyModuleContext) SdkSpec + TargetSdkVersion(ctx EarlyModuleContext) ApiLevel } // SdkKind represents a particular category of an SDK spec like public, system, test, etc. |