Skip to content

Commit fc8a258

Browse files
committed
Add explanation.
1 parent ab92ff4 commit fc8a258

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/src/main/java/com/google/firebase/gradle/plugins/LibraryType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public String getFormat() {
2929
}
3030

3131
public String getComponentName() {
32+
// Due to the fact that multiple components are created for android libraries(1 per variant),
33+
// the "android" component contains artifacts from all 3 variants for Kotlin libraries, which is
34+
// invalid(bug in
35+
// https://github.com/wupdigital/android-maven-publish ?).
36+
// So we explicitly choose the "Release" variant for android libraries.
3237
if (this == ANDROID) {
3338
return name().toLowerCase() + "Release";
3439
}

0 commit comments

Comments
 (0)