Hi, can someone point me to a up-to-date Android s...
# gradle
j
Hi, can someone point me to a up-to-date Android stub project with the latest Kotlin with a build.gradle.kts , ideally with a few modules set up ?
m
I just migrated the Android Makers app to build.gradle.kts: https://github.com/paug/AndroidMakersApp/blob/2020/app/build.gradle.kts
It's not a stub project but it should be simple enough that you can remove our specific things
j
thanks for the quick reply, looking at it. What did you use as a reference resource? I mean: did you base this on some other project, or where did you learn about writing it?
m
Yea there's not tons of documentation but the source of the Android plugin is mostly up to date. That + autocomplete from intelliJ
j
Thanks! I find it quite surprising there is no up to date sample maintained by either Google or JetBrains or Gradle. Using a build.gradle.kts, with the latest version of Gradle, Kotlin, Android... )
m
You are not alone :-)
o
imo, that sample from the kdsl samples is up to date
the thing is that the DSL just hasn't changed, so there's no reason to really update it besides bumping the version
m
@octylFractal a typical android build.grafle.kts is usually more complex, flavors, signing config, proguard, buildFeatures, etc...
o
I guess the point is, you should extrapolate from the sample
the underlying API is the same for kotlin + groovy
m
Yes, maybe it's just a matter of putting the Android plugin doc more prominently
o
part of it might also be that iirc, android studio didn't really support
.kts
entirely until the recent builds
so suggesting it as an equal option in the documentation might lead to additional issues
m
yea maybe, I can't tell, I'm using intelliJ mainly...
I just found out https://google.github.io/android-gradle-dsl/current/ <= this is not updated with 3.5
o