Skip to content

Releases: streem/pbandk

Timestamp and ByteArray JSON serialization

11 Dec 22:13
Compare
Choose a tag to compare

Timestamps get serialized as ISO 8601 strings, and byte arrays as base64 strings.

Experimental JSON Support

07 Dec 12:39
Compare
Choose a tag to compare

This release includes experimental support for JSON serialization and deserialization. It is currently hard-coded to only support snake_case for well-known-types, and is currently not passing all the JSON conformance tests.

Named enums and package mapping

28 Nov 06:22
2a4a846
Compare
Choose a tag to compare

Features:

  • [#5] - Enums are now implemented as sealed classes, and specify a fromName(string: name) function for retrieving by name
  • [#6] - Adding a kotlin_package_mapping option, that can map proto packages to different kotlin packages

v0.5.1:

08 Nov 20:09
Compare
Choose a tag to compare
  • Annotate protoSize with @Transient for serialization interop

v0.5.0

26 Oct 22:55
Compare
Choose a tag to compare
  • Extend the Message.plus() function to work with a null object on the left side
  • Add Message.defaultInstance and Message?.orDefault()
  • [BREAKING CHANGE] Move oneof value to the parent sealed class. The value of a particular oneof field is now accessed via the name value rather than the name of the field.
  • Add properties on the parent message for all fields inside of a oneof

v0.4.1

25 Oct 23:13
Compare
Choose a tag to compare
  • Fallback to java_package when kotlin_package isn't specified
  • Fix overzealous underscores being appended to oneof type names

v0.4.0

01 Oct 20:28
Compare
Choose a tag to compare
  • Add generateProto as compile dependency (fixes cretz/pb-and-k#4)
  • Build an artifact compatible with the protobuf gradle plugin (fixes cretz/pb-and-k#18)
  • Fix path parsing for the kotlin_service_gen option
  • Check gradle wrapper 4.7 into git
  • Reference Streem's fork instead of upstream in package names