Skip to content

feat: add-on (sub-product) seats, trials and listing - #45

Merged
TobbenTM merged 1 commit into
mainfrom
bratislava/sub-products-seats-support
Oct 20, 2026
Merged

TobbenTM merged 1 commit into
mainfrom
bratislava/sub-products-seats-support

Conversation

@TobbenTM

Copy link
Copy Markdown
Member

Licenses now carry the add-ons the merchant includes in them (the sp claim), and the core SDK can take a seat of an add-on, start its trial and list the product's add-ons with prices, ownership, seats and trial status (activate_sub_product, request_sub_product_trial, list_sub_products, plus no_eligible_license_error and an auto_activate_sub_products option). The JUCE module adds the matching ActivationController API, including subProductFlag() for the audio thread, and an opt-in add-ons screen (config.showAddOns) that picks up purchases, lapses and day-by-day countdowns while the plugin is open. Server answers are stored under the license store's lock in the order the server gave them, and the JUCE HTTP transport now cancels every request in flight on teardown, not only the latest. Covered by new core and JUCE tests (core 189/189, JUCE 147/147 on both 8.0.4 and 6.1.3), visual snapshots, docs and screenshots.

Licenses now carry the add-ons the merchant includes in them (the `sp` claim),
and the SDK can take a seat of an add-on, start its trial and list the
product's add-ons with prices, ownership, seats and trial status.

Core SDK:
- Parse the `sp` claim into license::sub_products, with has_sub_product().
- license_client and licensing gain activate_sub_product,
  request_sub_product_trial and list_sub_products, a no_eligible_license_error
  for an add-on with no free seat, and an auto_activate_sub_products option.
- Answers are stored under the store's lock in the order the server gave them,
  and a validation tie between differing tokens is settled by the server.

JUCE module:
- ActivationController: hasSubProduct, activeSubProducts, subProductFlag (a
  lock-free flag for the audio thread), activateSubProduct,
  requestSubProductTrial, loadAddOns, refreshAddOns and buySubProduct.
- An opt-in add-ons screen (config.showAddOns), reached from the license view.
- Add-on lapses, purchases in the browser and countdowns are picked up while
  the plugin is open.
- The HTTP transport cancels every request in flight on teardown, not only the
  latest.

Docs, screenshots, unit tests, live tests and visual snapshots cover the new
API and screens.
@argos-ci

argos-ci Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Approved by Tobias Lønnerød Madsen 14 added Oct 19, 2026, 2:35 PM

@TobbenTM
TobbenTM merged commit a2ae91c into main Oct 20, 2026
17 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 20, 2026
# [4.12.0](v4.11.0...v4.12.0) (2026-10-20)

### Features

* add-on (sub-product) seats, trials and listing ([#45](#45)) ([a2ae91c](a2ae91c))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant