AlexanderZaytsev / react-native-i18n

React Native + i18n.js
MIT License
2.18k stars 493 forks source link

Updated gradle build for 7+ compatibility #294

Open t-leclercq opened 2 years ago

t-leclercq commented 2 years ago

image After replacing with implementation instead of compile, it works ;)

notjulian commented 1 year ago

in the meantime you can add this patch

to directory patches file name: react-native-i18n+2.0.15.patch

diff --git a/node_modules/react-native-i18n/android/build.gradle b/node_modules/react-native-i18n/android/build.gradle
index 2614c62..f5eabb2 100644
--- a/node_modules/react-native-i18n/android/build.gradle
+++ b/node_modules/react-native-i18n/android/build.gradle
@@ -22,5 +22,5 @@ android {
 }

 dependencies {
-  compile "com.facebook.react:react-native:+" // From node_modules
+  implementation('com.facebook.react:react-native:+')
 }