Skip to content

Releases: FlineDev/FreemiumKit

1.13.1

20 Nov 11:03
Compare
Choose a tag to compare

To fix a "duplicate asset" warning in Xcode for the config file in Preview Assets.xcassets, please rename the asset from 'FreemiumKit' to 'FreemiumKitPreview' after dragging it. This SDK version can detect both names in SwiftUI previews.

1.13.0

15 Nov 01:44
Compare
Choose a tag to compare
  • Deprecates FreemiumKit.preview in favor of FreemiumKit.shared for SwiftUI Previews
  • Adds support for seeing your actual paywall in SwiftUI Previews, but 3 steps are needed:
    1. Press the 'Save Changes to Remote' button in the latest version of FreemiumKit (requires 1.2.2 or later)
    2. Drag & drop your config file from the 'Setup' tab to your Preview Assets.xcassets (besides Assets.xcassets)
    3. Rename dragged asset from 'FreemiumKit' to 'FreemiumKitPreview' to avoid duplicate asset warnings (1.13.1+)

1.12.1

09 Nov 17:21
Compare
Choose a tag to compare
  • Skips transaction verification in non-production environments to avoid potential issues with TestFlight testing.
  • Provides cleaned-up DSYM/DWARF files to avoid a warning when uploading builds with the FreemiumKit SDK.

1.12.0

08 Nov 16:15
Compare
Choose a tag to compare
  • Added freeIf parameter to PaidFeatureButton & PaidFeatureView for freemium features with usage limits

    Example usage with PaidFeatureButton:

    // Let users export 3 PDFs for free, then require subscription
    // - Shows normal button while free exports remain
    // - Shows locked button & paywall after limit reached
    PaidFeatureButton(
        "Export PDF",  
        systemImage: "doc.pdf",
        freeIf: { remainingFreeExports > 0 }
    ) {
        exportPDF()
        remainingFreeExports -= 1
    }

    Example usage with PaidFeatureView:

    PaidFeatureView(freeIf: { usedPremiumContents.count < freeUsageLimit }) {
        Text("Premium Content")  // Shown when subscribed or free condition is met
    } lockedView: {
        Label("Get Premium Content", systemImage: "lock")  // Shown when locked
    }

1.11.0

23 Oct 22:40
Compare
Choose a tag to compare
  • Adds support for dynamically controlling which tiers should be shown in the paywall by providing a showTierInPaywall closure. Learn More

1.10.2

23 Oct 15:12
Compare
Choose a tag to compare
  • Fixes an issue with redeem/restore buttons not fitting into screen on small iPhones. (#5)

1.10.1

12 Oct 13:45
Compare
Choose a tag to compare
  • Fixes a minor issue with the newly supported weekly subscription type.

1.10.0

12 Oct 12:11
Compare
Choose a tag to compare
  • Adds support for preselecting weekly subscription product type.

1.9.2

11 Oct 13:27
Compare
Choose a tag to compare

Products in paywalls are now more reliably sorted by their period length.

1.9.1

10 Oct 16:38
Compare
Choose a tag to compare
  • Fixes a bug inside the new legacyProductsIDsByTier logic which caused old purchases to not get properly detected.
  • Fixes a bug that the paywall didn't auto-close upon successful restoring of a purchase.