Changelog
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[1.0.0] - 2025-02-14
Added
- Documentation about SDK initialization and SDK testing.
- Documentation about Calling asynchronous methods and WebTask/WebTask<T>.
Resultproperty to retrieve result from WebTask<T>- Class
JsExceptionto represent JavaScript errors
Removed
- Removed top-level container class
Sdk - Removed
JsNativenamespace
Changed
- Changed namespace
RuntimetoMeta.InstantGames.Runtime - Moved entities in
JsNativenamespace toMeta.InstantGames.Runtime - Made
Meta.InstantGames.FBInstanta static class, allowing usage analogous to the JavaScript SDK, with no need to first instantiate an object. - Changed object initialization from JavaScript to use an empty object
{}instead ofObject.create(null) - Changed terms of service in
LICENSE.md - Made property
Uuidon SDK classesinternal - Renamed class
JsNativetoJsObject - Class
APIErrorderives fromJsExceptionand inherits itsMessageproperty from the base class - Moved JavaScript helper functions to new global object
JSRuntime
Fixed
- Fixed return value of
FBInstant.Tournament.GetPayloadfrom JSON serializable object to nullable string - Fixed handling of
undefinedstrings returned from JavaScript SDK endpoints
[1.0.0-pre.1] - 2025-01-06
Removed
- Moved test code to separate package
com.unity.meta-instant-games-sdk.tests.
Changed
- Made
Meta.InstantGames.APIErrorthrowable and removed propertyJsExceptionand its corresponding class
[0.0.1-exp.3] - 2024-12-17
Added
- Function
WaitForCompletionin WebTask and WebTask<T> so that they are compatible with coroutines - Build preprocessor that selectively includes auto-bootstrapping of the SDK when building for
UNITY_FACEBOOK_INSTANT_GAMES - Requirements section to document the system requirements to use this package
- Timeout of 3000ms for calls
InitializeAsyncandStartGameAsyncin auto-bootstrapping
Changed
- C# API member names (methods, properties) are PascalCase instead of CamelCase
Fixed
- Build hanging in a general Web build when package is added to a project.
[0.0.1-exp.2] - 2024-12-02
Added
- Monetization APIs:
- FBInstant.getInterstitialAdAsync
- FBInstant.loadBannerAdAsync
- FBInstant.hideBannerAdAsync
- FBInstant.getRewardedVideoAsync
- FBInstant.getRewardedInterstitialAsync
- AdInstance.getPlacementID
- AdInstance.loadAsync
- AdInstance.showAsync
init.jsprefile that will download and initialize the JavaScript SDK
Changed
- Namespace for the C# bindings has changed from
Internal.BindingstoMeta.InstantGames. - Top level class for the C# bindings has changed from
FacebookInstantGamesSDKtoSdk
[0.0.1-exp.1] - 2024-10-16
This is the first (experimental) release of Unity Package com.unity.meta-instant-games-sdk.
Added
- Added initial package contents.