Last modified January 4, 2022 by Shelly Wolfe

Roku SDK upgrade guide

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.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.

REMOVE SUMMARY
SwrveSetupGlobals() function from SwrveClient.brs Global fields are name spaced and setup internally through SwrveNode
SwrveClickEvent(message as Object, buttonName as String) function from SwrveSDK.brs This is an internal function
SwrveImpressionEvent(message as Object) function from SwrveSDK.brs This is an internal function
SwrveObject.brs file This file has been removed, with some replacement functions added to SwrveUtils.brs
CHANGED TO
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.