r/mAndroidDev • u/Fair-Degree-2200 null!! • Mar 15 '26
Best Practice / Employment Security We are not a serious industry...
- Simple app with 1 module
- (3 years later) Oh my god the app is huge and takes 20 minutes to compile, we need to split it in modules
- (3 years later) Oh my god the app has 10000 modules and Gradle spends 20 minutes in "configuration" and AS crashes when opening it. We need to merge modules together
- GOTO 10
49
Upvotes
40
u/Pika3323 Mar 15 '26
...the blog post is about git repositories and microservices, not gradle modules or Android apps.
Many gradle modules is still the way to go, whether it's a microservice in a monorepo or an Android app.
7
u/programadorthi Mar 15 '26
A miracle they didn't migrate to Bazel
6
u/vashchylau Mar 15 '26
in today's episode of "ai will replace software engineers":
14
u/Zhuinden DDD: Deprecation-Driven Development Mar 15 '26
But if there's only 1 module then the app isn't clean enough 🫠 we have to split the modules not because the users need it but because it looks nicer that way, hey can I interest you in some gradle convention plugins? You only need to rewrite it every 2 years, no nobody actually knows the syntax just copy paste it from Google's repo
4
u/SyrupInternational48 Mar 15 '26
It's not a krabby patty secret formula gradle is bad in the past.
they don;t have build cache and when they do it's still slow, So they suggesting us to split into modules.
make it all into library and load it on modules that need.
but now you maintaining 10.000 gradle modules across galaxy, but build fast it;s good.
bad news, one change of code can ripple through the galaxy.
now you kinda back to the main problem but still a lot faster than just one giant monorepo.
we have bazel, but bazel written without proper documentation.
we have buck which only support x86, worst than bazel.
we have buck2 never heard anybody use it.
KMM coming through, now you can depend only with gradle or grace of the jetbrain "Amper".
All the knowledge you have using bazel/buck now useless.
Worst Deprecation since AsyncTask
3
u/busymom0 Mar 15 '26
I just use plain HTML for my apps. If I am feeling frisky, then maybe a sprinkle of CSS. That's it.
2
u/Sottti Mar 15 '26
I'm not sure you understand the screenshot.