Skip to content

Releases: RevenueCat/purchases-roku

0.0.5

17 Jul 17:47
b86b99a

Choose a tag to compare

✨ New Features

  • Added support for setting a user ID when configuring the SDK:
  Purchases().configure({
      "apiKey": "roku_XXXXX",
      "userId": "my_user_id" ' optional, will use an anonymous user id if not provided
  })
  • Added support for synchronous execution of the isAnonymous and appUserId methods.
  isAnonymous = Purchases().isAnonymous()
  appUserId = Purchases().appUserId()

🔄 Other Changes

  • On Roku devices, all apps from the same developer share the registry space.
    • We now namespace the registry using the App ID to allow for unique configurations per app.
    • If the app was previously installed, its existing configuration will be migrated to the first app that is opened.
  • Extracted Logger, Registry, and AppInfo into separate functions so they can be used alongside Configuration in both the render thread and the task thread.
  • Clarified where configuration is stored: in the GlobalAA when running tests from the main thread, and in the global SceneGraph node during normal operation. Added convenient getter and setter functions.

🐞 Bugfixes

  • Migrated all tests to use the Purchases() singleton directly instead of accessing the internal object.
    • This was made possible by the fix in lvcabral/brs-engine#494.
    • During this process, a bug in currentOfferingForPlacement was discovered and fixed.

0.0.4

03 Jun 19:37
c52b531

Choose a tag to compare

Fix docs and changelog (#26)

0.0.3

03 Jun 19:36
2c1d5e9

Choose a tag to compare

changelog (#20)

0.0.2

14 Oct 20:35
95ecf74

Choose a tag to compare

remove api keys (#15)

0.0.1

20 Aug 10:19
bb1dfc3

Choose a tag to compare

Merge pull request #5 from RevenueCat/set-subscriber-attributes

Add new setAttributes method to set custom subscriber attributes