Граф коммитов

72 Коммитов

Автор SHA1 Сообщение Дата
Ben Bader 4490117b05
Update to Kotlin 1.3 (#254) 2018-10-30 10:41:04 -07:00
Ben Bader 0f2d5e1175
Use array literal for @Generated#value (#240) 2018-09-13 15:37:00 -07:00
Ben Bader 5ff45ccfb1
Emit @Generated annotation on generated types (#235) 2018-09-06 14:35:50 -07:00
Ben Bader d510978323
Add missing license headers (#229) 2018-08-15 17:02:37 -07:00
Ben Bader 2486c21a39
Kotlin: generate coroutine-based service clients (#225)
This is the simplest possible coroutine implementation. It's a thin veneer over the AsyncClientBase code, using suspendCoroutine to get at the raw Continuation object which is passed to the generated MethodCall callbacks.

We can explore more interesting implementations as coroutine I/O is finalized by JetBrains.

Fixes #211
2018-08-15 13:15:24 -07:00
Ben Bader 6d00657a7c
Add lots more documentation (#222) 2018-08-13 12:55:32 -07:00
Ben Bader 2785ae1f09
Fix read methods for maps of collections (#220) 2018-08-08 17:06:57 -07:00
Ben Bader 6382545567
Fix scope collisions between enums in maps (#218)
In #217, we fixed broken generated Java for maps of enum types.  As it happens, the same thing was broken in Kotlin.  This commit fixes it.
2018-08-08 14:51:39 -07:00
Ben Bader 3364494579
Kotlin/builderless adapters (#215) 2018-08-07 10:04:27 -07:00
Ben Bader d7af683722
Support custom collection types in Kotlin code (#214) 2018-08-06 16:49:51 -07:00
Ben Bader 052889e82d
Generate Parcelize annotations for Kotlin data classes (#213) 2018-08-06 13:21:20 -07:00
Ben Bader a18d577bf1
Generate typealiases for typedefs (#206) 2018-08-05 18:07:36 -07:00
Ben Bader 527223bdad
Convert ConstValueElement to a sealed class (#203) 2018-08-05 01:02:13 -07:00
Ben Bader cc500012a2
Remove JvmField, etc, and replace getter funs with vals (#198) 2018-08-04 22:06:21 -07:00
Ben Bader 6cfcbd4b67
Kotlin services (#197)
This is good enough to get the next release out the door, but is not the end of the story for services.  I still want to investigate a coroutine-based client, but that's a larger project potentially involving a kotlin-specific version of `thrifty-runtime` to support it.
2018-08-04 11:36:43 -07:00
Ben Bader 4f6d3a497d
Fix maven-push, bugs (#196) 2018-08-02 12:56:55 -07:00
Ben Bader 3d33badd83
Allow int literals for consts of type double (#195) 2018-07-31 15:54:05 -07:00
Ben Bader 0b5c3e9cb4
Use NameAllocators to avoid name conflicts (#194) 2018-07-31 15:29:58 -07:00
Ben Bader 54ff0130ba
Emit equals, toString, and hashCode for empty structs (#192) 2018-07-31 14:06:37 -07:00
Ben Bader d1182a09bf
File per type (#190)
Fixes #188
2018-07-31 11:31:11 -07:00
Ben Bader 32fa3ac5de
CLI rework, kotlin codegen bugfix, build ordering bugfix (#187) 2018-07-30 21:30:52 -07:00
Ben Bader 75067bcbcf
Kotlin codegen (#183) 2018-07-29 20:42:37 -07:00