Merge "apex/apk: enforce min_sdk_version of all deps" am: 14a08f5b28
am: afdc5239b8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1287253 Change-Id: I63074e39f5f319789920e55802d4f7934b556e0a
This commit is contained in:
@@ -475,6 +475,24 @@ func TestUpdatableApps(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUpdatableApps_TransitiveDepsShouldSetMinSdkVersion(t *testing.T) {
|
||||
testJavaError(t, `module "bar".*: should support min_sdk_version\(29\)`, cc.GatherRequiredDepsForTest(android.Android)+`
|
||||
android_app {
|
||||
name: "foo",
|
||||
srcs: ["a.java"],
|
||||
updatable: true,
|
||||
sdk_version: "current",
|
||||
min_sdk_version: "29",
|
||||
static_libs: ["bar"],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "bar",
|
||||
sdk_version: "current",
|
||||
}
|
||||
`)
|
||||
}
|
||||
|
||||
func TestUpdatableApps_JniLibsShouldShouldSupportMinSdkVersion(t *testing.T) {
|
||||
testJava(t, cc.GatherRequiredDepsForTest(android.Android)+`
|
||||
android_app {
|
||||
|
Reference in New Issue
Block a user