diff options
author | Jooyung Han <jooyung@google.com> | 2020-05-21 22:36:36 +0900 |
---|---|---|
committer | Jooyung Han <jooyung@google.com> | 2020-05-30 01:19:54 +0900 |
commit | d4983a7ce7e1806741a689aa1d660634593b6f2c (patch) | |
tree | bdb0def4eb2ce3e50780409bd18dda2bf46cbb6f | |
parent | af7ab0e434074d79645d213db9d5df945c23691c (diff) | |
download | jsr305-d4983a7ce7e1806741a689aa1d660634593b6f2c.tar.gz |
Set min_sdk_version to be part of mainline modules
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.
For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.
From the perspective of Mainline modules, min_sdk_version should
be equal to or less than "29"(com.android.media). However, quick
code-search revealed that the minimum of min_sdk_versions of modules
depending on this seems to be 14.
Bug: 152655956
Test: m
Merged-In: Ib53d23a26ecebca4abcebedc4d4ba7cecc2119cb
Change-Id: Ib53d23a26ecebca4abcebedc4d4ba7cecc2119cb
(cherry picked from commit 459aacf9428125a06a2092cc48b14bb3710b49fd)
-rw-r--r-- | Android.bp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -17,6 +17,11 @@ java_library_static { host_supported: true, hostdex: true, sdk_version: "core_current", + apex_available: [ + "//apex_available:platform", + "com.android.media", + ], + min_sdk_version: "14", srcs: ["ri/src/main/java/**/*.java"], } |