Why one app.gradle instead of two build.gradle files?


#1

Hi there,
Probably that’s something already discussed or obvious but I didn’t get the point for the app.gradle file that comes by default in some (probably all) templates.

Different from native Android projects (and also React Native ones), where there are at least two gradle files. Both called build.gradle, but one at root level for main project configurations, and second for app/module specificities, in Nativescript, there’s normally only one app.gradle file in App_Resources/Android, which I presume supplants both mentioned.

I was wondering, how does the CLI figure out what will end up in each build.gradle under platforms/android and why is this a better approach than having them separate from the beginning?

Thanks