浏览代码

fix(android) drop jcenter

master
Saúl Ibarra Corretgé 3 年前
父节点
当前提交
70b8bb7cbd
共有 3 个文件被更改,包括 14 次插入14 次删除
  1. 6
    7
      android/build.gradle
  2. 7
    6
      package-lock.json
  3. 1
    1
      package.json

+ 6
- 7
android/build.gradle 查看文件

@@ -43,20 +43,19 @@ ext {
43 43
 
44 44
 allprojects {
45 45
     repositories {
46
-        mavenCentral()
47
-        google()
48 46
         // React Native (JS, Obj-C sources, Android binaries) is installed from npm.
49 47
         maven { url "$rootDir/../node_modules/react-native/android" }
50 48
         // Android JSC is installed from npm.
51 49
         maven { url("$rootDir/../node_modules/jsc-android/dist") }
52
-        maven { url 'https://www.jitpack.io' }
53
-        // https://github.com/react-native-video/react-native-video/issues/2454
54
-        //noinspection JcenterRepositoryObsolete
55
-        jcenter() {
50
+        mavenCentral {
51
+            // We don't want to fetch react-native from Maven Central as there are
52
+            // older versions over there.
56 53
             content {
57
-                includeModule("com.yqritc", "android-scalablevideoview")
54
+                excludeGroup "com.facebook.react"
58 55
             }
59 56
         }
57
+        google()
58
+        maven { url 'https://www.jitpack.io' }
60 59
     }
61 60
 
62 61
     // Make sure we use the react-native version in node_modules and not the one

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

@@ -104,7 +104,7 @@
104 104
         "react-native-svg-transformer": "1.0.0",
105 105
         "react-native-tab-view": "3.1.1",
106 106
         "react-native-url-polyfill": "1.3.0",
107
-        "react-native-video": "5.2.0",
107
+        "react-native-video": "github:jitsi/react-native-video#4f6dad990d17ce42894df993780b5386a9c11b85",
108 108
         "react-native-watch-connectivity": "1.0.4",
109 109
         "react-native-webrtc": "1.94.1",
110 110
         "react-native-webview": "11.15.1",
@@ -15654,8 +15654,9 @@
15654 15654
     },
15655 15655
     "node_modules/react-native-video": {
15656 15656
       "version": "5.2.0",
15657
-      "resolved": "https://registry.npmjs.org/react-native-video/-/react-native-video-5.2.0.tgz",
15658
-      "integrity": "sha512-5SK1lxyzrCkZF+WuxUxLR1Pt65E0rsWB1w1GrGxSLdC9zWYBumcmuHl+wPJ7UQvznjaH2Ze7uU1R3arejI7+WQ==",
15657
+      "resolved": "git+ssh://git@github.com/jitsi/react-native-video.git#4f6dad990d17ce42894df993780b5386a9c11b85",
15658
+      "integrity": "sha512-zA5KlpwZfuU9DkI62xkCRcUqvLZG30z5Ac00NZ3gbxqQF60PK/FEGyM8lB5QBsjt0ZlAYgUh2q+snAU7HgN/yQ==",
15659
+      "license": "MIT",
15659 15660
       "dependencies": {
15660 15661
         "keymirror": "^0.1.1",
15661 15662
         "prop-types": "^15.7.2",
@@ -31899,9 +31900,9 @@
31899 31900
       }
31900 31901
     },
31901 31902
     "react-native-video": {
31902
-      "version": "5.2.0",
31903
-      "resolved": "https://registry.npmjs.org/react-native-video/-/react-native-video-5.2.0.tgz",
31904
-      "integrity": "sha512-5SK1lxyzrCkZF+WuxUxLR1Pt65E0rsWB1w1GrGxSLdC9zWYBumcmuHl+wPJ7UQvznjaH2Ze7uU1R3arejI7+WQ==",
31903
+      "version": "git+ssh://git@github.com/jitsi/react-native-video.git#4f6dad990d17ce42894df993780b5386a9c11b85",
31904
+      "integrity": "sha512-zA5KlpwZfuU9DkI62xkCRcUqvLZG30z5Ac00NZ3gbxqQF60PK/FEGyM8lB5QBsjt0ZlAYgUh2q+snAU7HgN/yQ==",
31905
+      "from": "react-native-video@github:jitsi/react-native-video#4f6dad990d17ce42894df993780b5386a9c11b85",
31905 31906
       "requires": {
31906 31907
         "keymirror": "^0.1.1",
31907 31908
         "prop-types": "^15.7.2",

+ 1
- 1
package.json 查看文件

@@ -109,7 +109,7 @@
109 109
     "react-native-svg-transformer": "1.0.0",
110 110
     "react-native-tab-view": "3.1.1",
111 111
     "react-native-url-polyfill": "1.3.0",
112
-    "react-native-video": "5.2.0",
112
+    "react-native-video": "github:jitsi/react-native-video#4f6dad990d17ce42894df993780b5386a9c11b85",
113 113
     "react-native-watch-connectivity": "1.0.4",
114 114
     "react-native-webrtc": "1.94.1",
115 115
     "react-native-webview": "11.15.1",

正在加载...
取消
保存