Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

The changelog for `SuperwallKit`. Also see the [releases](https://github.com/superwall/Superwall-iOS/releases) on GitHub.

## 4.16.1

### Enhancements

- Clarifies that `IntegrationAttribute.onesignalId` should be set to the OneSignal User ID used by the OneSignal integration.

### Fixes

- Makes sure that the compiler directive is correct for billing plan types so that the SDK builds in Xcode version 26.4.

## 4.16.0

### Enhancements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum IntegrationAttribute: Int {
/// The Braze `alias_label` in User Alias Object.
case brazeAliasLabel

/// The OneSignal Player identifier for the user.
/// The OneSignal User ID (`onesignal_id`) for the user.
case onesignalId

/// The Facebook Anonymous identifier for the user.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SuperwallKit/Misc/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ let sdkVersion = """
*/

let sdkVersion = """
4.16.0
4.16.1
"""
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ extension DeviceHelper {
}

func currentCompilerVersion() -> String {
#if compiler(>=6.3)
#if compiler(>=6.4)
return "6.4"
#elseif compiler(>=6.3.3)
return "6.3.3"
#elseif compiler(>=6.3.2)
return "6.3.2"
#elseif compiler(>=6.3)
return "6.3"
#elseif compiler(>=6.2.4)
return "6.2.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct SK2StoreProduct: StoreProductType {
self.entitlements = entitlements
self.billingPlanType = billingPlanType

#if compiler(>=6.3)
#if compiler(>=6.3.2)
if #available(iOS 26.4, macOS 26.4, tvOS 26.4, watchOS 26.4, visionOS 26.4, *),
let term = Self.findPricingTerm(for: billingPlanType, in: sk2Product) {
// Use the commitment *period* (= year for an annual MONTHLY product)
Expand Down Expand Up @@ -240,7 +240,7 @@ struct SK2StoreProduct: StoreProductType {
return underlyingSK2Product.subscription?.introductoryOffer
}

#if compiler(>=6.3)
#if compiler(>=6.3.2)
@available(iOS 26.4, macOS 26.4, tvOS 26.4, watchOS 26.4, visionOS 26.4, *)
private static func findPricingTerm(
for billingPlanType: AppStoreProduct.BillingPlanType?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ final class ProductPurchaserSK2: Purchasing {
}
#endif

#if compiler(>=6.3)
// Apply the configured Apple billing plan (iOS 26+). If the runtime is
// older or no plan is configured, the purchase proceeds with Apple's
// default plan.
#if compiler(>=6.3.2)
if #available(iOS 26.4, macOS 26.4, tvOS 26.4, watchOS 26.4, visionOS 26.4, *),
let plan = product.billingPlanType {
let sk2Plan: StoreKit.Product.SubscriptionInfo.BillingPlanType
Expand Down
2 changes: 1 addition & 1 deletion SuperwallKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SuperwallKit"
s.version = "4.16.0"
s.version = "4.16.1"
s.summary = "Superwall: In-App Paywalls Made Easy"
s.description = "Paywall infrastructure for mobile apps :) we make things like editing your paywall and running price tests as easy as clicking a few buttons. superwall.com"

Expand Down
Loading