app center;增加發送ping的秒

This commit is contained in:
Caiyanpeng committed 2021-11-12 16:21:13 +08:00
1 parent 1bd1ffdb5a
commit d754ff3b15
719 files changed
+34172 -2875

No files matched your search

@@ -0,0 +1,106 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.Collections.Generic;
using Microsoft.AppCenter.Unity.Distribute.Internal;
namespace Microsoft.AppCenter.Unity.Distribute
{
#if UNITY_IOS || UNITY_ANDROID
using RawType = System.IntPtr;
#else
using RawType = System.Type;
#endif
public class Distribute
{
// Used by App Center Unity Editor Extensions: https://github.com/Microsoft/AppCenter-SDK-Unity-Extension
public const string DistributeSDKVersion = "4.3.0";
public static void PrepareEventHandlers()
{
DistributeInternal.PrepareEventHandlers();
}
public static void AddNativeType(List<RawType> nativeTypes)
{
DistributeInternal.AddNativeType(nativeTypes);
}
public static AppCenterTask<bool> IsEnabledAsync()
{
return DistributeInternal.IsEnabledAsync();
}
public static AppCenterTask SetEnabledAsync(bool enabled)
{
return DistributeInternal.SetEnabledAsync(enabled);
}
public static void CheckForUpdate()
{
DistributeInternal.CheckForUpdate();
}
/// <summary>
/// Change the base URL opened in the browser to get update token from user login information.
/// </summary>
/// <param name="installUrl">Install base URL.</param>
public static void SetInstallUrl(string installUrl)
{
DistributeInternal.SetInstallUrl(installUrl);
}
/// <summary>
/// Change the base URL used to make API calls.
/// </summary>
/// <param name="apiUrl">API base URL.</param>
public static void SetApiUrl(string apiUrl)
{
DistributeInternal.SetApiUrl(apiUrl);
}
/// <summary>
/// Sets the release available callback.
/// </summary>
/// <value>The release available callback.</value>
public static ReleaseAvailableCallback ReleaseAvailable
{
get; set;
}
/// <summary>
/// Sets the app will exit callback.
/// </summary>
/// <value>The app will exit callback.</value>
public static WillExitAppCallback WillExitApp
{
get; set;
}
/// <summary>
/// Sets the no release available callback.
/// </summary>
/// <value>The no release available callback.</value>
public static NoReleaseAvailableCallback NoReleaseAvailable
{
get; set;
}
public static void StartDistribute()
{
DistributeInternal.StartDistribute();
}
/// <summary>
/// If update dialog is customized by returning <c>true</c> in <see cref="ReleaseAvailableCallback"/>,
/// You need to tell the distribute SDK using this function what is the user action.
/// </summary>
/// <param name="updateAction">Update action. On mandatory update, you can only pass <see cref="UpdateAction.Update"/></param>
public static void NotifyUpdateAction(UpdateAction updateAction)
{
DistributeInternal.NotifyUpdateAction((int)updateAction);
}
}
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: e80f1c986884b44879be715a6b8af353
timeCreated: 1503941150
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,20 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.AppCenter.Unity.Distribute
{
/// <summary>
/// Release available callback.
/// </summary>
public delegate bool ReleaseAvailableCallback(ReleaseDetails releaseDetails);
/// <summary>
/// App will exit callback.
/// </summary>
public delegate void WillExitAppCallback();
/// <summary>
/// No Release available callback.
/// </summary>
public delegate void NoReleaseAvailableCallback();
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: f98458dc0e38d44ee97fb5245326b20d
timeCreated: 1505175083
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,53 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.AppCenter.Unity.Distribute
{
/// <summary>
/// Release details.
/// </summary>
public class ReleaseDetails
{
internal ReleaseDetails()
{
}
/// <summary>
/// Release identifier.
/// </summary>
/// <value>Release identifier.</value>
public int Id { get; internal set; }
/// <summary>
/// Build number or version code.
/// </summary>
/// <value>The version.</value>
public string Version { get; internal set; }
/// <summary>
/// Human readable version.
/// </summary>
/// <value>The version.</value>
public string ShortVersion { get; internal set; }
/// <summary>
/// Release notes.
/// </summary>
/// <value>The release notes.</value>
public string ReleaseNotes { get; internal set; }
/// <summary>
/// Release notes URL.
/// </summary>
/// <value>The release notes URL.</value>
public Uri ReleaseNotesUrl { get; internal set; }
/// <summary>
/// Returns <c>true</c> if this release update is mandatory, otherwise <c>false</c>.
/// </summary>
/// <value><c>true</c> if mandatory update; otherwise, <c>false</c>.</value>
public bool MandatoryUpdate { get; internal set; }
}
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 3f7a6695be4af4d6ba53b3faf384d4bc
timeCreated: 1505175083
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,21 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.AppCenter.Unity.Distribute
{
/// <summary>
/// User update action.
/// </summary>
public enum UpdateAction
{
/// <summary>
/// Action to trigger the download of the release.
/// </summary>
Update,
/// <summary>
/// Action to postpone optional updates for 1 day.
/// </summary>
Postpone
}
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: b51f8b22ef03a4780a0d598af3edcd2a
timeCreated: 1499463000
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,18 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.AppCenter.Unity.Distribute
{
public enum UpdateTrack
{
/// <summary>
/// Releases from the public group that don't require authentication.
/// </summary>
Public = 1,
/// <summary>
/// Releases from private groups that require authentication, also contain public releases.
/// </summary>
Private = 2
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5bfc9c7086d352f409ef43f1bbeddbd8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: