https://kotlinlang.org logo
#android
Title
# android
k

khacpv

05/22/2017, 5:06 PM
Hello, I'm trying Kotlin today. Seem
kotlin-android-extensions
only support for productFlavours without buildTypes. import
kotlinx.android.synthetic.debug.activity_main
but not success. How do you know use the plugin with buildTypes (ex: debug & release)? 🙌
v

vyacheslav.gerasimov

05/22/2017, 6:10 PM
Unfortunately it is not supported yet https://youtrack.jetbrains.com/issue/KT-14086
t

trevjones

05/22/2017, 6:14 PM
this issue along with lack of consistent caching behavior has me wanting to use databinding or butterknife over the kotlin extensions.
k

khacpv

05/22/2017, 6:45 PM
Thanks, hope supported soon!
l

louiscad

05/22/2017, 7:03 PM
@trevjones Use kotterknife or your own code to do it
t

trevjones

05/22/2017, 7:04 PM
yea currently doing manual find by ID in places where the variant isn’t supported. Then using lazy delegates for caching when using the view extensions.
2 Views