ansman/kotshi

Is this library needed now that moshi-codegen exists?

Closed this issue · 4 comments

Does it make sense to deprecated this library?

If I understand correctly, as of 1.6.0, moshi does everything this library does, or are there any differences?

Well, it's an interesting thought. Thought there are a couple of reasons why I don't think that's needed:

  • Kotshi has support for things that the built in support doesn't
    • Non reflective factory
    • Not using adapters for primitive types
    • Support for java classes
  • The codegen module has not been battle tested
  • Kotshi is free to explore new ideas without having to maintain paradigms that are consistent with Moshi's

Long term this library will probably be deprecated in favor for the codegen module though.

Okay then thanks for the great library. It feels like your project was the engine for the adapter generation going upstream :)

Moshi codegen has issues with generic classes

@schatzdesigns that's not true. As explained in the bug reports you commented on - your issues were programmer error around Moshi's Types.newParameteredType usage.