#if UNITY_6000_0_OR_NEWER using System; using UnityEngine; namespace Amanotes.Core { internal static class AndroidBuildCompat { public static void DisableDebugSymbols() { try { var debugSymbolsType = Type.GetType( "UnityEditor.Android.UserBuildSettings+DebugSymbols, UnityEditor.Android.Extensions"); if (debugSymbolsType == null) return; var levelProperty = debugSymbolsType.GetProperty("level"); if (levelProperty == null) return; var enumType = Type.GetType("Unity.Android.Types.DebugSymbolLevel, Unity.Android.Types"); if (enumType == null) return; var none = Enum.Parse(enumType, "None"); levelProperty.SetValue(null, none); } catch (Exception ex) { Debug.LogWarning($"AmaDev: Could not disable Android debug symbols: {ex.Message}"); } } } } #endif