Version: 2023.2
LanguageEnglish
  • C#

AndroidProjectFiles

class in UnityEditor.Android

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A class to store C# representations of all Gradle project files.

The class is used to pass Gradle configuration files objects to the AndroidProjectFilesModifier.OnModifyAndroidProjectFiles callback.

Properties

AdditionalLibrariesBuildGradleFilesA representation of the build.gradle files that were added to plugins (libraries) that didn't have a build.gradle file.

Public Methods

GetDataGets data that was set in the Setup method.
SetBuildGradleFileSets a new build.gradle file.
SetFileContentsSets the content of a new file to the specified bytes.
SetGradlePropertiesFileSets a new gradle.properties file.
SetGradleSettingsFileSets a new settings.gradle file.
SetManifestFileSets a new Android Manifest file.