Is there a way to create a new AS project with Kotlin Gradle not Groovy?
Ash
08/28/2021, 5:45 PM
It is a pain that every time start a new project have to hand code the transition from Groovy to Kotlin in the Gradle files
m
Michal Klimczak
08/28/2021, 6:32 PM
Kotlin multiplatform project start as kts. You could probably start a kmm project and just remove everything but android ;)
👍🏽 1
a
Ash
08/28/2021, 6:38 PM
But no way to tell AS to build the kts file from the beginning ???
j
Javier
08/28/2021, 6:53 PM
Create your custom template in github for example
✔️ 1
Javier
08/28/2021, 6:54 PM
intellij has support for kts too but not sure about android projects via intellij, I am not using templates and I am creating manually kts files for years
👍🏽 1
a
Ash
08/28/2021, 6:55 PM
🙏🏽 @Javier Yes. But this is for a class and want to tech without using a Git repo to start. And want to teach Kotlin not Groovy :-)
✅ 1
Ash
08/28/2021, 7:44 PM
OK. The class now starts with a Git repo instead of AS ... hope in the future we can start with AS and generate a kts file ... Thanks everyone for the help 😀
🙂 1
e
ephemient
08/29/2021, 3:49 AM
I don't think I've ever used the IDE wizard to create a project, while I've created many by hand and a few by copy-paste, so IMO you'd be teaching real development that way…