浏览代码

ref(dependency): latest react-native-video and device-info updates

factor2
Calin-Teodor 2 年前
父节点
当前提交
60ad0196c3
共有 4 个文件被更改,包括 21 次插入22 次删除
  1. 4
    4
      ios/Podfile.lock
  2. 7
    8
      package-lock.json
  3. 1
    1
      package.json
  4. 9
    9
      react/features/analytics/handlers/amplitude/fixDeviceID.native.ts

+ 4
- 4
ios/Podfile.lock 查看文件

385
     - React-Core
385
     - React-Core
386
   - react-native-splash-screen (3.3.0):
386
   - react-native-splash-screen (3.3.0):
387
     - React-Core
387
     - React-Core
388
-  - react-native-video (6.0.0-alpha.1):
388
+  - react-native-video (6.0.0-alpha.7):
389
     - React-Core
389
     - React-Core
390
-    - react-native-video/Video (= 6.0.0-alpha.1)
391
-  - react-native-video/Video (6.0.0-alpha.1):
390
+    - react-native-video/Video (= 6.0.0-alpha.7)
391
+  - react-native-video/Video (6.0.0-alpha.7):
392
     - PromisesSwift
392
     - PromisesSwift
393
     - React-Core
393
     - React-Core
394
   - react-native-webrtc (111.0.3):
394
   - react-native-webrtc (111.0.3):
759
   react-native-safe-area-context: 9697629f7b2cda43cf52169bb7e0767d330648c2
759
   react-native-safe-area-context: 9697629f7b2cda43cf52169bb7e0767d330648c2
760
   react-native-slider: 1cdd6ba29675df21f30544253bf7351d3c2d68c4
760
   react-native-slider: 1cdd6ba29675df21f30544253bf7351d3c2d68c4
761
   react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457
761
   react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457
762
-  react-native-video: bb6f12a7198db53b261fefb5d609dc77417acc8b
762
+  react-native-video: 967eead48aaa42c25a9e1d65c3b1ab30762a88df
763
   react-native-webrtc: 4d1669c2ed29767fe70b0169428b4466589ecf8b
763
   react-native-webrtc: 4d1669c2ed29767fe70b0169428b4466589ecf8b
764
   react-native-webview: 8baa0f5c6d336d6ba488e942bcadea5bf51f050a
764
   react-native-webview: 8baa0f5c6d336d6ba488e942bcadea5bf51f050a
765
   React-perflogger: fdee2a0c512167ae4c19c4e230ccf6aa66a6aff0
765
   React-perflogger: fdee2a0c512167ae4c19c4e230ccf6aa66a6aff0

+ 7
- 8
package-lock.json 查看文件

96
         "react-native-svg-transformer": "1.1.0",
96
         "react-native-svg-transformer": "1.1.0",
97
         "react-native-tab-view": "3.5.2",
97
         "react-native-tab-view": "3.5.2",
98
         "react-native-url-polyfill": "2.0.0",
98
         "react-native-url-polyfill": "2.0.0",
99
-        "react-native-video": "https://git@github.com/react-native-video/react-native-video#7c48ae7c8544b2b537fb60194e9620b9fcceae52",
99
+        "react-native-video": "6.0.0-alpha.7",
100
         "react-native-watch-connectivity": "1.1.0",
100
         "react-native-watch-connectivity": "1.1.0",
101
         "react-native-webrtc": "111.0.3",
101
         "react-native-webrtc": "111.0.3",
102
         "react-native-webview": "13.5.1",
102
         "react-native-webview": "13.5.1",
16528
       }
16528
       }
16529
     },
16529
     },
16530
     "node_modules/react-native-video": {
16530
     "node_modules/react-native-video": {
16531
-      "version": "6.0.0-alpha.1",
16532
-      "resolved": "git+https://git@github.com/react-native-video/react-native-video.git#7c48ae7c8544b2b537fb60194e9620b9fcceae52",
16533
-      "integrity": "sha512-ep7IawO/T8Ch250ZQgpiGmKzWaHLdpSRhXyGZTY4RG2kXmWD0BdIfORj/p1LouPLGjy0k3CXaVYt9a/KI0ZAcA==",
16534
-      "license": "MIT",
16531
+      "version": "6.0.0-alpha.7",
16532
+      "resolved": "https://registry.npmjs.org/react-native-video/-/react-native-video-6.0.0-alpha.7.tgz",
16533
+      "integrity": "sha512-X/siSaJf0V//IbnozjDm1jAjNaXlFy6Hbr6X8GNFl/ztLvN+Z8R/Quq9Q8o22XVwlPacPQ9VS/G0Stdktn0FEw==",
16535
       "dependencies": {
16534
       "dependencies": {
16536
         "deprecated-react-native-prop-types": "^2.2.0",
16535
         "deprecated-react-native-prop-types": "^2.2.0",
16537
         "keymirror": "^0.1.1",
16536
         "keymirror": "^0.1.1",
32574
       }
32573
       }
32575
     },
32574
     },
32576
     "react-native-video": {
32575
     "react-native-video": {
32577
-      "version": "git+https://git@github.com/react-native-video/react-native-video.git#7c48ae7c8544b2b537fb60194e9620b9fcceae52",
32578
-      "integrity": "sha512-ep7IawO/T8Ch250ZQgpiGmKzWaHLdpSRhXyGZTY4RG2kXmWD0BdIfORj/p1LouPLGjy0k3CXaVYt9a/KI0ZAcA==",
32579
-      "from": "react-native-video@https://git@github.com/react-native-video/react-native-video#7c48ae7c8544b2b537fb60194e9620b9fcceae52",
32576
+      "version": "6.0.0-alpha.7",
32577
+      "resolved": "https://registry.npmjs.org/react-native-video/-/react-native-video-6.0.0-alpha.7.tgz",
32578
+      "integrity": "sha512-X/siSaJf0V//IbnozjDm1jAjNaXlFy6Hbr6X8GNFl/ztLvN+Z8R/Quq9Q8o22XVwlPacPQ9VS/G0Stdktn0FEw==",
32580
       "requires": {
32579
       "requires": {
32581
         "deprecated-react-native-prop-types": "^2.2.0",
32580
         "deprecated-react-native-prop-types": "^2.2.0",
32582
         "keymirror": "^0.1.1",
32581
         "keymirror": "^0.1.1",

+ 1
- 1
package.json 查看文件

102
     "react-native-svg-transformer": "1.1.0",
102
     "react-native-svg-transformer": "1.1.0",
103
     "react-native-tab-view": "3.5.2",
103
     "react-native-tab-view": "3.5.2",
104
     "react-native-url-polyfill": "2.0.0",
104
     "react-native-url-polyfill": "2.0.0",
105
-    "react-native-video": "https://git@github.com/react-native-video/react-native-video#7c48ae7c8544b2b537fb60194e9620b9fcceae52",
105
+    "react-native-video": "6.0.0-alpha.7",
106
     "react-native-watch-connectivity": "1.1.0",
106
     "react-native-watch-connectivity": "1.1.0",
107
     "react-native-webrtc": "111.0.3",
107
     "react-native-webrtc": "111.0.3",
108
     "react-native-webview": "13.5.1",
108
     "react-native-webview": "13.5.1",

+ 9
- 9
react/features/analytics/handlers/amplitude/fixDeviceID.native.ts 查看文件

1
 import { Amplitude } from '@amplitude/react-native';
1
 import { Amplitude } from '@amplitude/react-native';
2
 import DefaultPreference from 'react-native-default-preference';
2
 import DefaultPreference from 'react-native-default-preference';
3
-import { syncUniqueId } from 'react-native-device-info';
3
+import { getUniqueId } from 'react-native-device-info';
4
 
4
 
5
 import logger from '../../logger';
5
 import logger from '../../logger';
6
 
6
 
19
     if (current) {
19
     if (current) {
20
         await amplitude.setDeviceId(current);
20
         await amplitude.setDeviceId(current);
21
     } else {
21
     } else {
22
-        syncUniqueId().then(uid => {
23
-            if (!uid) {
24
-                logger.warn('Device ID is not set!');
22
+        const uid = await getUniqueId();
25
 
23
 
26
-                return;
27
-            }
24
+        if (!uid) {
25
+            logger.warn('Device ID is not set!');
28
 
26
 
29
-            amplitude.setDeviceId(uid as string);
30
-            DefaultPreference.set('amplitudeDeviceId', uid as string);
31
-        });
27
+            return;
28
+        }
29
+
30
+        await amplitude.setDeviceId(uid as string);
31
+        await DefaultPreference.set('amplitudeDeviceId', uid as string);
32
     }
32
     }
33
 }
33
 }

正在加载...
取消
保存