Merge "Update usages of min_sdk_version that relies on (kind+level)"

This commit is contained in:
Spandan Das
2023-02-28 16:44:53 +00:00
committed by Gerrit Code Review
3 changed files with 44 additions and 10 deletions

View File

@@ -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) {