rharter/auto-value-moshi

No generated MoshiJsonAdapters with Kotlin

Mauin opened this issue · 4 comments

Mauin commented

When using auto-value-moshi with Kotlin, it seems like kapt is not generating any sources related to Moshi. The basic AutoValue classes are being generated, just nothing related to Moshi.

Is this a known issue? Let me know if I can provide more details.

Can you provide an example class that show cases the issue?

Check that you're creating a public static method returning a factory. With
Kotlin's companion objects you'd have to use @JvmStatic so it creates an
actual static method.

On Sat, Nov 5, 2016, 9:38 AM Serj Lotutovici notifications@github.com
wrote:

Can you provide an example class that show cases the issue?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#70 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPJbpsU8aV47GC8OVn1k3hHWyXhVc4Fks5q7JTmgaJpZM4KqRnO
.

Mauin commented

Ah thanks so much @rharter that did the trick. Should this maybe go into the README as a note for Kotlin users who still want to use AutoValue with it's extensions?

I think the issue is good enough posterity for now