Skip to content

Commit 508bddc

Browse files
authored
Wrap SDK name with double quotes as a name can contain a colon. (#887)
AAR sizes are uploaded to database via a JSON file. The SDK names (that contains colon characters) were not properly quoted, which made the JSON file invalid. This commit fixes it.
1 parent 1e5bddd commit 508bddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/groovy/com/google/firebase/gradle/plugins/measurement/aarsize/AarSizeJsonBuilder.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AarSizeJsonBuilder {
4343
}
4444

4545
def sizes = sdkAarSizes.collect {
46-
"[$pullRequestNumber, $it.first, $it.second]"
46+
"[$pullRequestNumber, \"$it.first\", $it.second]"
4747
}.join(", ")
4848

4949
def json = """

0 commit comments

Comments
 (0)