summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2020-08-26 11:26:47 -0700
committerDavid Su <dysu@google.com>2020-09-02 09:49:12 -0700
commit23776499cdc8ad703ff401659e864f1f9ae37b73 (patch)
treef2cb8da45f644a8432245b5ae13e3c3cc9391bbc /tools/aapt2/java/JavaClassGenerator_test.cpp
parentcde031845ef9a71297bd3c6d6904b1251daa79cd (diff)
Create SdkLevelUtil for Mainline
Mainline modules should disable new APIs on older SDK levels by checking the Build.VERSION constants. Before S SDK finalization, checking `VERSION.SDK_INT >= VERSION_CODES.S` doesn't work on S development builds, because SDK_INT = R = 30, while VERSION_CODES.S = 10000. Thus, check Build.VERSION.CODENAME as a workaround. Bug: 154742276 Test: tested on S dev build Change-Id: I51cb8136f6700fc93eb24f1941717b41d344dba4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions