Update realm to 20.2.0 (#3164)

* Update package.json

* Update Podfile.lock

* Update package-lock.json

* Remove realm patch for 16kb page support

This has now landed in realm itself
This commit is contained in:
Johannes Klein
2025-10-31 15:12:06 +01:00
committed by GitHub
parent d523bf4d99
commit a6d86666cc
4 changed files with 13 additions and 25 deletions

View File

@@ -2085,7 +2085,7 @@ PODS:
- React-utils (= 0.79.5)
- ReactNativeExceptionHandler (2.10.10):
- React-Core
- RealmJS (20.1.0):
- RealmJS (20.2.0):
- React
- RNAppleAuthentication (2.4.0):
- React-Core
@@ -3069,7 +3069,7 @@ SPEC CHECKSUMS:
ReactCodegen: 542dbcd3d677ed7c4fe69e28b7c492998f48c9db
ReactCommon: 1aa48867a0fc71a2b4f9e8a1529f5673648354f3
ReactNativeExceptionHandler: a23922ca00122b050ae9412f960061791c232c47
RealmJS: 9fd51c849eb552ade9f7b11db42a319b4f6cab4c
RealmJS: 1c37c6bdfe060f4caa0f9175aa0eedb962622ee1
RNAppleAuthentication: 8d313d93fe2238d6b7ff0a39c67ebcf298d96653
RNAudioRecorderPlayer: fa079748b34d15cd3b7b6a5d47b286bae6d5d49b
RNCClipboard: 45b13251c8938aabfc25b9ecc35b5d42ab4eb0b0

18
package-lock.json generated
View File

@@ -32,7 +32,7 @@
"@react-navigation/elements": "^2.6.3",
"@react-navigation/native": "^7.1.17",
"@react-navigation/native-stack": "^7.3.25",
"@realm/react": "^0.11.0",
"@realm/react": "^0.20.0",
"@sayem314/react-native-keep-awake": "^1.3.1",
"@shopify/flash-list": "^2.2.0",
"@tanstack/react-query": "5.55.4",
@@ -100,7 +100,7 @@
"react-native-volume-manager": "^2.0.8",
"react-native-webview": "^13.15.0",
"react-native-worklets-core": "^1.6.2",
"realm": "20.1.0",
"realm": "^20.2.0",
"sanitize-html": "^2.13.0",
"uuid": "^11.1.0",
"vision-camera-plugin-inatvision": "github:inaturalist/vision-camera-plugin-inatvision#60437a7a9c78efa2501e0009a79141b19ad347ea",
@@ -6424,9 +6424,9 @@
}
},
"node_modules/@realm/react": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@realm/react/-/react-0.11.0.tgz",
"integrity": "sha512-ekS0j8ZyWr+Tjd4RmTCGOOiSACFVURMxpB1fyDSwQk5mWQtkeItYB4/bLvFvqspg0F9EQbgBoNEA7ahbH6BRNw==",
"version": "0.20.0",
"resolved": "https://registry.npmjs.org/@realm/react/-/react-0.20.0.tgz",
"integrity": "sha512-d72+IQToNlMTS/gylZS3r/QBUHvNy4aG66sXCQb6BxjWqJhJEaRH2ziTcixhHOaXyMD5DLihOg9ev5qhjFj1kQ==",
"license": "Apache-2.0",
"dependencies": {
"lodash.isequal": "^4.5.0"
@@ -6437,7 +6437,7 @@
},
"peerDependencies": {
"react": ">=17.0.2",
"realm": ">=12.12.0"
"realm": ">=20.0.0"
}
},
"node_modules/@sayem314/react-native-keep-awake": {
@@ -20474,9 +20474,9 @@
}
},
"node_modules/realm": {
"version": "20.1.0",
"resolved": "https://registry.npmjs.org/realm/-/realm-20.1.0.tgz",
"integrity": "sha512-m/8y4Yad8x++ZL6BCRvsr+AGqxKJg2jErcXW2ZO48CwNYjw9YRERv4V0JWsLw9sFkzVZIw1e4u9I/Dd+hmMhzw==",
"version": "20.2.0",
"resolved": "https://registry.npmjs.org/realm/-/realm-20.2.0.tgz",
"integrity": "sha512-xkfczMrxnZK1KlJ5JBWGMe2Cs48+p1D8T9r8TO6FrZhnm2KUUhBJPOpOIoJ4h1O20fCxlfJ2pIg3mplJTUgF6g==",
"hasInstallScript": true,
"license": "apache-2.0",
"dependencies": {

View File

@@ -68,7 +68,7 @@
"@react-navigation/elements": "^2.6.3",
"@react-navigation/native": "^7.1.17",
"@react-navigation/native-stack": "^7.3.25",
"@realm/react": "^0.11.0",
"@realm/react": "^0.20.0",
"@sayem314/react-native-keep-awake": "^1.3.1",
"@shopify/flash-list": "^2.2.0",
"@tanstack/react-query": "5.55.4",
@@ -136,7 +136,7 @@
"react-native-volume-manager": "^2.0.8",
"react-native-webview": "^13.15.0",
"react-native-worklets-core": "^1.6.2",
"realm": "20.1.0",
"realm": "^20.2.0",
"sanitize-html": "^2.13.0",
"uuid": "^11.1.0",
"vision-camera-plugin-inatvision": "github:inaturalist/vision-camera-plugin-inatvision#60437a7a9c78efa2501e0009a79141b19ad347ea",

View File

@@ -1,12 +0,0 @@
diff --git a/node_modules/realm/binding/android/CMakeLists.txt b/node_modules/realm/binding/android/CMakeLists.txt
index bd53972..db49c3f 100644
--- a/node_modules/realm/binding/android/CMakeLists.txt
+++ b/node_modules/realm/binding/android/CMakeLists.txt
@@ -28,6 +28,7 @@ set_target_properties(realm-js-android-binding PROPERTIES
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Oz")
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
target_link_options(realm-js-android-binding PUBLIC -fvisibility=hidden)