https://kotlinlang.org logo
Title
d

Davide Giuseppe Farella

04/11/2019, 4:20 PM
I’m trying to figure out how to set the name of my
apk
output with
gradle-dsl
d

Davide Giuseppe Farella

04/13/2019, 11:47 AM
That doesn’t apply to
kotlin-dsl
( or at least, I can’t figure out how to achieve that )
g

gildor

04/14/2019, 12:33 AM
kotlin-dsl uses exactly the same plugin, usage maybe a bit different, do you have example that doesn't work for you? You don't have access to defaultConfig.archiveBaseName property?
Maybe you need setter instead of property
d

Davide Giuseppe Farella

04/14/2019, 6:34 AM
Yes, I tried but weirdly I didn't find any setter function inside my
defaultConfig
🙈
g

gildor

04/14/2019, 12:59 PM
Any? So you don't have code completion in defaultConfig?
d

Davide Giuseppe Farella

04/14/2019, 2:33 PM
Yes I do, just can't find a
setProperty
or
operator set
g

gildor

04/14/2019, 11:16 PM
?? You don't need set property in this case, neither operator, there is should be setter setArchiveBaseName
d

Davide Giuseppe Farella

04/15/2019, 7:56 AM
I mean I don't have any function that could probably set that property 😁 I'll try that even if IDE doesn't suggest me.