Skip to main content

Roku SDK upgrade guide

info

This guide provides information about how you can upgrade to the latest Swrve Roku SDK. For information about the changes that have been made in each Roku SDK release, see Roku SDK release notes.


Version 6.1.0​

There are no code changes required to upgrade to Swrve Roku SDK v6.1.0.


Version 6.0.0​

There are no code changes required to upgrade to Swrve Roku SDK v6.0.0.


Version 5.0.1​

There are no code changes required to upgrade to Swrve Roku SDK v5.0.1.


Version 5.0.0​

This section provides information to enable you to upgrade to Swrve Roku SDK v5.0.0.

Summary​

The main changes are:

  • Remove requirement to call SwrveSetupGlobals() in Main.brs.
  • Removed SwrveObject.brs file.

For detailed changes see the following table and the Roku integration guide.

REMOVESUMMARY
SwrveSetupGlobals() function from SwrveClient.brsGlobal fields are name spaced and setup internally through SwrveNode
SwrveClickEvent(message as Object, buttonName as String) function from SwrveSDK.brsThis is an internal function
SwrveImpressionEvent(message as Object) function from SwrveSDK.brsThis is an internal function
SwrveObject.brs fileThis file has been removed, with some replacement functions added to SwrveUtils.brs
CHANGEDTO
SwrveFlushAndClean(product as Object, rewards as Object, currency as String)SwrveFlushAndClean()

Previous versions​

If you're upgrading from a version older than 5.0.0, please refer to the Roku integration guide.