Repository navigation
4.1.0
Feature and maintenance release for Defold 1.13.0 and newer.
Added
- Added
poki_sdk.get_device_info(). It returns a table whosecategoryismobile,tablet, ordesktop. - Added a Lua Language Server annotation file to improve autocomplete for the Poki SDK Lua API.
- Added a web-game best-practices guide covering loading performance, controls, responsive presentation, and Poki testing considerations.
Fixed
- Fixed commercial and rewarded break sound handling so final states restore master sound before Lua callback validation. Sound can no longer remain muted merely because the callback became invalid.
- Destroy all pending Lua callbacks and restore master sound when the extension finalizes.
- Fixed the missing return from
poki_sdk.login(). - Return Lua
nilfrompoki_sdk.get_url_param()whenPokiSDK.getURLParam()returnsnullorundefined, and safely convert other returned values to strings. - Removed an unused local variable from the shareable URL binding.
Improved
- Expanded Defold editor autocomplete metadata with function descriptions, callback parameters, nullable account results, status constants, and optional
measure()arguments. - Documented both rewarded break forms:
rewarded_break(callback)andrewarded_break(size, callback), including thesmall,medium, andlargereward sizes. - Clarified that Poki analytics events should normally provide
category,what, andaction; omittedwhatandactionstill default to empty strings for binding compatibility. - Marked
poki_sdk.is_ad_blocked()as deprecated and compatibility-only. It remains available and always returnsfalse. - Expanded the example with concise status reporting and controls for gameplay events, commercial and rewarded breaks, reward sizes, shareable URLs, URL parameters, device information, user accounts, login, tokens, and external links.
- The example no longer prints full account tokens and clearly reports when an HTML5
wasm-webbuild is required. - Expanded the integration manual with installation instructions, Defold editor commands, Poki Inspector and scaling-test guidance, account APIs, custom events, non-HTML5 guards, and responsive GUI guidance.
Compatibility
- HTML5 are now using
wasm-webonly. The removedasm.jstarget is not supported by Defold anymore. - No existing public Lua API was removed in this release.