diff --git a/Editor/BacktraceConfigurationEditor.cs b/Editor/BacktraceConfigurationEditor.cs index 8d0deb55..43ac46d8 100644 --- a/Editor/BacktraceConfigurationEditor.cs +++ b/Editor/BacktraceConfigurationEditor.cs @@ -137,7 +137,7 @@ public override void OnInspectorGUI() #endif -#if UNITY_ANDROID || UNITY_IOS || UNITY_STANDALONE_WIN || UNITY_GAMECORE_XBOXSERIES || UNITY_STANDALONE_OSX +#if UNITY_ANDROID || UNITY_IOS || UNITY_STANDALONE_WIN || UNITY_GAMECORE_XBOXSERIES || UNITY_GAMECORE_XBOXONE || UNITY_STANDALONE_OSX SerializedProperty captureNativeCrashes = serializedObject.FindProperty("CaptureNativeCrashes"); EditorGUILayout.PropertyField( captureNativeCrashes, @@ -148,7 +148,7 @@ public override void OnInspectorGUI() EditorGUILayout.HelpBox("You're using Backtrace-Unity integration with Unity 16b NDK support. Please contact Backtrace support for any additional help", MessageType.Warning); } #endif -#if !UNITY_GAMECORE_XBOXSERIES +#if !UNITY_GAMECORE_XBOXSERIES && !UNITY_GAMECORE_XBOXONE EditorGUILayout.PropertyField( serializedObject.FindProperty("HandleANR"), new GUIContent(BacktraceConfigurationLabels.LABEL_HANDLE_ANR)); diff --git a/Runtime/Model/BacktraceConfiguration.cs b/Runtime/Model/BacktraceConfiguration.cs index e9763f0d..ba8bd176 100644 --- a/Runtime/Model/BacktraceConfiguration.cs +++ b/Runtime/Model/BacktraceConfiguration.cs @@ -130,7 +130,7 @@ public class BacktraceConfiguration : ScriptableObject /// Capture native NDK Crashes. /// [Tooltip("Capture native NDK Crashes (ANDROID API 21+)")] -#elif UNITY_IOS || UNITY_STANDALONE_WIN || UNITY_GAMECORE_XBOXSERIES || UNITY_STANDALONE_OSX +#elif UNITY_IOS || UNITY_STANDALONE_WIN || UNITY_GAMECORE_XBOXSERIES || UNITY_GAMECORE_XBOXONE || UNITY_STANDALONE_OSX /// /// Capture native crashes. /// diff --git a/Runtime/Native/Base/NativeClientBase.cs b/Runtime/Native/Base/NativeClientBase.cs index 223d7e06..df707e31 100644 --- a/Runtime/Native/Base/NativeClientBase.cs +++ b/Runtime/Native/Base/NativeClientBase.cs @@ -1,4 +1,4 @@ -#if UNITY_ANDROID || UNITY_IOS || UNITY_STANDALONE_WIN || UNITY_GAMECORE_XBOXSERIES || UNITY_STANDALONE_OSX +#if UNITY_ANDROID || UNITY_IOS || UNITY_STANDALONE_WIN || UNITY_GAMECORE_XBOXSERIES || UNITY_GAMECORE_XBOXONE || UNITY_STANDALONE_OSX using Backtrace.Unity.Model; using Backtrace.Unity.Model.Breadcrumbs; using Backtrace.Unity.Extensions; diff --git a/Runtime/Native/NativeClientFactory.cs b/Runtime/Native/NativeClientFactory.cs index 5adeba07..09a55c58 100644 --- a/Runtime/Native/NativeClientFactory.cs +++ b/Runtime/Native/NativeClientFactory.cs @@ -14,7 +14,7 @@ internal static INativeClient CreateNativeClient(BacktraceConfiguration configur { #if UNITY_EDITOR return null; -#elif UNITY_GAMECORE_XBOXSERIES +#elif UNITY_GAMECORE_XBOXSERIES || UNITY_GAMECORE_XBOXONE return new XBOX.NativeClient(configuration, breadcrumbs, attributes, attachments); #elif UNITY_STANDALONE_WIN return new Windows.NativeClient(configuration, breadcrumbs, attributes, attachments); diff --git a/Runtime/Native/XBOX/NativeClient.cs b/Runtime/Native/XBOX/NativeClient.cs index 0d3bffa3..e73040dd 100644 --- a/Runtime/Native/XBOX/NativeClient.cs +++ b/Runtime/Native/XBOX/NativeClient.cs @@ -1,4 +1,4 @@ -#if UNITY_GAMECORE_XBOXSERIES +#if UNITY_GAMECORE_XBOXSERIES || UNITY_GAMECORE_XBOXONE using Backtrace.Unity.Interfaces; using Backtrace.Unity.Model; using Backtrace.Unity.Model.Breadcrumbs; @@ -41,7 +41,7 @@ private static extern bool BacktraceNativeXboxInit( /// Determine if the XBOX integration should be enabled /// private bool _enabled = -#if UNITY_GAMECORE_XBOXSERIES && !UNITY_EDITOR +#if !UNITY_EDITOR true; #else false;