Is there a way to publish an Android library varia...
# multiplatform
m
Is there a way to publish an Android library variant "merged", without specifying a
BuildType
attribute ? Something like only publish the
release
variant and only expose that to consumers ? Right now, when a user declares a custom
BuildType
in
app/build.gradle.kts
, variant matching doesn't find the android lib and fallbacks to the JVM
s
Copy code
kotlin {
    android() {
        publishLibraryVariants("release")
    }
}
m
That still publishes the
BuildType = release
attribute
s
ah, sorry misunderstood.
m
Ideally, I'd like a way to remove that from the module files
No pb
s
Usually you publish release only and specify matching fallbacks for you custom variants in consumers.
t
@shikasd so you mean all consumers of the library will have to declare matching fallbacks?
s
iirc, yes
s
That sucks for consumers.
m
Issue filed there, upvotes welcome :-) https://youtrack.jetbrains.com/issue/KT-38954
👍 1