Skip to content

Releases: ansman/kotshi

0.3.0-beta2

18 Dec 14:41
Compare
Choose a tag to compare
0.3.0-beta2 Pre-release
Pre-release

General changes (since beta1):

  • Strings are now treated as a primitive and an adapter is not used unless
    specifically requested. (#32)
  • Fixed a bug that caused adapters to not be requested for primitives when
    qualifiers were used. (#32)
  • Fix a bug where the generated code would not compile due to name conflicts. (#21)
  • Fix a bug that would generate uncompilable code when using a generic type with
    default values. (#12)
  • The generated code is now prettier and faster.

Code changes (since beta1):

  • Read object opening before initializing locals. (#15)
  • When writing null, perform an an early return. (#16)
  • Eliminate superfluous null check on allowed-nullable values. (#17)
  • Remove explicit null check for boxed primitives in writer. (#18)
  • Wrap the JSON name strings onto one per-line. (#19)
  • Add IDE imls and Gradle's reports dir to ignores. (#29)
  • Generated factory should be package-private. (#24)
  • Do not pass Moshi instance to adapter when not needed. (#28)
  • Do a direct continue inside switch cases. (#27)
  • Remove redundant apply. (#34)
  • Add a test for qualified primitive always calling an adapter. (#35)
  • Fix missing @JsonDefaultValue on custom annotation (#31)
  • Fix inconsistent indentation (#33)
  • Fix a bug that caused uncompilable code to be generated (#12)
  • Use NameAllocator for adapter fields, locals (#21)
  • Treat strings as primitive values and skip adapters per default (#32)

0.3.0-beta1

29 Nov 22:17
Compare
Choose a tag to compare
0.3.0-beta1 Pre-release
Pre-release
  • Implement support for supplying default values for properties (#10)
  • Update to Kotlin 1.2.0 (#11)

0.2.0

22 Nov 00:06
d54bfbf
Compare
Choose a tag to compare
  • Kotlin 1.1.60 is now used.
  • The generated adapters have been optimized so that if multiple fields use the same type the same adapter is used. (#7).
  • Adapters are no longer used for primitive types (int, float etc) since it can be bad for performance. This behavior can be disabled using a new flag. (#9).

0.1.1

29 Jun 12:45
Compare
Choose a tag to compare
  • Fixed a bug that caused adapter generation for inner classes to fail

0.1.0

29 Jun 08:49
Compare
Choose a tag to compare

Initial release.