Skip to content

Instantly share code, notes, and snippets.

View vpfrimmer's full-sized avatar

Vivien Pfrimmer vpfrimmer

View GitHub Profile
@vpfrimmer
vpfrimmer / CustomGradleProcessor.cs
Last active January 12, 2024 01:30
IPostGenerateGradleAndroidProject to replace the instal location to "auto" in the generated AndroidManifest - Unity 2022.x
using System.IO;
using UnityEditor;
using UnityEditor.Android;
using UnityEngine;
/// <summary>
/// Used as a workaround for Unity 2022.x who isn't able to set the installlocation value to "auto" in the AndroidManifest.xml file.
/// Should be put in the Assets/Editor folder, otherwise you'll get errors on build.
/// The issue can be followed here : https://issuetracker.unity3d.com/issues/android-install-location-changes-when-exporting-project
/// </summary>