Skip to content

Releases

0.1.0

Choose a tag to compare

@lohith2406 lohith2406 released this 06 Nov 17:00

First version: license keys for Mac apps sold through Dodo Payments.

.package(url: "https://github.com/lohith2406/dodo-license", from: "0.1.0")
  • License: activate, deactivate, daily rechecks, offline use, revocation callback.
  • DodoProvider for Dodo Payments' public license endpoints, test and live.
  • MockProvider for building license screens without a key.
  • Trial: an optional free trial that survives reinstalls and clock changes.
  • LicenseKey.clean(_:) for keys pasted from emails.
  • Accepts keys for several products (productIDs:).
  • A 403 HTML page from Dodo's edge (a firewall block) is an error, not "key inactive" or "already deactivated".
  • A Keychain that can't be read isn't treated as "no license".
  • A recheck that turns the license off also gives back the activation, so a key that Dodo turns on again (a subscription off hold, a re-enabled key) can be entered again.

Requires macOS 14+ and Swift 6.2 (Xcode 26).