AndroidProjectFiles.SetBuildGradleFile

Declaration

public void SetBuildGradleFile(string path, Unity.Android.Gradle.ModuleBuildGradleFile buildGradle);

Parameters

path The file path to place the build.gradle file at. This path is relative to the gradle project path.
buildGradle The representation of module build.gradle file.

Description

Sets a new build.gradle file.

To use this method, you must also declare your new file in AndroidProjectFilesModifier.Setup using the AndroidProjectFilesModifierContext.AdditionalOutputs.AddBuildGradleFile method.


Did you find this page useful? Please give it a rating: