-
Notifications
You must be signed in to change notification settings - Fork 19
[ECO-4567] Support msgpack #1311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sacOO7
wants to merge
34
commits into
main
Choose a base branch
from
feature/support-msgpack
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
e8831fe
[ECO-4567] Created implementation plan to support msgpack encoding
sacOO7 86d5060
[ECO-5624] Refactored/Simplified DLL merging implementation in cake s…
sacOO7 e6da13c
[ECO-5624] Updated unity project with FAT Ably DLL
sacOO7 3b2765c
Merge branch 'fix/upgrade-newtonsoft-dep' into fix/newtonsoft-unity
sacOO7 de00d64
[ECO-5624] Removed fluentassertions dependency from tests
sacOO7 2838467
Merge branch 'fix/upgrade-newtonsoft-dep' into fix/newtonsoft-unity
sacOO7 4a04264
Merge branch 'fix/newtonsoft-unity' into feature/support-msgpack
sacOO7 14423cd
[ECO-4567] Updated msgpack to use latest version, removed conditional
sacOO7 73d7fce
[ECO-4567] Added cake script to format the code
sacOO7 b7b7995
[ECO-4567] Created implementation plan to support MsgPack exactly sim…
sacOO7 da42072
[ECO-4567] Implemented msgpack support
sacOO7 dd138de
[ECO-4567] Upgraded msgpack dep from msgpack-cli to msgpack-csharp
sacOO7 c49d355
[ECO-5624] Migrated messagepack integration from index to keyName
sacOO7 a241793
[ECO-4567] Updated NetFramwork, Xamarin-Android and Xamarin-iOS with …
sacOO7 b3002d4
[ECO-4567] Fixed Default.Protocol references across the codebase
sacOO7 8068059
[ECO-4567] Removed Defaults.Protocol references across the codebase
sacOO7 585ee7d
[ECO-4567] Refactored MsgPackHelper
sacOO7 f19dee1
[ECO-4567] Updated MsgPackHelper and fixed PaginatedResponse
sacOO7 a1592b2
[ECO-4567] Refactored MessageHandler with IsMsgPack() flag
sacOO7 8b0cced
[ECO-4567] Fixed parsing logic for errorResponse for msgpack encoding
sacOO7 85f0040
[ECO-4567] Updated MessageHandler with MsgPack specific encoders
sacOO7 0e9b10d
[ECO-4567] Added custom JObjectMessagePackSerializer
sacOO7 e9c9a04
[ECO-4567] Removed intermediate generated markdown files for msgpack
sacOO7 0532d66
Merge branch 'main' into feature/support-msgpack
sacOO7 e2aac5e
[ECO-4567] Removed unncessary EnumMember attribute from DataRequestQuery
sacOO7 477e4d9
[ECO-4567] Fixed test.cake script to throw exception when retry tests…
sacOO7 3d56db4
[ECO-4567] Fixed MsgPackSerializer tests with proper logging
sacOO7 4fdf426
[ECO-4567] Added explicit test for TestMsgpackDecoding based on msgpa…
sacOO7 39a2c58
[ECO-4567] Reverted all formatting based changes for all files
sacOO7 5d7a02f
[ECO-4567] Updated tests to use JAssert.DeepEquals instead of JToken.…
sacOO7 a1ceae7
[ECO-4567] Updated DateTimeOffset/TimeSpan MsgPackSerializer similar …
sacOO7 3246e3e
[ECO-4567] Moved separate msgpack project to core shared project
sacOO7 e0b038c
[ECO-4567] Added MessagePack dependency to every platform in the nuspec
sacOO7 9385d46
[ECO-4567] Fixed unity editmode and playmode tests
sacOO7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,19 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly> | ||
| <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/> | ||
| <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/> | ||
| <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
| <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" /> | ||
| </dependentAssembly> | ||
| <dependentAssembly> | ||
| <assemblyIdentity name="System.Threading.ThreadPool" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> | ||
| <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/> | ||
| <assemblyIdentity name="System.Threading.ThreadPool" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
| <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" /> | ||
| </dependentAssembly> | ||
| <dependentAssembly> | ||
| <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
| <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
| <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration> | ||
| <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" /></startup></configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <packages> | ||
| <package id="ILRepack.Lib.MSBuild.Task" version="2.0.18" targetFramework="net461" /> | ||
| <package id="MessagePack" version="3.1.4" targetFramework="net462" /> | ||
| <package id="MessagePack.Annotations" version="3.1.4" targetFramework="net462" /> | ||
| <package id="MessagePackAnalyzer" version="3.1.4" targetFramework="net462" developmentDependency="true" /> | ||
| <package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net462" /> | ||
| <package id="Microsoft.CodeQuality.Analyzers" version="2.9.6" targetFramework="net461" developmentDependency="true" /> | ||
| <package id="Microsoft.NET.StringTools" version="17.11.4" targetFramework="net462" /> | ||
| <package id="Newtonsoft.Json" version="13.0.1" targetFramework="net461" /> | ||
| <package id="StyleCop.Analyzers" version="1.1.118" targetFramework="net461" developmentDependency="true" /> | ||
| <package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net461" /> | ||
| <package id="System.Buffers" version="4.5.1" targetFramework="net462" /> | ||
| <package id="System.Collections.Immutable" version="8.0.0" targetFramework="net462" /> | ||
| <package id="System.Memory" version="4.5.5" targetFramework="net462" /> | ||
| <package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net462" /> | ||
| <package id="System.Reflection.Emit" version="4.7.0" targetFramework="net462" /> | ||
| <package id="System.Reflection.Emit.Lightweight" version="4.7.0" targetFramework="net462" /> | ||
| <package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net462" /> | ||
| <package id="System.Threading.Channels" version="4.6.0" targetFramework="net461" /> | ||
| <package id="System.Threading.Tasks.Extensions" version="4.5.2" targetFramework="net461" /> | ||
| <package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net461" /> | ||
| </packages> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify: Major version bumps for framework compatibility.
The addition of System.Runtime.CompilerServices.Unsafe 6.0.0 (up from 4.5.0) and System.Collections.Immutable 8.0.0 represent significant version changes. Although these are dependencies of MessagePack 3.1.4, confirm:
Consider running target framework compatibility checks as part of testing.
Also applies to: 82-107
🌐 Web query:
💡 Result:
Yes — System.Runtime.CompilerServices.Unsafe 6.0.0 is compatible with .NET Framework 4.6.2. The NuGet package for 6.0.0 includes a net46.1 target (and netstandard2.0), which is compatible with 4.6.2 (4.6.2 >= 4.6.1). For later 6.1.x releases the package explicitly lists net462 as a target. [1][2]
Sources:
🌐 Web query:
💡 Result:
Yes — System.Collections.Immutable 8.0.0 supports .NET Framework. The NuGet package lists .NETFramework 4.6.2 (and compatibility with 4.6.1/4.6.2+ / 4.7 / 4.7.1 / 4.7.2 / 4.8 / 4.8.1) and includes a net461 target; the .NETFramework build depends on System.Memory (>= 4.5.5) and System.Runtime.CompilerServices.Unsafe (>= 6.0.0). [1]
Sources:
[1] NuGet — System.Collections.Immutable 8.0.0 (package metadata).
🌐 Web query:
💡 Result:
MessagePack 3.1.4 (NuGet) — target framework requirements (summary)
Source: NuGet package metadata for MessagePack 3.1.4. [1]
References
[1] NuGet — MessagePack 3.1.4 package metadata (target frameworks, included assets and dependencies). [NuGet package page].
🏁 Script executed:
Length of output: 96
🏁 Script executed:
Length of output: 237
CRITICAL: MessagePack 3.1.4 targets .NET Framework 4.7.2, incompatible with project's 4.6.2 target.
MessagePack 3.1.4 explicitly targets .NET Framework 4.7.2, but this project targets .NET Framework 4.6.2 (line 13:
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>). While individual transitive dependencies like System.Runtime.CompilerServices.Unsafe 6.0.0 and System.Collections.Immutable 8.0.0 are compatible with .NET Framework 4.6.2, the primary package is incompatible.This change cannot proceed without either: