From ee87c60fc31cd9d11fa671aa03e5ef0675cc965d Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 19 Feb 2020 16:57:15 -0800 Subject: [PATCH] Add jni_uses_platform_api property to android_app Add a jni_uses_platform_api property that will be used to allow an app that builds against the SDK to use JNI libraries that build against platform APIs. For now it is a noop, but the next CL will make it enforcing. Bug: 149591057 Test: m checkbuild Change-Id: Id7b7c8186bf0e28498a4cfb15c6a6ccc95df3679 --- java/app.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/app.go b/java/app.go index 71bad683c..bcf08a775 100755 --- a/java/app.go +++ b/java/app.go @@ -79,6 +79,10 @@ type appProperties struct { // list of native libraries that will be provided in or alongside the resulting jar Jni_libs []string `android:"arch_variant"` + // if true, allow JNI libraries that link against platform APIs even if this module sets + // sdk_version. + Jni_uses_platform_apis *bool + // STL library to use for JNI libraries. Stl *string `android:"arch_variant"`