summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2018-08-16 10:41:36 +0100
committerMathew Inwood <mathewi@google.com>2018-08-22 09:54:46 +0100
commitd991a408929a88c5fa37b069dd1a463657a01b6c (patch)
tree91ac15e0c0e9e83593e72f0c52ae54a39289e83e /tools/aapt2/java/JavaClassGenerator_test.cpp
parentfc38791616b155d9bb1353fb217993381b890f46 (diff)
Add maxTargetSdk to @UnsupportedAppUsage annotation.
This will be used by the runtime to limit access to APIs based on their targetSdkVersion in the manifest. When adding new maxTargetSdk values to non-SDK interfaces, we use the SDK version of the latest major (i.e. new letter) release of Android that has been made public. e.g. while Q is in development, we add new maxTargetSdk values of 28 (Build.VERSION_CODES.P), even if a P MR1 has already been released. We do this because: - It reduces the number of distinct SDK levels that have to be considered and enforced in the runtime. - Using past releases means that there is always a well established value to use. See go/hidden-api-annotations for more context. Test: m Bug: 110868826 Change-Id: Idbe78510acf538ce941a9a61a64fcc0bdc4de38e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions