Skip to content

Commit

Permalink
Merge branch 'hotfix/v4.1.2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonHough authored Dec 20, 2023
1 parent 9f95278 commit 14326c9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [4.1.2] - 2023.12.20

### Fixed
- add preserve attribute to CategoryConverter in AvatarCreator by @harrisonHough in [#193](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/193)

## [4.1.1] - 2023.11.29

### Fixed
- fixed json converters in AvatarCreator getting stripped on android or webgl builds by @rYuuk in [#188](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/188)

## [4.1.0] - 2023.11.29

### Updated
Expand Down
2 changes: 1 addition & 1 deletion Runtime/AvatarCreator/Data/AvatarProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct AvatarProperties
public OutfitGender Gender;
[JsonConverter(typeof(BodyTypeConverter))]
public BodyType BodyType;
[JsonConverter(typeof(CategoryDictionaryConverter))]
[JsonConverter(typeof(PartnerAssetsDictionaryConverter))]
public Dictionary<Category, object> Assets;
public string Base64Image;
}
Expand Down
2 changes: 2 additions & 0 deletions Runtime/AvatarCreator/JsonHelpers/CategoryConverter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using UnityEngine.Scripting;

namespace ReadyPlayerMe.AvatarCreator
{
[Preserve]
public class CategoryConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace ReadyPlayerMe.AvatarCreator
{
[Preserve]
public class CategoryDictionaryConverter : JsonConverter<Dictionary<Category, object>>
public class PartnerAssetsDictionaryConverter : JsonConverter<Dictionary<Category, object>>
{
public override void WriteJson(JsonWriter writer, Dictionary<Category, object> value, JsonSerializer serializer)
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Data/ApplicationData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace ReadyPlayerMe.Core
{
public static class ApplicationData
{
private const string SDK_VERSION = "v4.1.1";
private const string SDK_VERSION = "v4.1.2";
private const string TAG = "ApplicationData";
private const string DEFAULT_RENDER_PIPELINE = "Built-In Render Pipeline";
private static readonly AppData Data;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.readyplayerme.core",
"version": "4.1.1",
"version": "4.1.2",
"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",
Expand Down

0 comments on commit 14326c9

Please sign in to comment.