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
Add version 1.0.0 by name.Added
- Documentation about SDK initialization and SDK testing.
- Documentation about Calling asynchronous methods and Web
Task/Web .Task<T> Result
property to retrieve result from WebTask<T> - Class
JsException
to represent JavaScript errors
Removed
- Removed top-level container class
Sdk
- Removed
JsNative
namespace
Changed
- Changed namespace
Runtime
toMeta.InstantGames.Runtime
- Moved entities in
JsNative
namespace toMeta.InstantGames.Runtime
- Made
Meta.InstantGames.FBInstant
a 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
Uuid
on SDK classesinternal
- Renamed class
JsNative
toJsObject
- Class
APIError
derives fromJsException
and inherits itsMessage
property from the base class - Moved JavaScript helper functions to new global object
JSRuntime
Fixed
- Fixed return value of
FBInstant.Tournament.GetPayload
from JSON serializable object to nullable string - Fixed handling of
undefined
strings returned from JavaScript SDK endpoints
[1.0.0-pre.1] - 2025-01-06
Add version 1.0.0-pre.1 by name.Removed
- Moved test code to separate package
com.unity.meta-instant-games-sdk.tests
.
Changed
- Made
Meta.InstantGames.APIError
throwable and removed propertyJsException
and its corresponding class
[0.0.1-exp.3] - 2024-12-17
Add version 0.0.1-exp.3 by name.Added
- Function
WaitForCompletion
in 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
InitializeAsync
andStartGameAsync
in 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
Add version 0.0.1-exp.2 by name.Added
- Monetization APIs:
- FBInstant.getInterstitialAdAsync
- FBInstant.loadBannerAdAsync
- FBInstant.hideBannerAdAsync
- FBInstant.getRewardedVideoAsync
- FBInstant.getRewardedInterstitialAsync
- AdInstance.getPlacementID
- AdInstance.loadAsync
- AdInstance.showAsync
init.jspre
file that will download and initialize the JavaScript SDK
Changed
- Namespace for the C# bindings has changed from
Internal.Bindings
toMeta.InstantGames
. - Top level class for the C# bindings has changed from
FacebookInstantGamesSDK
toSdk
[0.0.1-exp.1] - 2024-10-16
Add version 0.0.1-exp.1 by name.This is the first (experimental) release of Unity Package com.unity.meta-instant-games-sdk.
Added
- Added initial package contents.