react-native-sqlite-storage
react-native-sqlite-storage copied to clipboard
Depracated Jcenter needs to be change to mavenCentral
Hello.
Firstly, thanks for your hard work on this project, for sure it is really good.
Today I used patch-package to patch [email protected] for the project I'm working on.
The build was failing, and I tried using Gradle to debug, and I got the error:
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead.
So I changed it with the diff in one line and thats all. Thanks
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-sqlite-storage/platforms/android/build.gradle b/node_modules/react-native-sqlite-storage/platforms/android/build.gradle
index ff79b10..7d0395e 100644
--- a/node_modules/react-native-sqlite-storage/platforms/android/build.gradle
+++ b/node_modules/react-native-sqlite-storage/platforms/android/build.gradle
@@ -1,7 +1,7 @@
buildscript {
repositories {
google()
- jcenter()
+ mavenCentral()
}
dependencies {
This issue body was partially generated by patch-package.
But if you clean the build project it returns to jcenter().