@applicaster/zapp-react-dom-app 14.0.0-rc.44 → 14.0.0-rc.46
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.
|
@@ -8,7 +8,7 @@ import { appStore } from "@applicaster/zapp-react-native-redux/AppStore";
|
|
|
8
8
|
import { sessionStorage } from "@applicaster/zapp-react-native-bridge/ZappStorage/SessionStorage";
|
|
9
9
|
import { localStorage } from "@applicaster/zapp-react-native-bridge/ZappStorage/LocalStorage";
|
|
10
10
|
|
|
11
|
-
import { renameKeys, getDeviceData } from "./utils/platform";
|
|
11
|
+
import { renameKeys, getDeviceData, getUserAgent } from "./utils/platform";
|
|
12
12
|
import { desiredKeysMap } from "./utils/const";
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -61,8 +61,9 @@ async function gatherData(uuid) {
|
|
|
61
61
|
const sessionStorageData = {
|
|
62
62
|
// Build time values
|
|
63
63
|
...NativeModules?.QuickBrickCommunicationModule,
|
|
64
|
-
// Device data retrieved from native device apis
|
|
65
|
-
...deviceData,
|
|
64
|
+
// Device data retrieved from native device apis, sdkVersion of the device was overriding the build time value
|
|
65
|
+
...R.omit(["sdkVersion"], deviceData),
|
|
66
|
+
userAgent: deviceData.userAgent || getUserAgent(),
|
|
66
67
|
uuid: uuid || uuidv4(), // Created on first session, persisted in local thereafter
|
|
67
68
|
sessionId: uuidv4(), // Created on every session
|
|
68
69
|
locale: `{language=${languageLocale}, country=${countryLocale}}`,
|
|
@@ -257,26 +257,7 @@ export const getTizenInfo = () => {
|
|
|
257
257
|
*/
|
|
258
258
|
export const getDeviceData = async () => {
|
|
259
259
|
try {
|
|
260
|
-
let deviceData = {
|
|
261
|
-
modelName: null,
|
|
262
|
-
version: null,
|
|
263
|
-
versionMajor: null,
|
|
264
|
-
versionMinor: null,
|
|
265
|
-
versionDot: null,
|
|
266
|
-
sdkVersion: null,
|
|
267
|
-
screenWidth: null,
|
|
268
|
-
screenHeight: null,
|
|
269
|
-
uhd: null,
|
|
270
|
-
oled: null,
|
|
271
|
-
ddrSize: null,
|
|
272
|
-
uhd8K: null,
|
|
273
|
-
hdr10: null,
|
|
274
|
-
dolbyVision: null,
|
|
275
|
-
dolbyAtmos: null,
|
|
276
|
-
name: null,
|
|
277
|
-
osVersion: null,
|
|
278
|
-
networkType: null,
|
|
279
|
-
};
|
|
260
|
+
let deviceData = {};
|
|
280
261
|
|
|
281
262
|
if (isLgPlatform()) {
|
|
282
263
|
const [webOSInfo, webOSConnectionInfo] = await Promise.all([
|
|
@@ -308,7 +289,6 @@ export const getDeviceData = async () => {
|
|
|
308
289
|
platform: "vizio",
|
|
309
290
|
deviceMake: "Vizio",
|
|
310
291
|
deviceType: "tv",
|
|
311
|
-
userAgent: getUserAgent(),
|
|
312
292
|
deviceWidth: window.innerWidth,
|
|
313
293
|
deviceHeight: window.innerHeight,
|
|
314
294
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "14.0.0-rc.
|
|
3
|
+
"version": "14.0.0-rc.46",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@applicaster/zapp-react-dom-ui-components": "14.0.0-rc.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-rc.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-rc.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "14.0.0-rc.46",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.46",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-rc.46",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.46",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-rc.46",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"typeface-montserrat": "^0.0.54",
|
|
32
32
|
"video.js": "7.14.3",
|