From d1f42b8c78b9ca36f3f73745287aaa3f3eba49b0 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Tue, 17 Feb 2026 13:00:50 +0100 Subject: [PATCH] Hardcode IsTrimed to 'false' for Unity --- src/Sentry/Internal/AotHelper.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Sentry/Internal/AotHelper.cs b/src/Sentry/Internal/AotHelper.cs index 762ae63fce..29c55416ca 100644 --- a/src/Sentry/Internal/AotHelper.cs +++ b/src/Sentry/Internal/AotHelper.cs @@ -12,7 +12,12 @@ internal static class AotHelper static AotHelper() { - IsTrimmed = CheckIsTrimmed(); + IsTrimmed = +#if SENTRY_UNITY + false; +#else + CheckIsTrimmed(); +#endif } [UnconditionalSuppressMessage("Trimming", "IL2026: RequiresUnreferencedCode", Justification = AvoidAtRuntime)]