chore(deps) react-native-watch-connectivity @ 1.0.4
This commit is contained in:
parent
188aff5aff
commit
b6501412c4
|
@ -387,7 +387,7 @@ PODS:
|
||||||
- React-Core
|
- React-Core
|
||||||
- RNSVG (12.1.0):
|
- RNSVG (12.1.0):
|
||||||
- React
|
- React
|
||||||
- RNWatch (0.4.3):
|
- RNWatch (1.0.4):
|
||||||
- React
|
- React
|
||||||
- Yoga (1.14.0)
|
- Yoga (1.14.0)
|
||||||
|
|
||||||
|
@ -644,7 +644,7 @@ SPEC CHECKSUMS:
|
||||||
RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d
|
RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d
|
||||||
RNSound: 27e8268bdb0a1f191f219a33267f7e0445e8d62f
|
RNSound: 27e8268bdb0a1f191f219a33267f7e0445e8d62f
|
||||||
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
|
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
|
||||||
RNWatch: a5320c959c75e72845c07985f3e935e58998f1d3
|
RNWatch: 99637948ec9b5c9ec5a41920642594ad5ba07e80
|
||||||
Yoga: 96b469c5e81ff51b917b92e8c3390642d4ded30c
|
Yoga: 96b469c5e81ff51b917b92e8c3390642d4ded30c
|
||||||
|
|
||||||
PODFILE CHECKSUM: 2e6a49cec4d0e9eb135654df2dddb3448d26cb4a
|
PODFILE CHECKSUM: 2e6a49cec4d0e9eb135654df2dddb3448d26cb4a
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
"react-native-tab-view": "2.16.0",
|
"react-native-tab-view": "2.16.0",
|
||||||
"react-native-url-polyfill": "1.3.0",
|
"react-native-url-polyfill": "1.3.0",
|
||||||
"react-native-video": "5.2.0",
|
"react-native-video": "5.2.0",
|
||||||
"react-native-watch-connectivity": "0.4.3",
|
"react-native-watch-connectivity": "1.0.4",
|
||||||
"react-native-webrtc": "1.94.1",
|
"react-native-webrtc": "1.94.1",
|
||||||
"react-native-webview": "11.0.2",
|
"react-native-webview": "11.0.2",
|
||||||
"react-native-youtube-iframe": "2.1.1",
|
"react-native-youtube-iframe": "2.1.1",
|
||||||
|
@ -12692,6 +12692,11 @@
|
||||||
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/lodash.sortby": {
|
||||||
|
"version": "4.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
|
||||||
|
"integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg="
|
||||||
|
},
|
||||||
"node_modules/lodash.throttle": {
|
"node_modules/lodash.throttle": {
|
||||||
"version": "4.1.1",
|
"version": "4.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
|
||||||
|
@ -16484,9 +16489,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-native-watch-connectivity": {
|
"node_modules/react-native-watch-connectivity": {
|
||||||
"version": "0.4.3",
|
"version": "1.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-0.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-1.0.4.tgz",
|
||||||
"integrity": "sha512-iqdJ1KpZbR4XGahgVmaeibB7kDhyMT7wrylINgJaYBY38IAiI0LF32VX1umO4pko6n21YF5I/kSeNQ+OXGqqow==",
|
"integrity": "sha512-Z7p7fzF6gaWHHM5kVYvM2l5bslc+59obqvfXA+DwqjOaO640APDjU7Sl8R2oglJhzLJArbmO25lH1YY1pSd8AQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"lodash.sortby": "^4.7.0"
|
||||||
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": ">=15.1",
|
"react": ">=15.1",
|
||||||
"react-native": ">=0.40"
|
"react-native": ">=0.40"
|
||||||
|
@ -30487,6 +30495,11 @@
|
||||||
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"lodash.sortby": {
|
||||||
|
"version": "4.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
|
||||||
|
"integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg="
|
||||||
|
},
|
||||||
"lodash.throttle": {
|
"lodash.throttle": {
|
||||||
"version": "4.1.1",
|
"version": "4.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
|
||||||
|
@ -33440,9 +33453,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-native-watch-connectivity": {
|
"react-native-watch-connectivity": {
|
||||||
"version": "0.4.3",
|
"version": "1.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-0.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-1.0.4.tgz",
|
||||||
"integrity": "sha512-iqdJ1KpZbR4XGahgVmaeibB7kDhyMT7wrylINgJaYBY38IAiI0LF32VX1umO4pko6n21YF5I/kSeNQ+OXGqqow=="
|
"integrity": "sha512-Z7p7fzF6gaWHHM5kVYvM2l5bslc+59obqvfXA+DwqjOaO640APDjU7Sl8R2oglJhzLJArbmO25lH1YY1pSd8AQ==",
|
||||||
|
"requires": {
|
||||||
|
"lodash.sortby": "^4.7.0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"react-native-webrtc": {
|
"react-native-webrtc": {
|
||||||
"version": "1.94.1",
|
"version": "1.94.1",
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
"react-native-tab-view": "2.16.0",
|
"react-native-tab-view": "2.16.0",
|
||||||
"react-native-url-polyfill": "1.3.0",
|
"react-native-url-polyfill": "1.3.0",
|
||||||
"react-native-video": "5.2.0",
|
"react-native-video": "5.2.0",
|
||||||
"react-native-watch-connectivity": "0.4.3",
|
"react-native-watch-connectivity": "1.0.4",
|
||||||
"react-native-webrtc": "1.94.1",
|
"react-native-webrtc": "1.94.1",
|
||||||
"react-native-webview": "11.0.2",
|
"react-native-webview": "11.0.2",
|
||||||
"react-native-youtube-iframe": "2.1.1",
|
"react-native-youtube-iframe": "2.1.1",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import { Platform } from 'react-native';
|
import { Platform } from 'react-native';
|
||||||
import * as watch from 'react-native-watch-connectivity';
|
import { updateApplicationContext, watchEvents } from 'react-native-watch-connectivity';
|
||||||
|
|
||||||
import { appNavigate } from '../../app/actions';
|
import { appNavigate } from '../../app/actions';
|
||||||
import { APP_WILL_MOUNT } from '../../base/app';
|
import { APP_WILL_MOUNT } from '../../base/app';
|
||||||
|
@ -70,18 +70,12 @@ watchOSEnabled && MiddlewareRegistry.register(store => next => action => {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
function _appWillMount({ dispatch, getState }) {
|
function _appWillMount({ dispatch, getState }) {
|
||||||
watch.subscribeToWatchReachability((error, reachable) => {
|
watchEvents.addListener('reachability', reachable => {
|
||||||
dispatch(setWatchReachable(reachable));
|
dispatch(setWatchReachable(reachable));
|
||||||
_updateApplicationContext(getState);
|
_updateApplicationContext(getState);
|
||||||
});
|
});
|
||||||
|
|
||||||
watch.subscribeToMessages((error, message) => {
|
watchEvents.addListener('message', message => {
|
||||||
if (error) {
|
|
||||||
logger.error('watch.subscribeToMessages error:', error);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
command,
|
command,
|
||||||
sessionID
|
sessionID
|
||||||
|
@ -185,7 +179,7 @@ function _updateApplicationContext(stateful) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
watch.updateApplicationContext({
|
updateApplicationContext({
|
||||||
conferenceTimestamp,
|
conferenceTimestamp,
|
||||||
conferenceURL: getCurrentConferenceUrl(state),
|
conferenceURL: getCurrentConferenceUrl(state),
|
||||||
micMuted: _isAudioMuted(state),
|
micMuted: _isAudioMuted(state),
|
||||||
|
|
Loading…
Reference in New Issue