andpor / react-native-sqlite-storage

Full featured SQLite3 Native Plugin for React Native (Android and iOS)
MIT License
2.74k stars 521 forks source link

Depracated Jcenter needs to be change to mavenCentral #571

Open ReiLoko4 opened 5 months ago

ReiLoko4 commented 5 months ago

Hello.

Firstly, thanks for your hard work on this project, for sure it is really good.

Today I used patch-package to patch react-native-sqlite-storage@6.0.1 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.