diff --git a/Assets/UXF/Scripts/DataHandling/WebAWSDynamoDB.cs b/Assets/UXF/Scripts/DataHandling/WebAWSDynamoDB.cs index acb34494..dfa1fdfc 100644 --- a/Assets/UXF/Scripts/DataHandling/WebAWSDynamoDB.cs +++ b/Assets/UXF/Scripts/DataHandling/WebAWSDynamoDB.cs @@ -25,6 +25,8 @@ public class WebAWSDynamoDB : DataHandler [SubjectNerd.Utilities.EditScriptable] public AWSCredentials credentials; +#if UNITY_WEBGL + [DllImport("__Internal")] private static extern void DDB_Setup(string region, string identityPool, string callbackGameObjectName); @@ -45,6 +47,22 @@ public class WebAWSDynamoDB : DataHandler [DllImport("__Internal")] private static extern string GetUserInfo(); +#else + private static void DDB_Setup(string region, string identityPool, string callbackGameObjectName) => Error(); + private static void DDB_CreateTable(string tableName, string primaryKeyName, string sortKeyName, string callbackGameObjectName) => Error(); + private static void DDB_PutItem(string tableName, string jsonItem, string callbackGameObjectName) => Error(); + private static void DDB_BatchWriteItem(string tableName, string jsonRequests, string callbackGameObjectName) => Error(); + private static void DDB_GetItem(string tableName, string jsonItem, string callbackGameObjectName, string guid) => Error(); + private static void DDB_Cleanup() => Error(); + private static string GetUserInfo() => Error(); + + private static string Error() + { + throw new InvalidProgramException("WebAWSDynamoDB is not supported on this platform."); + } + +#endif + private const string primaryKey = "ppid_session_dataname"; private const string sortKey = "trial_num"; diff --git a/Assets/UXF/VERSION.txt b/Assets/UXF/VERSION.txt index acdc3f1b..6550da69 100644 --- a/Assets/UXF/VERSION.txt +++ b/Assets/UXF/VERSION.txt @@ -1 +1 @@ -2.4.2 \ No newline at end of file +2.4.3 \ No newline at end of file