From 12bff0be061b6dd78a4ea1a1068ad8701d1852be Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Fri, 4 Oct 2024 11:13:16 +1300 Subject: [PATCH] Update SentryInstrumentation.cs --- .../Platforms/Android/SentryInstrumentation.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/Sentry.Maui.Device.TestApp/Platforms/Android/SentryInstrumentation.cs b/test/Sentry.Maui.Device.TestApp/Platforms/Android/SentryInstrumentation.cs index f76cc76f8d..bc9aec6ad5 100644 --- a/test/Sentry.Maui.Device.TestApp/Platforms/Android/SentryInstrumentation.cs +++ b/test/Sentry.Maui.Device.TestApp/Platforms/Android/SentryInstrumentation.cs @@ -5,6 +5,12 @@ namespace Sentry.Maui.Device.TestApp; +/// +/// Decorating this class with the Instrumentation attribute means we can specify it as our instrumentation entry point +/// when launching from XHarness. We can then intercept the OnStart event to set environment variables on Android from +/// arguments passed to the instrumentation. Note that AndroidEnableMarshalMethods also has to be set in the csproj file +/// for this to work. +/// [Instrumentation(Name = "Sentry.Maui.Device.TestApp.SentryInstrumentation")] public class SentryInstrumentation : XHarnessInstrumentation {