5 ms·
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 ti
by mangoman 9y 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?
- floatboth 9y agoAnnotation processing has been improving a lot https://medium.com/@workingkills/pushing-the-limits-of-kotlin-annotation-processing-8611027b6711 https://medium.com/@workingkills/pushing-the-limits-of-kotli...
- gagege 9y agoWe use Dagger2 extensively with Kotlin where I work and it works very well. I haven't used the other libraries you mentioned.
- on_and_off 9y agoI 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.
- theWheez 9y agoI'm hopeful that with official support this process will become smoother
- on_and_off 9y agoIt 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.