Does anyone know how to create a kotlin file programmatically?
k
kartoffelsup
05/12/2019, 5:16 PM
If you want to create Kotlin source code, I would suggest Kotlin Poet by square
i
Imran/Malic
05/12/2019, 5:27 PM
But it needs kapt right ?
k
kartoffelsup
05/12/2019, 5:45 PM
It's not required. But it highly depends on when you need the code to be generated. If it is enough at runtime, you wouldn't need kapt. You could also create a Gradle task to avoid kapt afaik.