From f65f67c62279db77ec727b9fe59e90ae4c4cb6dc Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Thu, 16 Apr 2020 18:48:28 +0900 Subject: [PATCH] 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. "apex_inherit" is a special alias to represent "the minimum of all that the apexes require". For now setting min_sdk_version doesn't change build outputs. But build-time checks will be added soon. Bug: 152655956 Test: m Change-Id: I23cb55a3a17ac242e7f599fe574ca30074b43506 --- Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Android.bp b/Android.bp index 42a91944b..bd109a21a 100644 --- a/Android.bp +++ b/Android.bp @@ -61,6 +61,8 @@ cc_library_static { "//apex_available:platform", "//apex_available:anyapex", ], + // being part of updatable apexes, this should work on older releases + min_sdk_version: "apex_inherit", native_bridge_supported: true, srcs: [ "src/algorithm.cpp", @@ -122,6 +124,8 @@ cc_library_shared { "//apex_available:platform", "//apex_available:anyapex", ], + // being part of updatable apexes, this should work on older releases + min_sdk_version: "apex_inherit", whole_static_libs: ["libc++_static"], stl: "none",