Generating Kotlin code with KotinPoet

1 · Jake Wharton · May 16, 2017, midnight
Java code generation has become a popular solution to simplifying library code. Dagger generates interface implementations, Butter Knife generates Android UI boilerplate, and Wire generates implementations of value classes for binary encoding of data. Despite Kotlin’s strong interop with Java, the generated Java code for these libraries can feel foreign and convention-violating as they’re targeted at Java consumers and lack Kotlin features. Today we’re happy to announce KotlinPoet, a library for...