Преглед на файлове

ios: enable recording in dev mode

While Apple doesn't want to allow us to enable Dropbox, it's good to have it
available for testing.
j8
Saúl Ibarra Corretgé преди 6 години
родител
ревизия
3cec4989fd
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3
    1
      react/features/toolbox/components/native/OverflowMenu.js

+ 3
- 1
react/features/toolbox/components/native/OverflowMenu.js Целия файл

20
 import AudioOnlyButton from './AudioOnlyButton';
20
 import AudioOnlyButton from './AudioOnlyButton';
21
 import ToggleCameraButton from './ToggleCameraButton';
21
 import ToggleCameraButton from './ToggleCameraButton';
22
 
22
 
23
+declare var __DEV__;
24
+
23
 /**
25
 /**
24
  * The type of the React {@code Component} props of {@link OverflowMenu}.
26
  * The type of the React {@code Component} props of {@link OverflowMenu}.
25
  */
27
  */
82
                     // Apple rejected our app because they claim requiring a
84
                     // Apple rejected our app because they claim requiring a
83
                     // Dropbox account for recording is not acceptable.
85
                     // Dropbox account for recording is not acceptable.
84
                     // Ddisable it until we can find a way around it.
86
                     // Ddisable it until we can find a way around it.
85
-                    Platform.OS !== 'ios'
87
+                    (__DEV__ || Platform.OS !== 'ios')
86
                         && <RecordButton { ...buttonProps } />
88
                         && <RecordButton { ...buttonProps } />
87
                 }
89
                 }
88
                 <LiveStreamButton { ...buttonProps } />
90
                 <LiveStreamButton { ...buttonProps } />

Loading…
Отказ
Запис