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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The changelog for `SuperwallKit`. Also see the [releases](https://github.com/sup

### Enhancements

- Adds `singularDeviceId` as an `IntegrationAttribute`.
- Adds support for annual subscriptions that are billed monthly.
- Added `EventTrackingBehavior` enum and `SuperwallOptions.eventTrackingBehavior` property for GDPR-compliant event collection control. Use `.all` (default) to track everything, `.superwallOnly` to suppress user-initiated tracking, trigger fires, and user-attribute updates while keeping internal SDK events, or `.none` to stop all event collection entirely. The behavior can also be changed at runtime via `Superwall.shared.eventTrackingBehavior`.
- Deprecated `SuperwallOptions.isExternalDataCollectionEnabled`. Setting it to `false` now maps to `.superwallOnly`; setting it back to `true` maps to `.all`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public enum IntegrationAttribute: Int {

/// The Appstack identifier.
case appstackId

/// The Singular device identifier (SDID).
case singularDeviceId
}

// MARK: - CustomStringConvertible
Expand Down Expand Up @@ -123,6 +126,8 @@ extension IntegrationAttribute: CustomStringConvertible {
return "customerioId"
case .appstackId:
return "appstackId"
case .singularDeviceId:
return "singularDeviceId"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ struct AttributionTests {
.tenjinId: "tenjin-id",
.posthogUserId: "posthog-user-id",
.customerioId: "customerio-id",
.appstackId: "appstack-id"
.appstackId: "appstack-id",
.singularDeviceId: "singular-device-id"
]

// When
Expand Down Expand Up @@ -378,6 +379,7 @@ struct AttributionTests {
#expect(storedProps["posthogUserId"] as? String == "posthog-user-id")
#expect(storedProps["customerioId"] as? String == "customerio-id")
#expect(storedProps["appstackId"] as? String == "appstack-id")
#expect(storedProps["singularDeviceId"] as? String == "singular-device-id")
}
}

Expand Down
Loading