Skip to content

Commit

Permalink
disable HMSPluginUpdater on Microsoft Xbox, Sony Playstation 4/5 and …
Browse files Browse the repository at this point in the history
…Nintendo Switch
  • Loading branch information
am1goo authored and alihan98ersoy committed Feb 28, 2024
1 parent 8f0a337 commit d8151c6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Assets/Huawei/Editor/Utils/HMSPluginUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,26 @@ internal class HMSPluginUpdater
public static string sessionState = "hms_checked_update";

static HMSPluginUpdateRequest request;

static bool ignorePlatform
{
get
{
#if UNITY_SWITCH || UNITY_GAMECORE || UNITY_PS4 || UNITY_PS5
return true;
#else
return false;
#endif
}
}

internal static void Request(bool ignoreSession = false)
{
if (ignorePlatform)
{
return;
}

if (!ignoreSession && SessionState.GetBool(sessionState, false))
{
return;
Expand Down

0 comments on commit d8151c6

Please sign in to comment.