Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade op-sqlite version to be compatible with latest react native version #2761

Merged
merged 7 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Also, the dependency is made optional now, so if you don't want to use the image

The `react-native-quick-sqlite` package has been replaced with `op-sqlite`. This is a faster alternative, and can help us with our new architecture endeavors.

:::note
For React Native version 0.74 and above, you need to install version `>=9.3.0` of the `op-sqlite`.
:::

You can replace it by running the following commands:

```bash
Expand Down
4 changes: 2 additions & 2 deletions examples/SampleApp/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-cont
import {
Chat,
OverlayProvider,
QuickSqliteClient,
SqliteClient,
ThemeProvider,
useOverlayContext,
} from 'stream-chat-react-native';
Expand Down Expand Up @@ -39,7 +39,7 @@ import type { StreamChat } from 'stream-chat';

if (__DEV__) {
DevSettings.addMenuItem('Reset local DB (offline storage)', () => {
QuickSqliteClient.resetDB();
SqliteClient.resetDB();
console.info('Local DB reset');
});
}
Expand Down
6 changes: 3 additions & 3 deletions examples/SampleApp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ PODS:
- nanopb/encode (= 2.30910.0)
- nanopb/decode (2.30910.0)
- nanopb/encode (2.30910.0)
- op-sqlite (6.2.11):
- op-sqlite (9.3.0):
- React
- React-callinvoker
- React-Core
Expand Down Expand Up @@ -2270,14 +2270,14 @@ SPEC CHECKSUMS:
FirebaseRemoteConfigInterop: 6efda51fb5e2f15b16585197e26eaa09574e8a4d
FirebaseSessions: dbd14adac65ce996228652c1fc3a3f576bdf3ecc
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
GoogleAppMeasurement: f3abf08495ef2cba7829f15318c373b8d9226491
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
nanopb: 438bc412db1928dac798aa6fd75726007be04262
op-sqlite: b4f61f3085ea3b70f264f3a64b724c81ab117e58
op-sqlite: f522405b72bbbdf22ce4d90060ed3bcf874e5b1b
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
Expand Down
498 changes: 236 additions & 262 deletions examples/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/SampleApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@notifee/react-native": "^7.7.1",
"@op-engineering/op-sqlite": "^6.2.11",
"@op-engineering/op-sqlite": "^9.3.0",
"@react-native-async-storage/async-storage": "^1.21.0",
"@react-native-camera-roll/camera-roll": "^7.8.0",
"@react-native-community/netinfo": "^11.3.2",
Expand Down
848 changes: 464 additions & 384 deletions examples/SampleApp/yarn.lock

Large diffs are not rendered by default.

19 changes: 7 additions & 12 deletions examples/TypeScriptMessaging/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PODS:
- hermes-engine (0.75.4):
- hermes-engine/Pre-built (= 0.75.4)
- hermes-engine/Pre-built (0.75.4)
- op-sqlite (6.2.11):
- op-sqlite (9.3.0):
- React
- React-callinvoker
- React-Core
Expand All @@ -17,11 +17,6 @@ PODS:
- fmt (= 9.1.0)
- glog
- RCT-Folly/Default (= 2024.01.01.00)
- RCT-Folly/Default (2024.01.01.00):
- boost
- DoubleConversion
- fmt (= 9.1.0)
- glog
- RCT-Folly/Fabric (2024.01.01.00):
- boost
- DoubleConversion
Expand Down Expand Up @@ -2021,14 +2016,14 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
boost: 4cb898d0bf20404aab1850c656dcea009429d6c1
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
boost: 1dca942403ed9342f98334bf4c3621f011aa7946
DoubleConversion: f16ae600a246532c4020132d54af21d0ddb2a385
FBLazyVector: 430e10366de01d1e3d57374500b1b150fe482e6d
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0
op-sqlite: b4f61f3085ea3b70f264f3a64b724c81ab117e58
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
op-sqlite: f522405b72bbbdf22ce4d90060ed3bcf874e5b1b
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
RCTDeprecation: 726d24248aeab6d7180dac71a936bbca6a994ed1
RCTRequired: a94e7febda6db0345d207e854323c37e3a31d93b
RCTTypeSafety: 28e24a6e44f5cbf912c66dde6ab7e07d1059a205
Expand Down
2 changes: 1 addition & 1 deletion examples/TypeScriptMessaging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean-all": "yarn clean && rm -rf node_modules && rm -rf ios/Pods && rm -rf vendor && bundle install && yarn install && cd ios && bundle exec pod install && cd -"
},
"dependencies": {
"@op-engineering/op-sqlite": "^6.2.11",
"@op-engineering/op-sqlite": "^9.3.0",
"@react-native-clipboard/clipboard": "^1.14.3",
"@react-native-community/netinfo": "^11.3.2",
"@react-navigation/native": "^6.1.17",
Expand Down
8 changes: 4 additions & 4 deletions examples/TypeScriptMessaging/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1483,10 +1483,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@op-engineering/op-sqlite@^6.2.11":
version "6.2.11"
resolved "https://registry.yarnpkg.com/@op-engineering/op-sqlite/-/op-sqlite-6.2.11.tgz#0e5b127561c80cdb8748809d17f25ff1fd629219"
integrity sha512-gYIMJh55ZDHQ6w6qgTSFOQGQaHvA/EKk8uiCqq+jJTduE5DzrJYOfxeHrye+/BffdWE2T5Wm6voDeLSMbFvr2g==
"@op-engineering/op-sqlite@^9.3.0":
version "9.3.0"
resolved "https://registry.yarnpkg.com/@op-engineering/op-sqlite/-/op-sqlite-9.3.0.tgz#cf61d0782ec8117e339f0f7843ce54be63384a5e"
integrity sha512-PDT3H1sIO8PrseskJS+ibMVzyluDGvswsyKGMUucx0LSyKFRcFtCySpPpnCswSIJIO4z2hAlvdoBi3r+4zb4Bw==

"@pkgjs/parseargs@^0.11.0":
version "0.11.0"
Expand Down
4 changes: 2 additions & 2 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"stream-chat": "8.42.0"
},
"peerDependencies": {
"@op-engineering/op-sqlite": ">=6.0.4",
"@op-engineering/op-sqlite": ">=9.3.0",
"@react-native-community/netinfo": ">=11.3.1",
"react-native": ">=0.67.0",
"react-native-gesture-handler": ">=2.14.0",
Expand All @@ -103,7 +103,7 @@
"@babel/preset-env": "7.13.12",
"@babel/preset-typescript": "7.13.0",
"@babel/runtime": "^7.20.0",
"@op-engineering/op-sqlite": "^6.0.4",
"@op-engineering/op-sqlite": "^9.3.0",
"@react-native-community/eslint-config": "2.0.0",
"@react-native-community/eslint-plugin": "1.1.0",
"@react-native-community/netinfo": "^11.3.2",
Expand Down
Loading
Loading