v2.3.6 - Unity 2019/2020/2021
HMS Unity Plugin Version 2.3.6 Release Announcement
We are pleased to announce the availability of version 2.3.6 for the HMS Unity Plugin. This release encompasses a comprehensive array of enhancements, including the introduction of new features, improvements to existing functionalities, bug resolutions, and the deprecation of outdated elements. This significant update, contributed to EvilMindDevs:master, spans improvements in syntax, the addition of innovative features, and more. We extend our gratitude to @alihan98ersoy and @Andronovo-bit for their contributions. Below is an overview of the key updates:
Enhancements and New Features
- Game Addiction Prevention Demo: A new demo scene illustrating game addiction prevention mechanisms has been introduced at
Huawei/Demos/Game/GameAddictionPreventionDemo/
, offering developers insights into incorporating such features into their games. (4118e255) - Updates to Game Service & Account Kit: The GameService and Account Kit have been upgraded to their latest versions, bringing forth enhancements that enrich the development experience:
- GameService is now at version
com.huawei.hms:game:6.10.0.300
. Further details - Account Kit has been updated to
com.huawei.hms:hwid:6.12.0.300
. Further details (4118e255)
- GameService is now at version
- FAQ Button: To enhance user support and accessibility, an FAQ button has been added. (02d82e52)
- Enhanced Ad Removal Logic: The logic for ad removal post-purchase has been improved, including modifications to SplashAd behavior. (3e432947)
- Refinements to HMSKeyToolWindow and Issue Templates: Enhancements have been made to
HMSKeyToolWindow.cs
and issue templates for increased usability and clarity. (#456, #461) (d275b46d)
Deprecations and Replacements
- The
CurrentPlayer
API is now deprecated in favor ofGamePlayer
. - The
SetGameTrialProcess
method has been deprecated. - The
PlayerId
field has been deprecated in favor ofOpenId
.
Bug Fixes
- Resolution of Enum.TryParse Compatibility Issue: A fix has been implemented for compatibility issues with older C# versions concerning
Enum.TryParse
. (e0d5c9e9) - Syntax Improvements: Various syntax errors and method naming issues have been addressed to enhance code quality and maintainability. (db2495c7)
Code Quality and Refactoring
- Namespace Refactoring: All classes and structs have been organized within appropriate namespaces to minimize conflicts and promote orderly code structure. (HUP-799, 3b47aab6)
- Adherence to Coding Standards: A thorough refactoring has been carried out to align with best practices, including the adoption of
Any()
for checks of emptiness, preference for.TryParse
over.Parse
, and more. - Development Environment Standardization: The introduction of
.editorconfig
,.vsconfig
, andsettings.json
aims to unify development environments and elevate code standards. (HUP-784)
Documentation Updates
- README Revision: The README document has been updated to accurately reflect the recent modifications and enhancements. 8f0a337d)
For an exhaustive list of modifications, we recommend reviewing the commit history and the associated pull requests.
We urge all users to upgrade to the latest version to benefit from these enhancements. Your feedback and contributions are invaluable to us as they facilitate the ongoing improvement and evolution of this plugin.