vibes-react-native 5.0.0 → 5.0.1-rc1

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.
@@ -35,10 +35,8 @@ class VibesPluginLogger: NSObject {
35
35
  if let devId = UserDefaults.standard.vibesDeviceId {
36
36
  deviceId = devId
37
37
  }
38
- // get env from plist config file if set, else throw fatal error
39
- guard let env = Configuration.configValue(.vibesAppEnv) else {
40
- fatalError("`\(ConfigKey.vibesAppEnv.value())` must be set in plist file of current build configuration")
41
- }
38
+ // Prefer VibesAppEnv from Info.plist; default to production when unset.
39
+ let env = Configuration.configValue(.vibesAppEnv) ?? "PROD"
42
40
  let jsonObj: [String: Any] = ["os_type": "iOS",
43
41
  "device_id": deviceId ?? " - ",
44
42
  "env": env,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibes-react-native",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-rc1",
4
4
  "description": "The React Native plugin for the Vibes Mobile SDKs",
5
5
  "author": "Vibes",
6
6
  "main": "lib/commonjs/index",