You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
I'm currently converting our Android build file from Groovy to Kotlin DSL, so far everything worked very well 馃憤
However, I'm struggling with defining properties per product flavor for Fabric.
This is because the Android type for product flavor doesn't declare that it is ExtensionAware. The closer ExtensionAware type in that scope is the Project, hence the properties going to the project.
Hey,
I'm currently converting our Android build file from Groovy to Kotlin DSL, so far everything worked very well 馃憤
However, I'm struggling with defining properties per
product flavor
for Fabric.This is the old (shortened) Groovy code:
where the property would change depending on the variant I'm currently building.
I changed it like this:
Now, always the last assigned value is used, so
release
is always overridingdev
. I also tried:or
extra["betaDistributionGroupAliasesFilePath"]
but I always get the same output, that the last assigned value is used.It seems in Groovy
ext
was perflavor
while with Kotlin DSLext
is set per project, so it overrides the value.Am I misunderstanding something? Is it a bug?
Kotlin 1.3.10
Gradle 4.10
The text was updated successfully, but these errors were encountered: