Alex Buynytskyy | bdcef7b | 2023-02-19 18:40:44 +0000 | [diff] [blame] | 1 | From 12eea1512f2612f41b5cf7004ee2e6a189d548d7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alex Buynytskyy <alexbuy@google.com> |
| 3 | Date: Thu, 01 Sep 2022 10:44:21 -0700 |
| 4 | Subject: [PATCH] Hacky workaround for half-finalized builds. |
| 5 | |
| 6 | Metalava increments the SDK level by one when it's not "REL", so we |
| 7 | temporarily force the build to be "REL" while we're still in the |
| 8 | process of finalizing it. |
| 9 | |
| 10 | This CL must be reverted as part of actually declaring "REL". |
| 11 | |
| 12 | Bug: none |
| 13 | Test: Build |
| 14 | Change-Id: I8c24c6dabec0270bc384d8465c582a4ddbe8bd6c |
| 15 | --- |
| 16 | |
| 17 | diff --git a/java/droidstubs.go b/java/droidstubs.go |
| 18 | index 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 | } |