diff --git a/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/EditorSecureStorage.cs b/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/EditorSecureStorage.cs new file mode 100644 index 00000000..a80c0960 --- /dev/null +++ b/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/EditorSecureStorage.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace Sequence.Utils.SecureStorage +{ + public class EditorSecureStorage : ISecureStorage + { + public void StoreString(string key, string value) + { + PlayerPrefs.SetString(key, value); + PlayerPrefs.Save(); + } + + public string RetrieveString(string key) + { + return PlayerPrefs.GetString(key); + } + + public EditorSecureStorage() + { + } + } +} \ No newline at end of file diff --git a/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/EditorSecureStorage.cs.meta b/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/EditorSecureStorage.cs.meta new file mode 100644 index 00000000..080f1b2a --- /dev/null +++ b/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/EditorSecureStorage.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 71efc46e131a4cfa82f3704197dd6954 +timeCreated: 1733505995 \ No newline at end of file diff --git a/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/SecureStorageFactory.cs b/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/SecureStorageFactory.cs index 91910553..f4edafea 100644 --- a/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/SecureStorageFactory.cs +++ b/Packages/Sequence-Unity/Sequence/SequenceSDK/Utils/SecureStorage/SecureStorageFactory.cs @@ -7,7 +7,9 @@ public static class SecureStorageFactory { public static ISecureStorage CreateSecureStorage() { -#if UNITY_IOS && !UNITY_EDITOR +#if UNITY_EDITOR + return new EditorSecureStorage(); +#elif UNITY_IOS && !UNITY_EDITOR return new iOSKeychainStorage(); #elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX return new MacOSKeychainStorage(); diff --git a/Packages/Sequence-Unity/package.json b/Packages/Sequence-Unity/package.json index cff5cd28..a7f8a8f2 100644 --- a/Packages/Sequence-Unity/package.json +++ b/Packages/Sequence-Unity/package.json @@ -1,6 +1,6 @@ { "name": "xyz.0xsequence.waas-unity", - "version": "3.14.0", + "version": "3.14.1", "displayName": "Sequence Embedded Wallet SDK", "description": "A Unity SDK for the Sequence WaaS API", "unity": "2021.3",