Version: 2023.1
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.
GradlePropertiesA representation of the gradle.properties file: {gradleProject}/settings.gradle.
GradleSettingsA representation of the settings.gradle file: {gradleProject}/settings.gradle.
LauncherBuildGradleA representation of the launcher build.gradle file: {gradleProject}/launcher/build.gradle.
LauncherManifestA representation of the launcher manifest file: {gradleProject}/launcher/src/main/AndroidManifest.xml.
ProjectLevelBuildGradleA representation of the project level (root) build.gradle file: {gradleProject}/build.gradle.
UnityLibraryBuildGradleA representation of the Unity library build.gradle file: {gradleProject}/unityLibrary/build.gradle.
UnityLibraryManifestA representation of the Unity library manifest file: {gradleProject}/unityLibrary/src/main/AndroidManifest.xml.

Public Methods

SetBuildGradleFileSets a new build.gradle file.
SetGradlePropertiesFileSets a new gradle.properties file.
SetGradleSettingsFileSets a new settings.gradle file.
SetManifestFileSets a new Android Manifest file.