Hi,
First, we’re really happy to see that unity finally uses gradle to build Android apk.
Now I want to test this feature and use it to tweak our build process, depending on environment for example.
So I have a simple question, how can we provide a custom build.gradle file ?
We’d like to add some dexOptions, repositories, aar dependencies…
Thanks
That is not supported in the first version. But…
The templates used for creating the build.gradle files are in PlaybackEngines/AndroidPlayer/Tools/GradleTemplates
inside the Unity application directory, so as a hack in the current version you can try changing the mainTemplate.gradle directly*.*
Most likely we will add support for providing your own template inside your project in an upcoming patch release.
– Jonas
Ok thanks, this is really more than a nice to have feature, especially if you think that we want to use cloudbuild.