From 3a6eced43169aa0386bd761a1ab0f3d49b5c3fcd Mon Sep 17 00:00:00 2001 From: Alyssa Ketpreechasawat Date: Thu, 22 Aug 2024 15:09:16 +0000 Subject: Set version code of apex and apk based on RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION. The build flag RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION is set up to allow the default version code of updatable apk and apex to be configurable per release config. Use the value from flag and remove old constant value (DefaultUpdatableModuleVersion). Bug: 369531931 Test: presubmit Test: flash cf and check version Change-Id: Ia0a8634360cbe83501cdafee888678836005620f --- java/testing.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'java/testing.go') diff --git a/java/testing.go b/java/testing.go index 0c79e9f7e..b27e69b80 100644 --- a/java/testing.go +++ b/java/testing.go @@ -30,6 +30,7 @@ import ( ) const defaultJavaDir = "default/java" +const testDefaultUpdatableModuleVersion = "340090000" // Test fixture preparer that will register most java build components. // @@ -61,6 +62,7 @@ var PrepareForTestWithJavaBuildComponents = android.GroupFixturePreparers( // Needed for the global lint checks provided from frameworks/base "prebuilts/cmdline-tools/AndroidGlobalLintChecker.jar": nil, }.AddToFixture(), + android.PrepareForTestWithBuildFlag("RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION", testDefaultUpdatableModuleVersion), ) var prepareForTestWithFrameworkDeps = android.GroupFixturePreparers( -- cgit v1.2.3-59-g8ed1b