@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.
- package/lib/module/Shared/Services/AnalyticsService.js +3 -3
- package/lib/module/version.js +5 -0
- package/lib/typescript/src/version.d.ts +2 -0
- package/lib/typescript/src/version.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/Shared/Services/AnalyticsService.ts +3 -3
- package/src/version.ts +3 -0
|
@@ -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
|
|
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:
|
|
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:
|
|
333
|
+
sdkVersion: SDK_VERSION,
|
|
334
334
|
locale: 'en',
|
|
335
335
|
timezone: 'UTC',
|
|
336
336
|
screenResolution: 'unknown'
|
|
@@ -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
|
@@ -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
|
|
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:
|
|
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:
|
|
367
|
+
sdkVersion: SDK_VERSION,
|
|
368
368
|
locale: 'en',
|
|
369
369
|
timezone: 'UTC',
|
|
370
370
|
screenResolution: 'unknown',
|
package/src/version.ts
ADDED