Skip to content

4.1.0

Latest

Choose a tag to compare

@paweljarosz paweljarosz released this 31 Jul 11:02
· 6 commits to main since this release
f6da316

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 whose category is mobile, tablet, or desktop.
  • 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 nil from poki_sdk.get_url_param() when PokiSDK.getURLParam() returns null or undefined, 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) and rewarded_break(size, callback), including the small, medium, and large reward sizes.
  • Clarified that Poki analytics events should normally provide category, what, and action; omitted what and action still default to empty strings for binding compatibility.
  • Marked poki_sdk.is_ad_blocked() as deprecated and compatibility-only. It remains available and always returns false.
  • 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-web build 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-web only. The removed asm.js target is not supported by Defold anymore.
  • No existing public Lua API was removed in this release.