react-native-nami-sdk 3.3.0-beta.22 → 3.3.0-beta.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,14 +73,16 @@ class NamiCampaignManagerBridgeModule internal constructor(
73
73
  if (context != null) {
74
74
  val productGroups: MutableList<String> = mutableListOf()
75
75
  val customAttributes: MutableMap<String, Any> = mutableMapOf()
76
- var customObject: MutableMap<String, Any?> = mutableMapOf()
76
+ val customObject: MutableMap<String, Any?> = mutableMapOf()
77
77
 
78
78
  if (context.hasKey("productGroups")) {
79
79
  val groups = context.getArray("productGroups")
80
80
  if (groups != null) {
81
81
  for (i in 0 until groups.size()) {
82
82
  val groupString = groups.getString(i)
83
- productGroups.add(groupString)
83
+ if (groupString != null) {
84
+ productGroups.add(groupString)
85
+ }
84
86
  }
85
87
  }
86
88
  Log.d(NAME, "productGroups $productGroups")
@@ -2,4 +2,4 @@
2
2
  * Auto-generated file. Do not edit manually.
3
3
  * React Native Nami SDK version.
4
4
  */
5
- export declare const NAMI_REACT_NATIVE_VERSION = "3.3.0-beta.22";
5
+ export declare const NAMI_REACT_NATIVE_VERSION = "3.3.0-beta.23";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nami-sdk",
3
- "version": "3.3.0-beta.22",
3
+ "version": "3.3.0-beta.23",
4
4
  "description": "React Native Module for Nami - Easy subscriptions & in-app purchases, with powerful built-in paywalls and A/B testing.",
5
5
  "main": "index.ts",
6
6
  "types": "dist/index.d.ts",
package/src/version.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Auto-generated file. Do not edit manually.
3
3
  * React Native Nami SDK version.
4
4
  */
5
- export const NAMI_REACT_NATIVE_VERSION = '3.3.0-beta.22';
5
+ export const NAMI_REACT_NATIVE_VERSION = '3.3.0-beta.23';