@sendoracloud/sdk-react-native 1.9.0 → 1.10.0

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.
package/dist/index.cjs CHANGED
@@ -223,7 +223,7 @@ async function request(opts, method, path, body, extraHeaders, reqOpts) {
223
223
  // package.json
224
224
  var package_default = {
225
225
  name: "@sendoracloud/sdk-react-native",
226
- version: "1.9.0",
226
+ version: "1.10.0",
227
227
  description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
228
228
  type: "module",
229
229
  main: "./dist/index.cjs",
@@ -2046,12 +2046,22 @@ function buildDeviceContext(appVersion) {
2046
2046
  os: os === "ios" ? "iOS" : "Android",
2047
2047
  osVersion: String(import_react_native4.Platform.Version ?? ""),
2048
2048
  model: "",
2049
- appVersion: appVersion ?? ""
2049
+ appVersion: resolveAppVersion(appVersion)
2050
2050
  };
2051
2051
  } catch {
2052
2052
  return void 0;
2053
2053
  }
2054
2054
  }
2055
+ function resolveAppVersion(configAppVersion) {
2056
+ if (configAppVersion) return configAppVersion;
2057
+ try {
2058
+ const env = process.env.EXPO_PUBLIC_APP_VERSION;
2059
+ if (env) return env;
2060
+ } catch {
2061
+ }
2062
+ const g = globalThis.__SENDORA_APP_VERSION__;
2063
+ return typeof g === "string" ? g : "";
2064
+ }
2055
2065
  var SendoraSDK = class {
2056
2066
  constructor() {
2057
2067
  this.config = null;
package/dist/index.js CHANGED
@@ -180,7 +180,7 @@ async function request(opts, method, path, body, extraHeaders, reqOpts) {
180
180
  // package.json
181
181
  var package_default = {
182
182
  name: "@sendoracloud/sdk-react-native",
183
- version: "1.9.0",
183
+ version: "1.10.0",
184
184
  description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
185
185
  type: "module",
186
186
  main: "./dist/index.cjs",
@@ -2008,12 +2008,22 @@ function buildDeviceContext(appVersion) {
2008
2008
  os: os === "ios" ? "iOS" : "Android",
2009
2009
  osVersion: String(Platform.Version ?? ""),
2010
2010
  model: "",
2011
- appVersion: appVersion ?? ""
2011
+ appVersion: resolveAppVersion(appVersion)
2012
2012
  };
2013
2013
  } catch {
2014
2014
  return void 0;
2015
2015
  }
2016
2016
  }
2017
+ function resolveAppVersion(configAppVersion) {
2018
+ if (configAppVersion) return configAppVersion;
2019
+ try {
2020
+ const env = process.env.EXPO_PUBLIC_APP_VERSION;
2021
+ if (env) return env;
2022
+ } catch {
2023
+ }
2024
+ const g = globalThis.__SENDORA_APP_VERSION__;
2025
+ return typeof g === "string" ? g : "";
2026
+ }
2017
2027
  var SendoraSDK = class {
2018
2028
  constructor() {
2019
2029
  this.config = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoracloud/sdk-react-native",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Sendora Cloud React Native + Expo SDK — analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",