Hacker News new | ask | show | jobs
by mangoman 3325 days ago
This is pretty big. I really like Kotlin, but when I tried to integrate it into my app, it just didn't play well with popular libraries which rely on compile time code generation (Google's Dagger fork, Icepick, Parcels, etc). Has support for this improved / is it easy to integrate?
3 comments

Annotation processing has been improving a lot https://medium.com/@workingkills/pushing-the-limits-of-kotli...
We use Dagger2 extensively with Kotlin where I work and it works very well. I haven't used the other libraries you mentioned.
I have a project with Kotlin + Dagger + DataBinding.

Annotation processing works fine with kotlin.

First setup can be a pain though, especially if you are not familiar with Android or the gradle build system.

I'm hopeful that with official support this process will become smoother
It was rough because I had to write the script myself (one year ago). You need to know some things that are not obvious at first glance, like the fact that the databinding compiler is versioned with the android plugin for gradle.

Nowadays, you can just copy paste it from an existing github project.