@trustchex/react-native-sdk 1.266.0 → 1.266.1

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.
@@ -10,7 +10,7 @@ import DeviceInfo from 'react-native-device-info';
10
10
  import RNFS from 'react-native-fs';
11
11
  import 'react-native-get-random-values';
12
12
  import { v4 as uuidv4 } from 'uuid';
13
- import packageJson from '../../../package.json';
13
+ import { SDK_VERSION } from "../../version.js";
14
14
  import { AnalyticsEventName } from "../Types/analytics.types.js";
15
15
  class AnalyticsService {
16
16
  config = null;
@@ -317,7 +317,7 @@ class AnalyticsService {
317
317
  platform: platform,
318
318
  osVersion: DeviceInfo.getSystemVersion(),
319
319
  appVersion: DeviceInfo.getVersion(),
320
- sdkVersion: packageJson.version,
320
+ sdkVersion: SDK_VERSION,
321
321
  locale: 'en',
322
322
  // Will be set from app context
323
323
  timezone: new Date().toTimeString().split(' ')[1] || 'UTC',
@@ -330,7 +330,7 @@ class AnalyticsService {
330
330
  platform: 'android',
331
331
  osVersion: 'unknown',
332
332
  appVersion: 'unknown',
333
- sdkVersion: packageJson.version,
333
+ sdkVersion: SDK_VERSION,
334
334
  locale: 'en',
335
335
  timezone: 'UTC',
336
336
  screenResolution: 'unknown'
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // This file is auto-generated. Do not edit manually.
4
+ // Version is synced from package.json during build.
5
+ export const SDK_VERSION = '1.266.1';
@@ -0,0 +1,2 @@
1
+ export declare const SDK_VERSION = "1.266.1";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustchex/react-native-sdk",
3
- "version": "1.266.0",
3
+ "version": "1.266.1",
4
4
  "description": "Trustchex mobile app react native SDK for android or ios devices",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -8,7 +8,7 @@ import DeviceInfo from 'react-native-device-info';
8
8
  import RNFS from 'react-native-fs';
9
9
  import 'react-native-get-random-values';
10
10
  import { v4 as uuidv4 } from 'uuid';
11
- import packageJson from '../../../package.json';
11
+ import { SDK_VERSION } from '../../version';
12
12
  import {
13
13
  AnalyticsEventCategory,
14
14
  AnalyticsEventName,
@@ -352,7 +352,7 @@ class AnalyticsService implements IAnalyticsService {
352
352
  platform: platform as 'ios' | 'android',
353
353
  osVersion: DeviceInfo.getSystemVersion(),
354
354
  appVersion: DeviceInfo.getVersion(),
355
- sdkVersion: packageJson.version,
355
+ sdkVersion: SDK_VERSION,
356
356
  locale: 'en', // Will be set from app context
357
357
  timezone: new Date().toTimeString().split(' ')[1] || 'UTC',
358
358
  screenResolution: `${DeviceInfo.getDeviceType()}`,
@@ -364,7 +364,7 @@ class AnalyticsService implements IAnalyticsService {
364
364
  platform: 'android',
365
365
  osVersion: 'unknown',
366
366
  appVersion: 'unknown',
367
- sdkVersion: packageJson.version,
367
+ sdkVersion: SDK_VERSION,
368
368
  locale: 'en',
369
369
  timezone: 'UTC',
370
370
  screenResolution: 'unknown',
package/src/version.ts ADDED
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated. Do not edit manually.
2
+ // Version is synced from package.json during build.
3
+ export const SDK_VERSION = '1.266.1';