Skip to content

Commit

Permalink
fix(jcenter): remove jcenter (react-native-webview#2178)
Browse files Browse the repository at this point in the history
Builds will no longer be able to resolve artifacts from JCenter after February 1st, 2022 because jcenter servers shut down

so, i remove jcenter and update react-native (since 0.65.1 they don't use jcenter)

Co-authored-by: bibazavr <[email protected]>
  • Loading branch information
Bibazavr and Bibazavr authored Sep 27, 2021
1 parent cb1c3f4 commit 283c18b
Show file tree
Hide file tree
Showing 5 changed files with 1,027 additions and 74 deletions.
3 changes: 0 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ buildscript {
repositories {
mavenCentral()
google()
jcenter()
}

dependencies {
Expand All @@ -20,7 +19,6 @@ buildscript {
} else {
repositories {
mavenCentral()
jcenter()
}

dependencies {
Expand Down Expand Up @@ -60,7 +58,6 @@ android {

repositories {
mavenCentral()
jcenter()
google()

def found = false
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ReactNativeWebView_webkitVersion=1.4.0
ReactNativeWebView_compileSdkVersion=29
ReactNativeWebView_buildToolsVersion=29.0.3
ReactNativeWebView_targetSdkVersion=28
ReactNativeWebView_minSdkVersion=16
ReactNativeWebView_minSdkVersion=21
6 changes: 3 additions & 3 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
buildscript {
ext {
buildToolsVersion = "29.0.3"
minSdkVersion = 16
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 28
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:3.5.2")
Expand All @@ -21,6 +21,7 @@ buildscript {

allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
Expand All @@ -32,7 +33,6 @@ allprojects {
}

google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"type": "Component"
},
"peerDependencies": {
"react-native": ">=0.60"
"react-native": ">=0.65.1"
},
"dependencies": {
"escape-string-regexp": "2.0.0",
Expand Down Expand Up @@ -65,7 +65,7 @@
"metro": "0.56.4",
"metro-react-native-babel-preset": "^0.59.0",
"react": "16.11.0",
"react-native": "0.62.2",
"react-native": "0.65.1",
"react-native-macos": "0.60.0-microsoft.73",
"react-native-windows": "0.62.17",
"selenium-appium": "1.0.2",
Expand Down
Loading

0 comments on commit 283c18b

Please sign in to comment.