Browse Source

fix(android) drop jcenter

master
Saúl Ibarra Corretgé 3 years ago
parent
commit
70b8bb7cbd
3 changed files with 14 additions and 14 deletions
  1. 6
    7
      android/build.gradle
  2. 7
    6
      package-lock.json
  3. 1
    1
      package.json

+ 6
- 7
android/build.gradle View File

43
 
43
 
44
 allprojects {
44
 allprojects {
45
     repositories {
45
     repositories {
46
-        mavenCentral()
47
-        google()
48
         // React Native (JS, Obj-C sources, Android binaries) is installed from npm.
46
         // React Native (JS, Obj-C sources, Android binaries) is installed from npm.
49
         maven { url "$rootDir/../node_modules/react-native/android" }
47
         maven { url "$rootDir/../node_modules/react-native/android" }
50
         // Android JSC is installed from npm.
48
         // Android JSC is installed from npm.
51
         maven { url("$rootDir/../node_modules/jsc-android/dist") }
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
             content {
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
     // Make sure we use the react-native version in node_modules and not the one
61
     // Make sure we use the react-native version in node_modules and not the one

+ 7
- 6
package-lock.json View File

104
         "react-native-svg-transformer": "1.0.0",
104
         "react-native-svg-transformer": "1.0.0",
105
         "react-native-tab-view": "3.1.1",
105
         "react-native-tab-view": "3.1.1",
106
         "react-native-url-polyfill": "1.3.0",
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
         "react-native-watch-connectivity": "1.0.4",
108
         "react-native-watch-connectivity": "1.0.4",
109
         "react-native-webrtc": "1.94.1",
109
         "react-native-webrtc": "1.94.1",
110
         "react-native-webview": "11.15.1",
110
         "react-native-webview": "11.15.1",
15654
     },
15654
     },
15655
     "node_modules/react-native-video": {
15655
     "node_modules/react-native-video": {
15656
       "version": "5.2.0",
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
       "dependencies": {
15660
       "dependencies": {
15660
         "keymirror": "^0.1.1",
15661
         "keymirror": "^0.1.1",
15661
         "prop-types": "^15.7.2",
15662
         "prop-types": "^15.7.2",
31899
       }
31900
       }
31900
     },
31901
     },
31901
     "react-native-video": {
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
       "requires": {
31906
       "requires": {
31906
         "keymirror": "^0.1.1",
31907
         "keymirror": "^0.1.1",
31907
         "prop-types": "^15.7.2",
31908
         "prop-types": "^15.7.2",

+ 1
- 1
package.json View File

109
     "react-native-svg-transformer": "1.0.0",
109
     "react-native-svg-transformer": "1.0.0",
110
     "react-native-tab-view": "3.1.1",
110
     "react-native-tab-view": "3.1.1",
111
     "react-native-url-polyfill": "1.3.0",
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
     "react-native-watch-connectivity": "1.0.4",
113
     "react-native-watch-connectivity": "1.0.4",
114
     "react-native-webrtc": "1.94.1",
114
     "react-native-webrtc": "1.94.1",
115
     "react-native-webview": "11.15.1",
115
     "react-native-webview": "11.15.1",

Loading…
Cancel
Save