Removed Many Things
This commit is contained in:
@@ -5,7 +5,6 @@ using System.IO;
|
||||
using System.Security;
|
||||
using System.Threading;
|
||||
using BITKit.Apps;
|
||||
using BITKit.HttpNet;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
@@ -66,6 +65,7 @@ namespace BITKit
|
||||
/// </summary>
|
||||
public class ApplicationService : MonoBehaviour,IApplicationService
|
||||
{
|
||||
private static readonly HttpClient Client = new();
|
||||
public static event Action<string> OnClientVersionCheck;
|
||||
public static event Action<string> OnLatestVersionCheck;
|
||||
public static event Action<string> OnDownloadLatest;
|
||||
@@ -76,8 +76,6 @@ namespace BITKit
|
||||
private IReference getVersionUrl;
|
||||
[SerializeField, SerializeReference, SubclassSelector]
|
||||
private IReference getLatestUrl;
|
||||
[SerializeField, SerializeReference, SubclassSelector]
|
||||
private WebProvider webProvider;
|
||||
|
||||
[SerializeReference, SubclassSelector] private ITicker checkTick;
|
||||
[SerializeField] private bool dontDestroyOnLoad;
|
||||
@@ -180,7 +178,7 @@ namespace BITKit
|
||||
if(_isBusy)return;
|
||||
try
|
||||
{
|
||||
var latestVersion = await webProvider.GetAsync(getVersionUrl.Get(), destroyCancellationToken);
|
||||
var latestVersion = await Client.GetStringAsync(getVersionUrl.Value);
|
||||
if (destroyCancellationToken.IsCancellationRequested) return;
|
||||
|
||||
var currentVersion = Application.version;
|
||||
|
Reference in New Issue
Block a user