Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 503fa40

Browse files
authored
Merge pull request #89 from superwall/develop
2.1.3
2 parents 65b3a9d + a77f62c commit 503fa40

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

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

5+
## 2.1.3
6+
7+
### Fixes
8+
9+
- Fixes issue when building for iOS.
10+
511
## 2.1.2
612

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

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

23-
29+
### Enhancements
2430
- Adds support for `storeKitVersion` in `SuperwallOptions`.
2531
- Fixes an issue preventing `SuperwallDelegate.didRedeemLink` from getting
2632
called when a Web Checkout link was redeemed.

ios/Json/SuperwallPlacementInfo+Json.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ extension SuperwallEvent {
212212
return json
213213
case .enrichmentFail:
214214
return ["event": "enrichmentFail"]
215+
case .networkDecodingFail:
216+
return ["event": "networkDecodingFail"]
215217
}
216218
}
217219
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superwall/react-native-superwall",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "The React Native package for Superwall",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

src/public/SuperwallEventInfo.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ export enum EventType {
8989
redemptionFail = "redemptionFail",
9090
enrichmentStart = "enrichmentStart",
9191
enrichmentComplete = "enrichmentComplete",
92-
enrichmentFail = "enrichmentFail"
92+
enrichmentFail = "enrichmentFail",
93+
networkDecodingFail = "networkDecodingFail"
9394
}
9495

9596
export class SuperwallEvent {
@@ -167,6 +168,8 @@ export class SuperwallEvent {
167168
case EventType.shimmerViewStart:
168169
case EventType.shimmerViewComplete:
169170
case EventType.subscriptionStatusDidChange:
171+
case EventType.enrichmentFail:
172+
case EventType.networkDecodingFail:
170173
return new SuperwallEvent({ type: eventType });
171174
case EventType.restoreFail:
172175
return new SuperwallEvent({
@@ -314,8 +317,6 @@ export class SuperwallEvent {
314317
userAttributes: json.userEnrichment,
315318
deviceAttributes: json.deviceEnrichment,
316319
});
317-
case EventType.enrichmentFail:
318-
return new SuperwallEvent({ type: eventType });
319320
// Further cases would follow a similar pattern, handling additional properties as needed
320321
// For complex nested objects like 'result', 'paywallInfo', etc., you would use the corresponding fromJson methods
321322
default:

0 commit comments

Comments
 (0)