diff options
author | Spandan Das <spandandas@google.com> | 2023-02-28 16:44:53 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-02-28 16:44:53 +0000 |
commit | c8054ec6ac5ca37c24cd7bc8e917dad062042935 (patch) | |
tree | 184361d4b7da576658e80569fa0a6d9b1d7dd908 /apex | |
parent | e1271f8c2d8b3fd3cbfa6f2cb7ef9479bf4d4117 (diff) | |
parent | 7fa982c0ecd1af67b1d83e8bc932e398efc22d21 (diff) | |
download | soong-c8054ec6ac5ca37c24cd7bc8e917dad062042935.tar.gz |
Merge "Update usages of min_sdk_version that relies on (kind+level)"
Diffstat (limited to 'apex')
-rw-r--r-- | apex/apex_test.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index b7febe17f..9cfce689d 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -2128,6 +2128,34 @@ func TestApexMinSdkVersion_ErrorIfIncompatibleVersion(t *testing.T) { min_sdk_version: "30", } `) + + // Skip check for modules compiling against core API surface + testApex(t, ` + apex { + name: "myapex", + key: "myapex.key", + java_libs: ["libfoo"], + min_sdk_version: "29", + } + + apex_key { + name: "myapex.key", + public_key: "testkey.avbpubkey", + private_key: "testkey.pem", + } + + java_library { + name: "libfoo", + srcs: ["Foo.java"], + apex_available: [ + "myapex", + ], + // Compile against core API surface + sdk_version: "core_current", + min_sdk_version: "30", + } + `) + } func TestApexMinSdkVersion_Okay(t *testing.T) { |