app center;增加發送ping的秒
This commit is contained in:
1 parent
1bd1ffdb5a
commit
d754ff3b15
719 files changed
+34172
-2875
No files matched your search
@@ -0,0 +1,47 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
#if (!UNITY_IOS && !UNITY_ANDROID && !UNITY_WSA_10_0) || UNITY_EDITOR
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Crashes.Internal
|
||||
{
|
||||
class CrashesDelegate
|
||||
{
|
||||
#pragma warning disable 0067
|
||||
public static event Crashes.SendingErrorReportHandler SendingErrorReport;
|
||||
|
||||
public static event Crashes.SentErrorReportHandler SentErrorReport;
|
||||
|
||||
public static event Crashes.FailedToSendErrorReportHandler FailedToSendErrorReport;
|
||||
#pragma warning restore 0067
|
||||
|
||||
#pragma warning disable 0649
|
||||
internal static Crashes.GetErrorAttachmentsHandler GetErrorAttachmentsHandler;
|
||||
#pragma warning restore 0649
|
||||
|
||||
public static void SetDelegate()
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetShouldProcessErrorReportHandler(Crashes.ShouldProcessErrorReportHandler handler)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetGetErrorAttachmentsHandler(Crashes.GetErrorAttachmentsHandler handler)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetSentErrorReportHandler(Crashes.SentErrorReportHandler handler)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetFailedToSendErrorReportHandler(Crashes.FailedToSendErrorReportHandler handler)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetShouldAwaitUserConfirmationHandler(Crashes.UserConfirmationHandler handler)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf531b4631aed4bf18e9e07c9783f0d9
|
||||
timeCreated: 1497905875
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,93 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
#if (!UNITY_IOS && !UNITY_ANDROID && !UNITY_WSA_10_0) || UNITY_EDITOR
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.AppCenter.Unity.Crashes.Models;
|
||||
using Microsoft.AppCenter.Unity.Crashes;
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Crashes.Internal
|
||||
{
|
||||
#if UNITY_IOS
|
||||
using NativeType = System.IntPtr;
|
||||
using RawType = System.IntPtr;
|
||||
#elif UNITY_ANDROID
|
||||
using NativeType = System.IntPtr;
|
||||
using RawType = UnityEngine.AndroidJavaObject;
|
||||
#else
|
||||
using NativeType = System.Type;
|
||||
using RawType = System.Object;
|
||||
#endif
|
||||
|
||||
class CrashesInternal
|
||||
{
|
||||
public static void AddNativeType(List<NativeType> nativeTypes)
|
||||
{
|
||||
}
|
||||
|
||||
public static string TrackException(RawType exception, IDictionary<string, string> properties, ErrorAttachmentLog[] attachments)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
public static AppCenterTask<bool> HasReceivedMemoryWarningInLastSessionAsync()
|
||||
{
|
||||
return AppCenterTask<bool>.FromCompleted(false);
|
||||
}
|
||||
|
||||
public static AppCenterTask SetEnabledAsync(bool enabled)
|
||||
{
|
||||
return AppCenterTask.FromCompleted();
|
||||
}
|
||||
|
||||
public static AppCenterTask<bool> IsEnabledAsync()
|
||||
{
|
||||
return AppCenterTask<bool>.FromCompleted(false);
|
||||
}
|
||||
|
||||
public static AppCenterTask<string> GetMinidumpDirectoryAsync()
|
||||
{
|
||||
return AppCenterTask<string>.FromCompleted("");
|
||||
}
|
||||
|
||||
public static void GenerateTestCrash()
|
||||
{
|
||||
}
|
||||
|
||||
public static AppCenterTask<bool> HasCrashedInLastSessionAsync()
|
||||
{
|
||||
return AppCenterTask<bool>.FromCompleted(false);
|
||||
}
|
||||
|
||||
public static void DisableMachExceptionHandler()
|
||||
{
|
||||
}
|
||||
|
||||
public static AppCenterTask<ErrorReport> GetLastSessionCrashReportAsync()
|
||||
{
|
||||
return AppCenterTask<ErrorReport>.FromCompleted(null);
|
||||
}
|
||||
|
||||
public static void SetUserConfirmationHandler(Crashes.UserConfirmationHandler handler)
|
||||
{
|
||||
}
|
||||
|
||||
public static void NotifyWithUserConfirmation(Crashes.ConfirmationResult answer)
|
||||
{
|
||||
}
|
||||
|
||||
public static void StartCrashes()
|
||||
{
|
||||
}
|
||||
|
||||
public static ErrorReport BuildHandledErrorReport(string errorReportId)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void SendErrorAttachments(string errorReportId, ErrorAttachmentLog[] attachments)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c3f231fe8edd4d63807d60f84840df7
|
||||
timeCreated: 1512519361
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,46 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
#if (!UNITY_IOS && !UNITY_ANDROID && !UNITY_WSA_10_0) || UNITY_EDITOR
|
||||
using Microsoft.AppCenter.Unity.Crashes.Internal;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Crashes
|
||||
{
|
||||
#if UNITY_IOS
|
||||
using RawType = System.IntPtr;
|
||||
#elif UNITY_ANDROID
|
||||
using RawType = UnityEngine.AndroidJavaObject;
|
||||
#else
|
||||
using RawType = System.Object;
|
||||
#endif
|
||||
|
||||
public class WrapperExceptionInternal
|
||||
{
|
||||
public static RawType Create()
|
||||
{
|
||||
return default(RawType);
|
||||
}
|
||||
|
||||
public static void SetType(RawType exception, string type)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetMessage(RawType exception, string message)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetStacktrace(RawType exception, string stacktrace)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetInnerException(RawType exception, RawType innerException)
|
||||
{
|
||||
}
|
||||
|
||||
public static void SetWrapperSdkName(RawType exception, string sdkName)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40951c1d8e9b542f0a086a579d880ce8
|
||||
timeCreated: 1512582941
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user