
Specifies the asset packs to include in your application. If this property is set to signingConfig.release, the build is signed. Specifies a custom ProGuard file to use for minification.Ĭomplete the signingConfigs section if this build is signed. Indicates whether to use ProGuard for minification in release builds. Indicates whether to minify release builds.

Indicates whether to use ProGuard for minification in debug builds. Indicates whether to minify debug builds. Unity sets the and APIVERSION to the same value ( Target API Level in the Android Player Settings).Īndroid Application ID. The minimum API version that supports the application. Unity sets the and TARGETSDKVERSION to the same value ( Target API Level in the Android Player Settings). This is the list of libraries that the project uses. For a list of template variables and a description of what each does, see Template variables. Unity now uses this adle file to create the adle file. This creates a Gradle template file called adle and displays the path to the file. In the Publishing Settings section, enable Custom Main Gradle Template.Select the Player tab then open Android Player Settings:.Open the Project Settings window (menu: Edit > Project Settings).The adle file contains template variables that specify build instructions.īy default, Unity uses the adle file from the Unity install directory to create the adle file for the unityLibrary module. adle: Contains the names of modules that the Gradle build system should include when it builds the project.project components that the instructions in the adle file use in the build process.gradle files that control the Gradle build process for the unityLibrary module: After Unity generates the adle file, or if one already exists in the plug-in’s directory, Unity copies the plug-in into the Gradle project. If an Android Library Project plug-in doesn’t include a adle file, Unity uses the adle file as a template to generate one. See the Providing a custom Gradle build template section on this page for more details. You can override the Unity template with a custom template in the Unity Editor. Instructions on how to build Unity as a Library. It depends on the unityLibrary project and outputs either an. This includes bundling, signing, and whether to split the apk. Instructions on how to build the Android application. In the exported project, root/launcher/adle folder


The locations are a combination of online repositories and java plugins inside of this project. It specifies which Android Gradle Plugin version to use and locations of java plugins.

Gradle template filesĬonfiguration information that affects all modules in the final Gradle project. Gradle projects can include, and depend on, other Gradle projects. Each Gradle template represents a single Gradle project. Gradle templates configure how to build an Android application using Gradle.
