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
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

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

## 2.1.5

### Enhancements

- Exposes the `enableExperimentalDeviceVariables` `SuperwallOption`.

## 2.1.4

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

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


## 2.1.3

### Fixes
Expand Down
19 changes: 11 additions & 8 deletions ios/Json/SuperwallOptions+Json.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ extension SuperwallOptions {
let localeIdentifier = dictionary["localeIdentifier"] as? String
let isGameControllerEnabled = dictionary["isGameControllerEnabled"] as? Bool ?? false
let storeKitVersion = dictionary["storeKitVersion"] as? String
let enableExperimentalDeviceVariables =
dictionary["enableExperimentalDeviceVariables"] as? String

let superwallOptions = SuperwallOptions()
superwallOptions.paywalls = paywalls
Expand All @@ -28,6 +30,7 @@ extension SuperwallOptions {
if let storeKitVersion = storeKitVersion {
superwallOptions.storeKitVersion = storeKitVersion == "STOREKIT1" ? .storeKit1 : .storeKit2
}
superwallOptions.enableExperimentalDeviceVariables = enableExperimentalDeviceVariables

return superwallOptions
}
Expand All @@ -36,14 +39,14 @@ extension SuperwallOptions {
extension SuperwallOptions.NetworkEnvironment {
static func fromJson(_ json: String) -> SuperwallOptions.NetworkEnvironment? {
switch json {
case "release":
return .release
case "releaseCandidate":
return .releaseCandidate
case "developer":
return .developer
default:
return nil
case "release":
return .release
case "releaseCandidate":
return .releaseCandidate
case "developer":
return .developer
default:
return nil
}
}
}
Expand Down
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.4",
"version": "2.1.5",
"description": "The React Native package for Superwall",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 2 additions & 0 deletions src/public/SuperwallOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class SuperwallOptions {
collectAdServicesAttribution: boolean = false;
passIdentifiersToPlayStore: boolean = false;
storeKitVersion?: "STOREKIT1" | "STOREKIT2";
enableExperimentalDeviceVariables: boolean = false;

constructor(init?: Partial<SuperwallOptions>) {
if (init) {
Expand All @@ -54,6 +55,7 @@ export class SuperwallOptions {
collectAdServicesAttribution: this.collectAdServicesAttribution,
passIdentifiersToPlayStore: this.passIdentifiersToPlayStore,
storeKitVersion: this.storeKitVersion,
enableExperimentalDeviceVariables: this.enableExperimentalDeviceVariables,
};
}
}
Loading