Skip to content

Commit 82c1866

Browse files
CopilotCarGuo
andcommitted
Fix React Native i18n Android build - replace deprecated compile with implementation
Co-authored-by: CarGuo <[email protected]>
1 parent 99919a7 commit 82c1866

File tree

4 files changed

+333
-10
lines changed

4 files changed

+333
-10
lines changed

package-lock.json

Lines changed: 202 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"ios": "react-native run-ios",
88
"lint": "eslint .",
99
"start": "react-native start",
10-
"test": "jest"
10+
"test": "jest",
11+
"postinstall": "patch-package"
1112
},
1213
"dependencies": {
1314
"@react-native-async-storage/async-storage": "^1.23.1",
@@ -69,6 +70,7 @@
6970
"babel-plugin-import": "^1.13.8",
7071
"eslint": "^8.57.0",
7172
"jest": "^29.7.0",
73+
"patch-package": "^8.0.0",
7274
"react-test-renderer": "18.2.0"
7375
},
7476
"jest": {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff --git a/node_modules/react-native-i18n/android/build.gradle b/node_modules/react-native-i18n/android/build.gradle
2+
index 2614c62..746b873 100644
3+
--- a/node_modules/react-native-i18n/android/build.gradle
4+
+++ b/node_modules/react-native-i18n/android/build.gradle
5+
@@ -22,5 +22,5 @@ android {
6+
}
7+
8+
dependencies {
9+
- compile "com.facebook.react:react-native:+" // From node_modules
10+
+ implementation "com.facebook.react:react-native:+" // From node_modules
11+
}

0 commit comments

Comments
 (0)