From fad842b4ae6278bbc65a41bd8ce70d55cc9442df Mon Sep 17 00:00:00 2001 From: Valentyn-Dominskyi Date: Thu, 26 Sep 2024 19:23:01 +0300 Subject: [PATCH 1/3] =?UTF-8?q?=E2=99=BB=EF=B8=8F:=20Change=20`isEditor`?= =?UTF-8?q?=20order=20for=20`InitializeSingularSDK`=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SingularSDK/Runtime/SingularSDK.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SingularSDK/Runtime/SingularSDK.cs b/SingularSDK/Runtime/SingularSDK.cs index f2a258e..bf662bc 100644 --- a/SingularSDK/Runtime/SingularSDK.cs +++ b/SingularSDK/Runtime/SingularSDK.cs @@ -131,6 +131,9 @@ public static void InitializeSingularSDK() if (Initialized) return; + if (Application.isEditor) + return; + if (!instance) { SingularUnityLogger.LogError("SingularSDK InitializeSingularSDK, no instance available - cannot initialize"); @@ -139,11 +142,6 @@ public static void InitializeSingularSDK() SingularUnityLogger.LogDebug(string.Format("SingularSDK InitializeSingularSDK, APIKey={0}", instance.SingularAPIKey)); - if (Application.isEditor) - { - return; - } - SingularConfig config = BuildSingularConfig(); #if UNITY_IOS From 0918f623536f30ef53ea58a9627360adf9834b58 Mon Sep 17 00:00:00 2001 From: Valentyn-Dominskyi Date: Thu, 26 Sep 2024 19:23:18 +0300 Subject: [PATCH 2/3] =?UTF-8?q?=E2=99=BB=EF=B8=8F:=20=20Delete=20unused=20?= =?UTF-8?q?Unity=20method=20-=20Update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SingularSDK/Runtime/SingularSDK.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SingularSDK/Runtime/SingularSDK.cs b/SingularSDK/Runtime/SingularSDK.cs index bf662bc..9919616 100644 --- a/SingularSDK/Runtime/SingularSDK.cs +++ b/SingularSDK/Runtime/SingularSDK.cs @@ -204,10 +204,6 @@ private static SingularConfig BuildSingularConfig() return config; } - public void Update() - { - } - #if UNITY_ANDROID private static void initSDK(SingularConfig config) { SingularUnityLogger.LogDebug("UNITY_ANDROID - init Is called"); From 9cbb7a31e4d3b86eb5b06cc1779e30b01bfa224f Mon Sep 17 00:00:00 2001 From: Valentyn-Dominskyi Date: Thu, 26 Sep 2024 19:24:24 +0300 Subject: [PATCH 3/3] =?UTF-8?q?=E2=99=BB=EF=B8=8F:=20Add=20access=20keywor?= =?UTF-8?q?ds=20to=20Unity=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SingularSDK/Runtime/SingularSDK.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SingularSDK/Runtime/SingularSDK.cs b/SingularSDK/Runtime/SingularSDK.cs index 9919616..0f3f3d6 100644 --- a/SingularSDK/Runtime/SingularSDK.cs +++ b/SingularSDK/Runtime/SingularSDK.cs @@ -96,7 +96,7 @@ public class SingularSDK : MonoBehaviour #endregion // The Singular SDK is initialized here - void Awake() + private void Awake() { // init logger - matches native layer logging levels SingularUnityLogger.EnableLogging(enableLogging); @@ -833,7 +833,7 @@ public static void SetAllowAutoIAPComplete(bool allowed) #endif } - void OnApplicationPause(bool paused) + private void OnApplicationPause(bool paused) { if (!Initialized || !instance) return; @@ -855,7 +855,7 @@ void OnApplicationPause(bool paused) #endif } - void OnApplicationQuit() + private void OnApplicationQuit() { if (Application.isEditor) {