diff --git a/.github/latest.md b/.github/latest.md index 34e41c67..111164bf 100644 --- a/.github/latest.md +++ b/.github/latest.md @@ -1,8 +1,5 @@ ## Changelog -## Updated -- Reworked shader overrides to support mapping of other property types [#306](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/306) - ## Fixed -- Fixed an issue caused by missing bones on avatar template prefabs [#310](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/310/) \ No newline at end of file +- Fixed an issue causing json parsing to fail on iFrame events [#311](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/311/) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a044ebc9..d41ed308 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). + +## [7.1.1] - 2024.07.25 + +## Fixed +- Fixed an issue causing json parsing to fail on iFrame events [#311](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/311/) + ## [7.1.0] - 2024.07.16 ## Updated diff --git a/Runtime/Core/Scripts/Data/ApplicationData.cs b/Runtime/Core/Scripts/Data/ApplicationData.cs index ed5f9c15..897aa8e9 100644 --- a/Runtime/Core/Scripts/Data/ApplicationData.cs +++ b/Runtime/Core/Scripts/Data/ApplicationData.cs @@ -6,7 +6,7 @@ namespace ReadyPlayerMe.Core { public static class ApplicationData { - public const string SDK_VERSION = "v7.1.0"; + public const string SDK_VERSION = "v7.1.1"; private const string TAG = "ApplicationData"; private const string DEFAULT_RENDER_PIPELINE = "Built-In Render Pipeline"; private static readonly AppData Data; diff --git a/Runtime/WebView/Data/WebMessage.cs b/Runtime/WebView/Data/WebMessage.cs index 26a39990..48488b29 100644 --- a/Runtime/WebView/Data/WebMessage.cs +++ b/Runtime/WebView/Data/WebMessage.cs @@ -7,6 +7,6 @@ public struct WebMessage public string type; public string source; public string eventName; - public Dictionary data; + public Dictionary data; } } diff --git a/Runtime/WebView/WebMessageHelper.cs b/Runtime/WebView/WebMessageHelper.cs index 4fba0a57..e24244e6 100644 --- a/Runtime/WebView/WebMessageHelper.cs +++ b/Runtime/WebView/WebMessageHelper.cs @@ -15,23 +15,23 @@ public static class WebMessageHelper public static string GetAvatarUrl(this WebMessage webMessage) { - webMessage.data.TryGetValue(DATA_URL_FIELD_NAME, out var avatarUrl); - return avatarUrl ?? string.Empty; + webMessage.data.TryGetValue(DATA_URL_FIELD_NAME, out var avatarUrlObject); + return (string) avatarUrlObject ?? string.Empty; } public static string GetUserId(this WebMessage webMessage) { - webMessage.data.TryGetValue(ID_KEY, out var userId); - return userId ?? string.Empty; + webMessage.data.TryGetValue(ID_KEY, out var userIdObject); + return (string) userIdObject ?? string.Empty; } public static AssetRecord GetAssetRecord(this WebMessage webMessage) { - webMessage.data.TryGetValue(ASSET_ID_KEY, out var assetId); - webMessage.data.TryGetValue(USER_ID_KEY, out var userId); + webMessage.data.TryGetValue(ASSET_ID_KEY, out var assetIdObject); + webMessage.data.TryGetValue(USER_ID_KEY, out var userIdObject); var assetRecord = new AssetRecord(); - assetRecord.AssetId = assetId; - assetRecord.UserId = userId; + assetRecord.AssetId = (string) assetIdObject ?? string.Empty; + assetRecord.UserId = (string) userIdObject ?? string.Empty; return assetRecord; } } diff --git a/package.json b/package.json index 817ef82f..5c888726 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.readyplayerme.core", - "version": "7.1.0", + "version": "7.1.1", "displayName": "Ready Player Me Core", "description": "This Module contains all the core functionality required for using Ready Player Me avatars in Unity, including features such as: \n - Module management and automatic package setup logic\n - Avatar loading from .glb files \n - Avatar creation \n - Avatar and 2D render requests \n - Optional Analytics\n - Custom editor windows\n - Sample scenes and assets", "unity": "2020.3",