This repository was archived by the owner on Jun 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
The changelog for ` Superwall ` . Also see the [ releases] ( https://github.com/superwall/react-native-superwall/releases ) on GitHub.
4
4
5
+ ## 2.1.5
6
+
7
+ ### Enhancements
8
+
9
+ - Exposes the ` enableExperimentalDeviceVariables ` ` SuperwallOption ` .
10
+
5
11
## 2.1.4
6
12
7
- - Upgrades iOS SDK to 4.4.1 [ View iOS SDK release notes ] ( https://github.com/superwall/Superwall-iOS/releases/tag/4.4.1 ) .
13
+ ### Enhancements
8
14
15
+ - Upgrades iOS SDK to 4.4.1 [ View iOS SDK release notes] ( https://github.com/superwall/Superwall-iOS/releases/tag/4.4.1 ) .
9
16
- Upgrades Android SDK to 2.1.2 [ View Android SDK release notes] ( https://github.com/superwall/Superwall-Android/releases/tag/2.1.2 ) .
10
17
11
-
12
18
## 2.1.3
13
19
14
20
### Fixes
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ extension SuperwallOptions {
17
17
let localeIdentifier = dictionary [ " localeIdentifier " ] as? String
18
18
let isGameControllerEnabled = dictionary [ " isGameControllerEnabled " ] as? Bool ?? false
19
19
let storeKitVersion = dictionary [ " storeKitVersion " ] as? String
20
+ let enableExperimentalDeviceVariables =
21
+ dictionary [ " enableExperimentalDeviceVariables " ] as? String
20
22
21
23
let superwallOptions = SuperwallOptions ( )
22
24
superwallOptions. paywalls = paywalls
@@ -28,6 +30,7 @@ extension SuperwallOptions {
28
30
if let storeKitVersion = storeKitVersion {
29
31
superwallOptions. storeKitVersion = storeKitVersion == " STOREKIT1 " ? . storeKit1 : . storeKit2
30
32
}
33
+ superwallOptions. enableExperimentalDeviceVariables = enableExperimentalDeviceVariables
31
34
32
35
return superwallOptions
33
36
}
@@ -36,14 +39,14 @@ extension SuperwallOptions {
36
39
extension SuperwallOptions . NetworkEnvironment {
37
40
static func fromJson( _ json: String ) -> SuperwallOptions . NetworkEnvironment ? {
38
41
switch json {
39
- case " release " :
40
- return . release
41
- case " releaseCandidate " :
42
- return . releaseCandidate
43
- case " developer " :
44
- return . developer
45
- default :
46
- return nil
42
+ case " release " :
43
+ return . release
44
+ case " releaseCandidate " :
45
+ return . releaseCandidate
46
+ case " developer " :
47
+ return . developer
48
+ default :
49
+ return nil
47
50
}
48
51
}
49
52
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @superwall/react-native-superwall" ,
3
- "version" : " 2.1.4 " ,
3
+ "version" : " 2.1.5 " ,
4
4
"description" : " The React Native package for Superwall" ,
5
5
"main" : " lib/commonjs/index" ,
6
6
"module" : " lib/module/index" ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export class SuperwallOptions {
30
30
collectAdServicesAttribution : boolean = false ;
31
31
passIdentifiersToPlayStore : boolean = false ;
32
32
storeKitVersion ?: "STOREKIT1" | "STOREKIT2" ;
33
+ enableExperimentalDeviceVariables : boolean = false ;
33
34
34
35
constructor ( init ?: Partial < SuperwallOptions > ) {
35
36
if ( init ) {
@@ -54,6 +55,7 @@ export class SuperwallOptions {
54
55
collectAdServicesAttribution : this . collectAdServicesAttribution ,
55
56
passIdentifiersToPlayStore : this . passIdentifiersToPlayStore ,
56
57
storeKitVersion : this . storeKitVersion ,
58
+ enableExperimentalDeviceVariables : this . enableExperimentalDeviceVariables ,
57
59
} ;
58
60
}
59
61
}
You can’t perform that action at this time.
0 commit comments