Skip to content

Commit 02726ed

Browse files
committed
chore: resolve conflicts from v6
2 parents 6099833 + d778d6d commit 02726ed

File tree

71 files changed

+655
-581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+655
-581
lines changed

docusaurus/docs/reactnative/basics/migrating-from-5.x-to-6.x.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ Also, the dependency is made optional now, so if you don't want to use the image
4343

4444
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.
4545

46+
:::note
47+
For React Native version 0.74 and above, you need to install version `>=9.3.0` of the `op-sqlite`.
48+
:::
49+
4650
You can replace it by running the following commands:
4751

4852
```bash
@@ -198,6 +202,12 @@ The type of `quotedMessage` is changed from `MessageType | boolean` to `Message
198202

199203
### Refactor of theme object
200204

205+
The color of the sender and receiver messages are now changed to `light_blue` and `light_gray` keys respectively.
206+
207+
:::note
208+
Please configure the `light_blue` and `light_gray` keys in the theme object to customize the sender and receiver messages for dark and light mode.
209+
:::
210+
201211
The default theme object has been refactored to provide a better customization experience. The theme object is now more organized and provides better control over the customization. You can check the object [here](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/themeContext/utils/theme.ts).
202212

203213
### Remove the deprecated code

examples/ExpoMessaging/useStreamChatTheme.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export const useStreamChatTheme = () => {
2727
grey_gainsboro: '#2D2F2F',
2828
grey_whisper: '#1C1E22',
2929
icon_background: '#FFFFFF',
30+
light_blue: '#001333',
31+
light_gray: '#1C1E22',
3032
modal_shadow: '#000000',
3133
overlay: '#FFFFFFCC', // CC = 80% opacity
3234
shadow_icon: '#00000080', // 80 = 50% opacity
@@ -50,6 +52,8 @@ export const useStreamChatTheme = () => {
5052
grey_gainsboro: '#DBDBDB',
5153
grey_whisper: '#ECEBEB',
5254
icon_background: '#FFFFFF',
55+
light_blue: '#E0F0FF',
56+
light_gray: '#E9EAED',
5357
modal_shadow: '#00000099', // 99 = 60% opacity; x=0, y= 1, radius=4
5458
overlay: '#00000099', // 99 = 60% opacity
5559
shadow_icon: '#00000040', // 40 = 25% opacity; x=0, y=0, radius=4

examples/SampleApp/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-cont
77
import {
88
Chat,
99
OverlayProvider,
10-
QuickSqliteClient,
10+
SqliteClient,
1111
ThemeProvider,
1212
useOverlayContext,
1313
} from 'stream-chat-react-native';
@@ -39,7 +39,7 @@ import type { StreamChat } from 'stream-chat';
3939

4040
if (__DEV__) {
4141
DevSettings.addMenuItem('Reset local DB (offline storage)', () => {
42-
QuickSqliteClient.resetDB();
42+
SqliteClient.resetDB();
4343
console.info('Local DB reset');
4444
});
4545
}

examples/SampleApp/ios/Podfile.lock

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,7 @@ PODS:
156156
- nanopb/encode (= 2.30910.0)
157157
- nanopb/decode (2.30910.0)
158158
- nanopb/encode (2.30910.0)
159-
- op-sqlite (6.2.11):
160-
- DoubleConversion
161-
- glog
162-
- hermes-engine
163-
- RCT-Folly (= 2024.01.01.00)
164-
- RCTRequired
165-
- RCTTypeSafety
159+
- op-sqlite (9.3.0):
166160
- React
167161
- React-callinvoker
168162
- React-Core
@@ -2514,14 +2508,14 @@ SPEC CHECKSUMS:
25142508
FirebaseRemoteConfigInterop: 6efda51fb5e2f15b16585197e26eaa09574e8a4d
25152509
FirebaseSessions: dbd14adac65ce996228652c1fc3a3f576bdf3ecc
25162510
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
2517-
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
2511+
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
25182512
GoogleAppMeasurement: f3abf08495ef2cba7829f15318c373b8d9226491
25192513
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
25202514
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
25212515
hermes-engine: 46f1ffbf0297f4298862068dd4c274d4ac17a1fd
25222516
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
25232517
nanopb: 438bc412db1928dac798aa6fd75726007be04262
2524-
op-sqlite: adc7985fa29cdaad3d2c03fbb731a036464fa7f2
2518+
op-sqlite: f522405b72bbbdf22ce4d90060ed3bcf874e5b1b
25252519
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
25262520
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
25272521
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740

examples/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
00E356EE1AD99517003FC87E /* SampleAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SampleAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3333
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3434
00E356F21AD99517003FC87E /* SampleAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SampleAppTests.m; sourceTree = "<group>"; };
35-
060628D3127D36FA9E5F3384 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = SampleApp/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
35+
060628D3127D36FA9E5F3384 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = SampleApp/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
3636
082CFE617577BC22CE8C070B /* Pods-SampleApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SampleApp.release.xcconfig"; path = "Target Support Files/Pods-SampleApp/Pods-SampleApp.release.xcconfig"; sourceTree = "<group>"; };
3737
123C78EF2690AED8ABFD9A77 /* Pods-SampleApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SampleApp.debug.xcconfig"; path = "Target Support Files/Pods-SampleApp/Pods-SampleApp.debug.xcconfig"; sourceTree = "<group>"; };
3838
13B07F961A680F5B00A75B9A /* SampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -531,8 +531,8 @@
531531
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
532532
CLANG_ENABLE_MODULES = YES;
533533
CODE_SIGN_ENTITLEMENTS = SampleApp/SampleAppRelease.entitlements;
534-
CODE_SIGN_IDENTITY = "iPhone Distribution";
535-
CODE_SIGN_STYLE = Manual;
534+
CODE_SIGN_IDENTITY = "Apple Development";
535+
CODE_SIGN_STYLE = Automatic;
536536
CURRENT_PROJECT_VERSION = 149;
537537
DEVELOPMENT_TEAM = EHV7XZLAHA;
538538
INFOPLIST_FILE = SampleApp/Info.plist;
@@ -547,7 +547,7 @@
547547
);
548548
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.reactnative.SampleApp;
549549
PRODUCT_NAME = SampleApp;
550-
PROVISIONING_PROFILE_SPECIFIER = "match AdHoc io.getstream.reactnative.SampleApp";
550+
PROVISIONING_PROFILE_SPECIFIER = "";
551551
SWIFT_VERSION = 5.0;
552552
VERSIONING_SYSTEM = "apple-generic";
553553
};
@@ -741,22 +741,15 @@
741741
);
742742
MTL_ENABLE_DEBUG_INFO = YES;
743743
ONLY_ACTIVE_ARCH = YES;
744-
OTHER_CFLAGS = (
745-
"$(inherited)",
746-
" ",
747-
);
744+
OTHER_CFLAGS = "$(inherited) ";
748745
OTHER_CPLUSPLUSFLAGS = (
749746
"$(OTHER_CFLAGS)",
750747
"-DFOLLY_NO_CONFIG",
751748
"-DFOLLY_MOBILE=1",
752749
"-DFOLLY_USE_LIBCPP=1",
753750
"-DFOLLY_CFG_NO_COROUTINES=1",
754-
" ",
755-
);
756-
OTHER_LDFLAGS = (
757-
"$(inherited)",
758-
" ",
759751
);
752+
OTHER_LDFLAGS = "$(inherited) ";
760753
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
761754
SDKROOT = iphoneos;
762755
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
@@ -947,22 +940,15 @@
947940
"\"$(inherited)\"",
948941
);
949942
MTL_ENABLE_DEBUG_INFO = NO;
950-
OTHER_CFLAGS = (
951-
"$(inherited)",
952-
" ",
953-
);
943+
OTHER_CFLAGS = "$(inherited) ";
954944
OTHER_CPLUSPLUSFLAGS = (
955945
"$(OTHER_CFLAGS)",
956946
"-DFOLLY_NO_CONFIG",
957947
"-DFOLLY_MOBILE=1",
958948
"-DFOLLY_USE_LIBCPP=1",
959949
"-DFOLLY_CFG_NO_COROUTINES=1",
960-
" ",
961-
);
962-
OTHER_LDFLAGS = (
963-
"$(inherited)",
964-
" ",
965950
);
951+
OTHER_LDFLAGS = "$(inherited) ";
966952
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
967953
SDKROOT = iphoneos;
968954
USE_HERMES = true;

examples/SampleApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@notifee/react-native": "^7.7.1",
26-
"@op-engineering/op-sqlite": "^6.2.11",
26+
"@op-engineering/op-sqlite": "^9.3.0",
2727
"@react-native-async-storage/async-storage": "^1.21.0",
2828
"@react-native-camera-roll/camera-roll": "^7.8.0",
2929
"@react-native-community/netinfo": "^11.3.2",

examples/SampleApp/src/hooks/useStreamChatTheme.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const getChatStyle = (colorScheme: ColorSchemeName): DeepPartial<Theme> => ({
2121
grey_gainsboro: '#2D2F2F',
2222
grey_whisper: '#1C1E22',
2323
icon_background: '#FFFFFF',
24+
light_blue: '#001333',
25+
light_gray: '#1C1E22',
2426
modal_shadow: '#000000',
2527
overlay: '#FFFFFFCC', // CC = 80% opacity
2628
shadow_icon: '#00000080', // 80 = 50% opacity
@@ -47,6 +49,8 @@ const getChatStyle = (colorScheme: ColorSchemeName): DeepPartial<Theme> => ({
4749
grey_gainsboro: '#DBDBDB',
4850
grey_whisper: '#ECEBEB',
4951
icon_background: '#FFFFFF',
52+
light_blue: '#E0F0FF',
53+
light_gray: '#E9EAED',
5054
modal_shadow: '#00000099', // 99 = 60% opacity; x=0, y= 1, radius=4
5155
overlay: '#00000099', // 99 = 60% opacity
5256
shadow_icon: '#00000040', // 40 = 25% opacity; x=0, y=0, radius=4

examples/SampleApp/yarn.lock

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,10 +1857,10 @@
18571857
resolved "https://registry.yarnpkg.com/@notifee/react-native/-/react-native-7.8.2.tgz#72d3199ae830b4128ddaef3c1c2f11604759c9c4"
18581858
integrity sha512-VG4IkWJIlOKqXwa3aExC3WFCVCGCC9BA55Ivg0SMRfEs+ruvYy/zlLANcrVGiPtgkUEryXDhA8SXx9+JcO8oLA==
18591859

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

18651865
"@pkgjs/parseargs@^0.11.0":
18661866
version "0.11.0"
@@ -2979,6 +2979,13 @@ babel-plugin-syntax-hermes-parser@^0.23.1:
29792979
dependencies:
29802980
hermes-parser "0.23.1"
29812981

2982+
babel-plugin-polyfill-regenerator@^0.6.1:
2983+
version "0.6.2"
2984+
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz#addc47e240edd1da1058ebda03021f382bba785e"
2985+
integrity sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==
2986+
dependencies:
2987+
"@babel/helper-define-polyfill-provider" "^0.6.2"
2988+
29822989
babel-plugin-transform-flow-enums@^0.0.2:
29832990
version "0.0.2"
29842991
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.2.tgz#d1d0cc9bdc799c850ca110d0ddc9f21b9ec3ef25"
@@ -3158,15 +3165,10 @@ camelcase@^6.2.0:
31583165
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
31593166
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
31603167

3161-
caniuse-lite@^1.0.30001587:
3162-
version "1.0.30001591"
3163-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001591.tgz#16745e50263edc9f395895a7cd468b9f3767cf33"
3164-
integrity sha512-PCzRMei/vXjJyL5mJtzNiUCKP59dm8Apqc3PH8gJkMnMXZGox93RbE76jHsmLwmIo6/3nsYIpJtx0O7u5PqFuQ==
3165-
3166-
caniuse-lite@^1.0.30001669:
3167-
version "1.0.30001674"
3168-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001674.tgz#eb200a716c3e796d33d30b9c8890517a72f862c8"
3169-
integrity sha512-jOsKlZVRnzfhLojb+Ykb+gyUSp9Xb57So+fAiFlLzzTKpqg8xxSav0e40c8/4F/v9N8QSvrRRaLeVzQbLqomYw==
3168+
caniuse-lite@^1.0.30001587, caniuse-lite@^1.0.30001669:
3169+
version "1.0.30001677"
3170+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001677.tgz"
3171+
integrity sha512-fmfjsOlJUpMWu+mAAtZZZHz7UEwsUxIIvu1TJfO1HqFQvB/B+ii0xr9B5HpbZY/mC4XZ8SvjHJqtAY6pDPQEog==
31703172

31713173
chalk@^2.4.2:
31723174
version "2.4.2"
@@ -3415,6 +3417,13 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1:
34153417
dependencies:
34163418
browserslist "^4.24.2"
34173419

3420+
core-js-compat@^3.38.0, core-js-compat@^3.38.1:
3421+
version "3.39.0"
3422+
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.39.0.tgz#b12dccb495f2601dc860bdbe7b4e3ffa8ba63f61"
3423+
integrity sha512-VgEUx3VwlExr5no0tXlBt+silBvhTryPwCXRI2Id1PN8WTKu7MreethvddqOubrYxkFdv/RnYrqlv1sFNAUelw==
3424+
dependencies:
3425+
browserslist "^4.24.2"
3426+
34183427
core-util-is@~1.0.0:
34193428
version "1.0.3"
34203429
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"

examples/TypeScriptMessaging/ios/Podfile.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ PODS:
3636
- fmt (= 9.1.0)
3737
- glog
3838
- RCT-Folly/Default (= 2024.01.01.00)
39-
- RCT-Folly/Default (2024.01.01.00):
40-
- boost
41-
- DoubleConversion
42-
- fmt (= 9.1.0)
43-
- glog
4439
- RCT-Folly/Fabric (2024.01.01.00):
4540
- boost
4641
- DoubleConversion

examples/TypeScriptMessaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"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 -"
1313
},
1414
"dependencies": {
15-
"@op-engineering/op-sqlite": "^6.2.11",
15+
"@op-engineering/op-sqlite": "^9.3.0",
1616
"@react-native-clipboard/clipboard": "^1.14.3",
1717
"@react-native-community/netinfo": "^11.3.2",
1818
"@react-navigation/native": "^6.1.17",

0 commit comments

Comments
 (0)