currently I can do val someValue: String by extra and if I have a String named "someValue" my val is assigned extra["someValue"] with type String.
if I have val someValue: String by project it does not work, I get following error:
'getValue(Build_gradle, KProperty<*>)' function of property delegate is expected to return 'String', but returns 'Any?
Closing as delivered in 4e8a53b
@AlexCzar Do you know what is difference between by extra and by project actually?
@AlexCzar Do you know what is difference between
by extraandby projectactually?
Yes, I think I do.
In case you were really asking what those differences are and not if I'm aware of them:
If I'm not mistaken, by project is an analogue of project.findProperty(String) while by extra is an analogue of extra.properties.get(String)
Most helpful comment
Yes, I think I do.
In case you were really asking what those differences are and not if I'm aware of them:
If I'm not mistaken,
by projectis an analogue ofproject.findProperty(String)whileby extrais an analogue ofextra.properties.get(String)