summaryrefslogtreecommitdiff
path: root/scripts/lint-project-xml.py
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2021-04-02 08:45:46 +0900
committerJiyong Park <jiyong@google.com>2021-04-08 11:27:24 +0900
commit9231537fe2ea819e370ef332da8757d980b69a01 (patch)
treec447d4487bde1319ee95f826060bf5a230b52919 /scripts/lint-project-xml.py
parent64a90286c458b8bd001d2c2ef03bd0e2617c220f (diff)
SdkSpec is fully using ApiLevel
Previously, SdkSpec was constructed only from the user string. It didn't make use of the Config struct where information about the latest stable SDK version, etc. is recorded. As a result, the build system couldn't check if the sdk version "current" is referring to the in-development (i.e. not-yet-frozen) SDK version or the latest stable version. "current" was always assumed to be in-development (IsPreview() returns true) even when Platform_sdk_final == true. As the first step for fixing that, this change requires android.EarlyModuleContext to be passed when constructing SdkSpec from the user string. In the following changes, "current" will be mapped to either FutureApiLevel (10000) or one of the FinalApiLevels() depending on whether the platform SDK was finalized or not. Bug: 175678607 Test: m Change-Id: Ifea12ebf147ecccf12e7266dd382819806571543
Diffstat (limited to 'scripts/lint-project-xml.py')
0 files changed, 0 insertions, 0 deletions