@layers/react-native 0.2.0-alpha.2 → 0.2.0-alpha.3

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.
@@ -151,8 +151,9 @@ class LayersSKAN: NSObject {
151
151
  }
152
152
 
153
153
  let lock = lockWindow?.boolValue ?? false
154
+ let coarseValueOrDefault = coarse ?? .low // Default to .low if not specified
154
155
 
155
- SKAdNetwork.updatePostbackConversionValue(intValue, coarseValue: coarse, lockWindow: lock) { error in
156
+ SKAdNetwork.updatePostbackConversionValue(intValue, coarseValue: coarseValueOrDefault, lockWindow: lock) { error in
156
157
  if let error = error {
157
158
  print("[Layers SKAN] Error updating postback: \(error.localizedDescription)")
158
159
  reject("UPDATE_FAILED", error.localizedDescription, error)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layers/react-native",
3
- "version": "0.2.0-alpha.2",
3
+ "version": "0.2.0-alpha.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },