@applicaster/quick-brick-core 12.0.0-rc.75 → 12.0.0-rc.77

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.
@@ -3,7 +3,10 @@ import * as R from "ramda";
3
3
 
4
4
  import { NetInfoState } from "@react-native-community/netinfo";
5
5
  import { NETWORK_HOOKS_KEYS } from "./const";
6
- import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
6
+ import {
7
+ isVizioPlatform,
8
+ platformSelect,
9
+ } from "@applicaster/zapp-react-native-utils/reactUtils";
7
10
  import { Platform } from "react-native";
8
11
 
9
12
  type ConnectionStatus = boolean;
@@ -203,6 +206,18 @@ export const subscribeToDeviceNetworkChanges = (callback: NetCb) => {
203
206
  registeredListener = webapis.network.addNetworkStateChangeListener(
204
207
  samsungNetworkChangeHandler(callback)
205
208
  );
209
+
210
+ return;
211
+ }
212
+
213
+ if (isVizioPlatform()) {
214
+ window.addEventListener("online", function () {
215
+ callback({ online: true });
216
+ });
217
+
218
+ window.addEventListener("offline", function () {
219
+ callback({ online: false });
220
+ });
206
221
  }
207
222
  };
208
223
 
@@ -214,5 +229,12 @@ export const subscribeToDeviceNetworkChanges = (callback: NetCb) => {
214
229
  export const unsubscribeToDeviceNetworkChanges = (id = registeredListener) => {
215
230
  if (hasTizenAPIs()) {
216
231
  webapis.network.removeNetworkStateChangeListener(id);
232
+
233
+ return;
234
+ }
235
+
236
+ if (isVizioPlatform()) {
237
+ window.removeEventListener("online", function () {});
238
+ window.removeEventListener("offline", function () {});
217
239
  }
218
240
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-core",
3
- "version": "12.0.0-rc.75",
3
+ "version": "12.0.0-rc.77",
4
4
  "description": "Core package for Applicaster's Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -30,13 +30,13 @@
30
30
  },
31
31
  "homepage": "https://github.com/applicaster/quickbrick#readme",
32
32
  "dependencies": {
33
- "@applicaster/applicaster-types": "12.0.0-rc.75",
34
- "@applicaster/quick-brick-core-plugins": "12.0.0-rc.75",
35
- "@applicaster/zapp-pipes-v2-client": "12.0.0-rc.75",
36
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.75",
37
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.75",
38
- "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.75",
39
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.75",
33
+ "@applicaster/applicaster-types": "12.0.0-rc.77",
34
+ "@applicaster/quick-brick-core-plugins": "12.0.0-rc.77",
35
+ "@applicaster/zapp-pipes-v2-client": "12.0.0-rc.77",
36
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.77",
37
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.77",
38
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.77",
39
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.77",
40
40
  "atob": "^2.1.2",
41
41
  "axios": "^0.28.0",
42
42
  "btoa": "^1.2.1",