Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
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
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## 2.1.3

### Fixes

- Fixes issue when building for iOS.

## 2.1.2

### Fixes
Expand All @@ -20,7 +26,7 @@ The changelog for `Superwall`. Also see the [releases](https://github.com/superw

- Upgrades iOS SDK to 4.3.9 [View iOS SDK release notes](https://github.com/superwall/Superwall-iOS/releases/tag/4.3.9).


### Enhancements
- Adds support for `storeKitVersion` in `SuperwallOptions`.
- Fixes an issue preventing `SuperwallDelegate.didRedeemLink` from getting
called when a Web Checkout link was redeemed.
Expand Down
2 changes: 2 additions & 0 deletions ios/Json/SuperwallPlacementInfo+Json.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ extension SuperwallEvent {
return json
case .enrichmentFail:
return ["event": "enrichmentFail"]
case .networkDecodingFail:
return ["event": "networkDecodingFail"]
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superwall/react-native-superwall",
"version": "2.1.2",
"version": "2.1.3",
"description": "The React Native package for Superwall",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
7 changes: 4 additions & 3 deletions src/public/SuperwallEventInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export enum EventType {
redemptionFail = "redemptionFail",
enrichmentStart = "enrichmentStart",
enrichmentComplete = "enrichmentComplete",
enrichmentFail = "enrichmentFail"
enrichmentFail = "enrichmentFail",
networkDecodingFail = "networkDecodingFail"
}

export class SuperwallEvent {
Expand Down Expand Up @@ -167,6 +168,8 @@ export class SuperwallEvent {
case EventType.shimmerViewStart:
case EventType.shimmerViewComplete:
case EventType.subscriptionStatusDidChange:
case EventType.enrichmentFail:
case EventType.networkDecodingFail:
return new SuperwallEvent({ type: eventType });
case EventType.restoreFail:
return new SuperwallEvent({
Expand Down Expand Up @@ -314,8 +317,6 @@ export class SuperwallEvent {
userAttributes: json.userEnrichment,
deviceAttributes: json.deviceEnrichment,
});
case EventType.enrichmentFail:
return new SuperwallEvent({ type: eventType });
// Further cases would follow a similar pattern, handling additional properties as needed
// For complex nested objects like 'result', 'paywallInfo', etc., you would use the corresponding fromJson methods
default:
Expand Down
Loading