From cc9d9422cb8bc88434dfb7a3093cfa4a626787d5 Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Thu, 6 Apr 2023 18:07:43 +0000 Subject: Update min_sdk_version used in testNoUpdatableJarsInBootImage Updatable apexes should set a min_sdk_version that is not current. This enforcement does not exist today, but will soon be added to the build system. In preparation for that, cleanup the min_sdk_version property used in this unit test. Test: go test ./apex Bug: 221087384 Change-Id: I8a163595f85cb0f8dabccc3321ef210215675714 --- apex/apex_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apex/apex_test.go') diff --git a/apex/apex_test.go b/apex/apex_test.go index 8a02a4a7f..d33d96c8e 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -7515,6 +7515,7 @@ func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, preparer androi "some-updatable-apex", ], permitted_packages: ["some.updatable.apex.lib"], + min_sdk_version: "33", } java_library { @@ -7554,6 +7555,7 @@ func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, preparer androi ], hostdex: true, compile_dex: true, + min_sdk_version: "33", } apex { @@ -7561,7 +7563,7 @@ func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, preparer androi key: "some-updatable-apex.key", java_libs: ["some-updatable-apex-lib"], updatable: true, - min_sdk_version: "current", + min_sdk_version: "33", } apex { @@ -7584,7 +7586,7 @@ func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, preparer androi key: "com.android.art.debug.key", bootclasspath_fragments: ["art-bootclasspath-fragment"], updatable: true, - min_sdk_version: "current", + min_sdk_version: "33", } bootclasspath_fragment { -- cgit v1.2.3-59-g8ed1b