feat(juce): lock on expiry mid-session and keep plugin instances in sync - #38
Merged
Merged
Conversation
The controller now watches the license by itself, with local checks only (the license file and the clock, every 2 seconds): - a trial or subscription locks when its exp passes, without a restart - a license past onlineGracePeriod gets one last online check, then locks - activations, refreshes and deactivations in other plugin instances or processes are picked up within a couple of seconds Also: - refreshLicense() locks past the grace period when Moonbase can't be reached, and skips while an online activation is in progress - new onLicenseChanged, pendingBrowserUrl() and ActivationConfig::openBrowser - public keys parse the same on every crypto backend (single-line, indented and CRLF PEM) - the controller's workers are module-owned threads instead of a juce::ThreadPool, which on JUCE 6.1.3 could kill a thread at teardown - ActivationComponent stops its timers while off screen, gives callbacks wired after construction the initial state, fires onActivationChanged only when the license changes, and stops the glow under reduceMotion - docs for all of the above, and corrected onClose, dismissUpdate and reduceMotion comments
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 5, 2026
# [4.8.0](v4.7.1...v4.8.0) (2026-10-05) ### Features * **juce:** lock on expiry mid-session and keep plugin instances in sync ([#38](#38)) ([2028331](2028331))
|
🎉 This PR is included in version 4.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The controller now watches the license by itself with local checks only: a trial or subscription locks when its
exppasses, a license pastonlineGracePeriodgets one last online check, and activations, refreshes and deactivations in other plugin instances or processes are picked up within about 2 seconds. It also addsonLicenseChanged,pendingBrowserUrl()andActivationConfig::openBrowser, parses public keys the same way on every crypto backend, replaces the controller'sjuce::ThreadPoolwith module-owned workers (JUCE 6.1.3 could kill a pool thread at teardown), and makesActivationComponentstop its timers while off screen, sync callbacks wired after construction, fireonActivationChangedonly on license changes, and honourreduceMotionfor the glow. Tested on JUCE 8 and 6.1.3, and end to end on the demo tenant with several instances, a real activation and deactivation, and a trial expiring mid-session.