Переглянути джерело

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

factor2
Calin-Teodor 2 роки тому
джерело
коміт
60ad0196c3

+ 4
- 4
ios/Podfile.lock Переглянути файл

@@ -385,10 +385,10 @@ PODS:
385 385
     - React-Core
386 386
   - react-native-splash-screen (3.3.0):
387 387
     - React-Core
388
-  - react-native-video (6.0.0-alpha.1):
388
+  - react-native-video (6.0.0-alpha.7):
389 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 392
     - PromisesSwift
393 393
     - React-Core
394 394
   - react-native-webrtc (111.0.3):
@@ -759,7 +759,7 @@ SPEC CHECKSUMS:
759 759
   react-native-safe-area-context: 9697629f7b2cda43cf52169bb7e0767d330648c2
760 760
   react-native-slider: 1cdd6ba29675df21f30544253bf7351d3c2d68c4
761 761
   react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457
762
-  react-native-video: bb6f12a7198db53b261fefb5d609dc77417acc8b
762
+  react-native-video: 967eead48aaa42c25a9e1d65c3b1ab30762a88df
763 763
   react-native-webrtc: 4d1669c2ed29767fe70b0169428b4466589ecf8b
764 764
   react-native-webview: 8baa0f5c6d336d6ba488e942bcadea5bf51f050a
765 765
   React-perflogger: fdee2a0c512167ae4c19c4e230ccf6aa66a6aff0

+ 7
- 8
package-lock.json Переглянути файл

@@ -96,7 +96,7 @@
96 96
         "react-native-svg-transformer": "1.1.0",
97 97
         "react-native-tab-view": "3.5.2",
98 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 100
         "react-native-watch-connectivity": "1.1.0",
101 101
         "react-native-webrtc": "111.0.3",
102 102
         "react-native-webview": "13.5.1",
@@ -16528,10 +16528,9 @@
16528 16528
       }
16529 16529
     },
16530 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 16534
       "dependencies": {
16536 16535
         "deprecated-react-native-prop-types": "^2.2.0",
16537 16536
         "keymirror": "^0.1.1",
@@ -32574,9 +32573,9 @@
32574 32573
       }
32575 32574
     },
32576 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 32579
       "requires": {
32581 32580
         "deprecated-react-native-prop-types": "^2.2.0",
32582 32581
         "keymirror": "^0.1.1",

+ 1
- 1
package.json Переглянути файл

@@ -102,7 +102,7 @@
102 102
     "react-native-svg-transformer": "1.1.0",
103 103
     "react-native-tab-view": "3.5.2",
104 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 106
     "react-native-watch-connectivity": "1.1.0",
107 107
     "react-native-webrtc": "111.0.3",
108 108
     "react-native-webview": "13.5.1",

+ 9
- 9
react/features/analytics/handlers/amplitude/fixDeviceID.native.ts Переглянути файл

@@ -1,6 +1,6 @@
1 1
 import { Amplitude } from '@amplitude/react-native';
2 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 5
 import logger from '../../logger';
6 6
 
@@ -19,15 +19,15 @@ export async function fixDeviceID(amplitude: Amplitude) {
19 19
     if (current) {
20 20
         await amplitude.setDeviceId(current);
21 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
 }

Завантаження…
Відмінити
Зберегти