From 5304660e14499c1bef0fec53f05befa4d58ae667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 26 May 2017 16:35:40 -0500 Subject: [PATCH] [RN] Polyfill Symbol --- react/features/app/actionTypes.js | 2 -- react/features/base/conference/actionTypes.js | 2 -- react/features/base/config/actionTypes.js | 2 -- react/features/base/connection/actionTypes.js | 2 -- react/features/base/devices/actionTypes.js | 2 -- react/features/base/dialog/actionTypes.js | 2 -- react/features/base/lib-jitsi-meet/actionTypes.js | 2 -- react/features/base/logging/actionTypes.js | 2 -- react/features/base/media/actionTypes.js | 2 -- react/features/base/participants/actionTypes.js | 2 -- react/features/base/react/Symbol.js | 5 ----- react/features/base/react/index.js | 1 - react/features/base/tracks/actionTypes.js | 2 -- react/features/desktop-picker/actionTypes.js | 2 -- react/features/dial-out/actionTypes.js | 2 -- react/features/filmstrip/actionTypes.js | 2 -- react/features/invite/actionTypes.js | 4 ---- react/features/jwt/actionTypes.js | 2 -- react/features/large-video/actionTypes.js | 2 -- react/features/mobile/background/actionTypes.js | 2 -- react/features/overlay/actionTypes.js | 2 -- react/features/share-room/actionTypes.js | 2 -- react/features/toolbox/actionTypes.js | 2 -- react/features/unsupported-browser/actionTypes.js | 2 -- react/index.native.js | 1 + 25 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 react/features/base/react/Symbol.js diff --git a/react/features/app/actionTypes.js b/react/features/app/actionTypes.js index 7e5f2da8b..eebf1122d 100644 --- a/react/features/app/actionTypes.js +++ b/react/features/app/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of the actions which signals that a specific App will mount (in the * terms of React). diff --git a/react/features/base/conference/actionTypes.js b/react/features/base/conference/actionTypes.js index fc016ecb1..4f52abeb0 100644 --- a/react/features/base/conference/actionTypes.js +++ b/react/features/base/conference/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The type of (redux) action which signals that a specific conference failed. * diff --git a/react/features/base/config/actionTypes.js b/react/features/base/config/actionTypes.js index 0f5898d5d..46d115ebf 100644 --- a/react/features/base/config/actionTypes.js +++ b/react/features/base/config/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The redux action which sets the configuration represented by the feature * base/config. The configuration is defined and consumed by the library diff --git a/react/features/base/connection/actionTypes.js b/react/features/base/connection/actionTypes.js index 0ceb34663..d628453a2 100644 --- a/react/features/base/connection/actionTypes.js +++ b/react/features/base/connection/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The type of (redux) action which signals that a connection disconnected. * diff --git a/react/features/base/devices/actionTypes.js b/react/features/base/devices/actionTypes.js index a828d08dd..b2d17089b 100644 --- a/react/features/base/devices/actionTypes.js +++ b/react/features/base/devices/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The type of Redux action which signals that the currently used audio * input device should be changed. diff --git a/react/features/base/dialog/actionTypes.js b/react/features/base/dialog/actionTypes.js index 9fcbdb006..487414d78 100644 --- a/react/features/base/dialog/actionTypes.js +++ b/react/features/base/dialog/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The type of Redux action which closes a dialog * diff --git a/react/features/base/lib-jitsi-meet/actionTypes.js b/react/features/base/lib-jitsi-meet/actionTypes.js index eeaa07054..25f9a44f5 100644 --- a/react/features/base/lib-jitsi-meet/actionTypes.js +++ b/react/features/base/lib-jitsi-meet/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The type of Redux action which signals that {@link JitsiMeetJS} was disposed. * diff --git a/react/features/base/logging/actionTypes.js b/react/features/base/logging/actionTypes.js index bdce0536b..bcdf064ed 100644 --- a/react/features/base/logging/actionTypes.js +++ b/react/features/base/logging/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The type of redux action which sets the configuration of the feature * base/logging. diff --git a/react/features/base/media/actionTypes.js b/react/features/base/media/actionTypes.js index c201b774c..10a8f791d 100644 --- a/react/features/base/media/actionTypes.js +++ b/react/features/base/media/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * The type of (redux) action to set the muted state of the local audio. * diff --git a/react/features/base/participants/actionTypes.js b/react/features/base/participants/actionTypes.js index 746cdd6c6..ef7a23079 100644 --- a/react/features/base/participants/actionTypes.js +++ b/react/features/base/participants/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * Create an action for when dominant speaker changes. * diff --git a/react/features/base/react/Symbol.js b/react/features/base/react/Symbol.js deleted file mode 100644 index d66ec9ba8..000000000 --- a/react/features/base/react/Symbol.js +++ /dev/null @@ -1,5 +0,0 @@ -// XXX React Native 0.41.2 does not polyfill Symbol. The React source code of -// jitsi/jitsi-meet does utilize Symbol though. However, it is satisfied with a -// ponyfill. -import Symbol from 'es6-symbol'; -export { Symbol as default }; diff --git a/react/features/base/react/index.js b/react/features/base/react/index.js index d24d9a776..b8b8c16c8 100644 --- a/react/features/base/react/index.js +++ b/react/features/base/react/index.js @@ -2,4 +2,3 @@ export * from './components'; export * from './functions'; export { default as Platform } from './Platform'; export { default as RouteRegistry } from './RouteRegistry'; -export { default as Symbol } from './Symbol'; diff --git a/react/features/base/tracks/actionTypes.js b/react/features/base/tracks/actionTypes.js index a51c90b63..163a261ad 100644 --- a/react/features/base/tracks/actionTypes.js +++ b/react/features/base/tracks/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../react'; - /** * Action for when a track has been added to the conference, * local or remote. diff --git a/react/features/desktop-picker/actionTypes.js b/react/features/desktop-picker/actionTypes.js index 722dd5188..28f11a11e 100644 --- a/react/features/desktop-picker/actionTypes.js +++ b/react/features/desktop-picker/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * Action to remove known DesktopCapturerSources. * diff --git a/react/features/dial-out/actionTypes.js b/react/features/dial-out/actionTypes.js index 0f3b7c027..5cd257faa 100644 --- a/react/features/dial-out/actionTypes.js +++ b/react/features/dial-out/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of the action which signals a check for a dial-out phone number has * succeeded. diff --git a/react/features/filmstrip/actionTypes.js b/react/features/filmstrip/actionTypes.js index 14f7ea611..cc32cae7e 100644 --- a/react/features/filmstrip/actionTypes.js +++ b/react/features/filmstrip/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of action which signals to change the visibility of remote videos in * the filmstrip. diff --git a/react/features/invite/actionTypes.js b/react/features/invite/actionTypes.js index f0bdeaf8e..303745fad 100644 --- a/react/features/invite/actionTypes.js +++ b/react/features/invite/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of the action which signals an error occurred while requesting dial- * in numbers. @@ -23,5 +21,3 @@ export const UPDATE_DIAL_IN_NUMBERS_FAILED */ export const UPDATE_DIAL_IN_NUMBERS_SUCCESS = Symbol('UPDATE_DIAL_IN_NUMBERS_SUCCESS'); - - diff --git a/react/features/jwt/actionTypes.js b/react/features/jwt/actionTypes.js index 8b21d65b0..c95ee71c1 100644 --- a/react/features/jwt/actionTypes.js +++ b/react/features/jwt/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of redux action which stores a specific JSON Web Token (JWT) into * the redux store. diff --git a/react/features/large-video/actionTypes.js b/react/features/large-video/actionTypes.js index 003cd07df..76664df36 100644 --- a/react/features/large-video/actionTypes.js +++ b/react/features/large-video/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * Action to select the participant to be displayed in LargeVideo. * diff --git a/react/features/mobile/background/actionTypes.js b/react/features/mobile/background/actionTypes.js index 3234b6e93..3f8fe6d88 100644 --- a/react/features/mobile/background/actionTypes.js +++ b/react/features/mobile/background/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../../base/react'; - /** * The type of redux action to set the AppState API change event listener. * diff --git a/react/features/overlay/actionTypes.js b/react/features/overlay/actionTypes.js index 3d5efb7d4..55baf662c 100644 --- a/react/features/overlay/actionTypes.js +++ b/react/features/overlay/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of the Redux action which signals that the prompt for media * permission is visible or not. diff --git a/react/features/share-room/actionTypes.js b/react/features/share-room/actionTypes.js index 83151550a..ae2da9604 100644 --- a/react/features/share-room/actionTypes.js +++ b/react/features/share-room/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of (redux) action which begins the UI procedure to share the current * conference/room URL. diff --git a/react/features/toolbox/actionTypes.js b/react/features/toolbox/actionTypes.js index aaf091d30..7ed2be5ec 100644 --- a/react/features/toolbox/actionTypes.js +++ b/react/features/toolbox/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of the action which clears the Toolbox visibility timeout. * diff --git a/react/features/unsupported-browser/actionTypes.js b/react/features/unsupported-browser/actionTypes.js index 599fa4d94..95d9af9a8 100644 --- a/react/features/unsupported-browser/actionTypes.js +++ b/react/features/unsupported-browser/actionTypes.js @@ -1,5 +1,3 @@ -import { Symbol } from '../base/react'; - /** * The type of the Redux action which signals that the React Component * UnsupportedMobileBrowser which was rendered as a promotion of the mobile app diff --git a/react/index.native.js b/react/index.native.js index 6a479c96f..0fae6971f 100644 --- a/react/index.native.js +++ b/react/index.native.js @@ -1,3 +1,4 @@ +import 'es6-symbol/implement'; import React, { Component } from 'react'; import { AppRegistry, Linking } from 'react-native';