@applicaster/quick-brick-core 13.0.0-alpha.6095951301 → 13.0.0-alpha.6518750342
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.
|
@@ -11,7 +11,10 @@ import * as ReactNative from "react-native";
|
|
|
11
11
|
import { isWeb } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
12
12
|
import { log_debug, log_error, log_info } from "../logger";
|
|
13
13
|
import { getAppUrlScheme } from "@applicaster/zapp-react-native-utils/appDataUtils";
|
|
14
|
-
|
|
14
|
+
import {
|
|
15
|
+
getZappPlatform,
|
|
16
|
+
ZappPlatform,
|
|
17
|
+
} from "@applicaster/zapp-react-native-utils/appUtils/platform";
|
|
15
18
|
type Props = {
|
|
16
19
|
listenerSpy?: (...any) => void;
|
|
17
20
|
children: ReactChild;
|
|
@@ -36,6 +39,8 @@ const initialState = { url: null, done: () => {} };
|
|
|
36
39
|
export const URLSchemeContext = createContext<State>(initialState);
|
|
37
40
|
|
|
38
41
|
const getWebDeepLink = (initialURL: string) => {
|
|
42
|
+
if (!initialURL) return null;
|
|
43
|
+
|
|
39
44
|
const index = initialURL.indexOf("?");
|
|
40
45
|
if (index === -1) return;
|
|
41
46
|
|
|
@@ -62,14 +67,16 @@ function URLSchemeContextProvider(props: Props) {
|
|
|
62
67
|
const url = await Linking.getInitialURL();
|
|
63
68
|
|
|
64
69
|
if (isWeb()) {
|
|
65
|
-
|
|
70
|
+
if (getZappPlatform() === ZappPlatform.Vizio) {
|
|
71
|
+
const deepLink = getWebDeepLink(url);
|
|
66
72
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
if (deepLink) {
|
|
74
|
+
log_info(
|
|
75
|
+
`URLSchemeContextProvider: Retrieved initial deep link: ${deepLink}`
|
|
76
|
+
);
|
|
71
77
|
|
|
72
|
-
|
|
78
|
+
return setState(deepLink);
|
|
79
|
+
}
|
|
73
80
|
}
|
|
74
81
|
|
|
75
82
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.6518750342",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@applicaster/applicaster-types": "13.0.0-alpha.
|
|
33
|
-
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.
|
|
35
|
-
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.
|
|
36
|
-
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.
|
|
37
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.
|
|
38
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.
|
|
32
|
+
"@applicaster/applicaster-types": "13.0.0-alpha.6518750342",
|
|
33
|
+
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.6518750342",
|
|
34
|
+
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.6518750342",
|
|
35
|
+
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.6518750342",
|
|
36
|
+
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.6518750342",
|
|
37
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.6518750342",
|
|
38
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.6518750342",
|
|
39
39
|
"atob": "^2.1.2",
|
|
40
40
|
"axios": "^0.28.0",
|
|
41
41
|
"btoa": "^1.2.1",
|