1From 12eea1512f2612f41b5cf7004ee2e6a189d548d7 Mon Sep 17 00:00:00 2001 2From: Alex Buynytskyy <alexbuy@google.com> 3Date: Thu, 01 Sep 2022 10:44:21 -0700 4Subject: [PATCH] Hacky workaround for half-finalized builds. 5 6Metalava increments the SDK level by one when it's not "REL", so we 7temporarily force the build to be "REL" while we're still in the 8process of finalizing it. 9 10This CL must be reverted as part of actually declaring "REL". 11 12Bug: none 13Test: Build 14Change-Id: I8c24c6dabec0270bc384d8465c582a4ddbe8bd6c 15--- 16 17diff --git a/java/droidstubs.go b/java/droidstubs.go 18index 5777b18..ec4a0f4 100644 19--- a/java/droidstubs.go 20+++ b/java/droidstubs.go 21@@ -386,7 +386,8 @@ 22 } 23 if apiVersions != nil { 24 cmd.FlagWithArg("--current-version ", ctx.Config().PlatformSdkVersion().String()) 25- cmd.FlagWithArg("--current-codename ", ctx.Config().PlatformSdkCodename()) 26+ // STOPSHIP: RESTORE THIS LOGIC WHEN DECLARING "REL" BUILD 27+ // cmd.FlagWithArg("--current-codename ", ctx.Config().PlatformSdkCodename()) 28 cmd.FlagWithInput("--apply-api-levels ", apiVersions) 29 } 30 } 31