Repository navigation
fix(core): report Unity version, platform and runtime in X-Client-Info - #556
Merged
Merged
Conversation
2 tasks done
|
Hey finally got a sec to test this. x-client-info is helpful now, works fine in editor and on device build. thanks! ❤️ Editor: |
Tr00d
marked this pull request as ready for review
October 29, 2026 06:03
Contributor
Author
|
Awesome 😄 I'll publish a new update later today then |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes the Unity values in the
X-Client-Infoheader reported in#523 (comment).
platformUnix 5.15.189.13Androidruntime/runtime-versiondotnet/4.0.30319.17020il2cpp(no version) ormono/<version>framework-version6000.3.21f1Changes
UnityEngine.Application.unityVersion. The previous check looked forUnityAPICompatibilityVersionAttribute, which Unity never adds to assemblies at runtime.UnityEngine.Application.platformand mapped onto the existing names(
IPhonePlayer→iOS,OSX*→macOS,Windows*/WSAPlayer*→Windows,Linux*/EmbeddedLinux*→Linux,WebGLPlayer→browser). Any other value is passed through unchanged.Environment.Versionis a fixed .NET Framework 4 compatibility number.The runtime is now taken from
RuntimeInformation.FrameworkDescription:monowith its version, oril2cpp(whose version is the engine version, already sent asframework-version).HostEnvironmentrecord.Tests change one field with
with, and the fake attribute test double is removed.