From 2db83b483a4107b122e48741943b4e36c0bb97b1 Mon Sep 17 00:00:00 2001 From: Zhaoqing Xu Date: Fri, 25 Aug 2023 11:13:38 -0700 Subject: [PATCH] Default Starlark value of fields final_proguard_output_map and java_source_jar to None. This is to prevent breaking all the existing AndroidDexInfo usage by adding the field final_proguard_output_map PiperOrigin-RevId: 560145595 Change-Id: I09547aa6e742327f528bf2116a85cad100f407bc --- .../lib/starlarkbuildapi/android/AndroidDexInfoApi.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/android/AndroidDexInfoApi.java b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/android/AndroidDexInfoApi.java index 46153afed105dd..2417c01b553d62 100644 --- a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/android/AndroidDexInfoApi.java +++ b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/android/AndroidDexInfoApi.java @@ -104,7 +104,8 @@ interface Provider extends ProviderApi { @ParamType(type = NoneType.class), }, named = true, - doc = "The final proguard output map."), + doc = "The final proguard output map.", + defaultValue = "None"), @Param( name = "java_resource_jar", allowedTypes = { @@ -112,7 +113,8 @@ interface Provider extends ProviderApi { @ParamType(type = NoneType.class), }, named = true, - doc = "The final Java resource jar."), + doc = "The final Java resource jar.", + defaultValue = "None") }, selfCall = true) @StarlarkConstructor