Merge "Add min_sdk_version to Rust modules." am: 0d399b5915
am: 6b31120281
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1518205 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4b7735516482cfb8ea743c087d147ef3cb85663e
This commit is contained in:
@@ -1789,6 +1789,31 @@ func TestApexMinSdkVersion_ErrorIfIncompatibleVersion(t *testing.T) {
|
||||
min_sdk_version: "30",
|
||||
}
|
||||
`)
|
||||
|
||||
testApexError(t, `module "libfoo.ffi".*: should support min_sdk_version\(29\)`, `
|
||||
apex {
|
||||
name: "myapex",
|
||||
key: "myapex.key",
|
||||
native_shared_libs: ["libfoo.ffi"],
|
||||
min_sdk_version: "29",
|
||||
}
|
||||
|
||||
apex_key {
|
||||
name: "myapex.key",
|
||||
public_key: "testkey.avbpubkey",
|
||||
private_key: "testkey.pem",
|
||||
}
|
||||
|
||||
rust_ffi_shared {
|
||||
name: "libfoo.ffi",
|
||||
srcs: ["foo.rs"],
|
||||
crate_name: "foo",
|
||||
apex_available: [
|
||||
"myapex",
|
||||
],
|
||||
min_sdk_version: "30",
|
||||
}
|
||||
`)
|
||||
}
|
||||
|
||||
func TestApexMinSdkVersion_Okay(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user