// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #if UNITY_WSA_10_0 && !UNITY_EDITOR using Microsoft.AppCenter.Unity.Crashes.Models; using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AppCenter.Unity.Crashes; namespace Microsoft.AppCenter.Unity.Crashes.Internal { class CrashesInternal { public static void AddNativeType(List nativeTypes) { } public static string TrackException(object exception, IDictionary properties, ErrorAttachmentLog[] attachments) { return ""; } public static AppCenterTask HasReceivedMemoryWarningInLastSessionAsync() { return AppCenterTask.FromCompleted(false); } public static AppCenterTask SetEnabledAsync(bool enabled) { return AppCenterTask.FromCompleted(); } public static AppCenterTask IsEnabledAsync() { return AppCenterTask.FromCompleted(false); } public static void GenerateTestCrash() { } public static AppCenterTask HasCrashedInLastSessionAsync() { return AppCenterTask.FromCompleted(false); } public static AppCenterTask GetLastSessionCrashReportAsync() { return AppCenterTask.FromCompleted(null); } public static void DisableMachExceptionHandler() { } private class Crashes { } public static void SetUserConfirmationHandler(Unity.Crashes.Crashes.UserConfirmationHandler handler) { } public static void NotifyWithUserConfirmation(Unity.Crashes.Crashes.ConfirmationResult answer) { } public static void StartCrashes() { } public static ErrorReport BuildHandledErrorReport(string errorReportId) { return null; } public static void SendErrorAttachments(string errorReportId, ErrorAttachmentLog[] attachments) { } public static AppCenterTask GetMinidumpDirectoryAsync() { return AppCenterTask.FromCompleted(""); } } } #endif