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
6 changes: 6 additions & 0 deletions 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.0 (Beta 3)

### Fixes

- Adds support for `storeKitVersion` in `SuperwallOptions`.

## 2.1.0 (Beta 2)

### Fixes
Expand Down
4 changes: 4 additions & 0 deletions ios/Json/SuperwallOptions+Json.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ extension SuperwallOptions {

let localeIdentifier = dictionary["localeIdentifier"] as? String
let isGameControllerEnabled = dictionary["isGameControllerEnabled"] as? Bool ?? false
let storeKitVersion = dictionary["storeKitVersion"] as? String

let superwallOptions = SuperwallOptions()
superwallOptions.paywalls = paywalls
Expand All @@ -24,6 +25,9 @@ extension SuperwallOptions {
superwallOptions.localeIdentifier = localeIdentifier
superwallOptions.isGameControllerEnabled = isGameControllerEnabled
superwallOptions.logging = logging
if let storeKitVersion = storeKitVersion {
superwallOptions.storeKitVersion = storeKitVersion == "STOREKIT1" ? .storeKit1 : .storeKit2
}

return superwallOptions
}
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.0-beta.2",
"version": "2.1.0-beta.3",
"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 @@ -29,6 +29,7 @@ export class SuperwallOptions {
logging: LoggingOptions = new LoggingOptions();
collectAdServicesAttribution: boolean = false;
passIdentifiersToPlayStore: boolean = false;
storeKitVersion?: "STOREKIT1" | "STOREKIT2";

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