Connect platforms with a Kotlin DSL
summary
Sprout is a Kotlin DSL plus CLI that generates platform code (Retrofit endpoints, Moshi models, Swift, PHP) from a machine‑readable Sprout Kotlin DSL seed, resource, printer, template and CLI — five parts — and runs a bidirectional diff on CI (Jenkins) as an API client contract to catch structural mismatches before apps crash. It also surfaces richer types (HTML, id) as type aliases so generated models keep JSON shape, give IDE hints, and avoid extra allocations that caused OOMs.
AI-written summary · about
chapters (8)
- 0:00Introduction and meetup plug
- 1:47What is a Kotlin DSL?
- 6:20Building a simple DSL
- 9:13Introducing Sprout library
- 12:04API client contracts
- 19:22Generating models with type info
- 26:45Future of code generation
- 33:13Guidelines and closing
related talks
22mUse Kotlin DSLs for your Gradle scripts
31mKotlin + Springboot = Decision making platform
48mEffective Multiplatform Kotlin Development
43mLevel up on Kotlin Multiplatform
37mUnlock Power of Kotlin DSL for Kubernetes
45mNext Level DSLs
38mMultiplatfom projects with Kotlin
52mSpring into Kotlin: How to Make the Magic even more Magical
