Skip to content

Commit

Permalink
fix: podfile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Jun 7, 2024
1 parent bd9ef03 commit a7ba0a2
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 71 deletions.
18 changes: 12 additions & 6 deletions examples/SampleApp/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,20 @@ end
target 'SampleApp' do
config = use_native_modules!

# Added for op-sqlite library - https://ospfranco.notion.site/Installation-93044890aa3d4d14b6c525ba4ba8686f#acdc7a6723234f8b8440acb1ae0e7d87
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('op-sqlite')
def pod.build_type
Pod::BuildType.static_library
end
end
end
end

# Beginning with firebase-ios-sdk v9+ (react-native-firebase v15+) we must tell CocoaPods to use frameworks.
# https://rnfirebase.io/#altering-cocoapods-to-use-frameworks
use_frameworks! :linkage => :static
# Note: must disable flipper due to enabling static linkage
$RNFirebaseAsStaticFramework = true

Expand All @@ -51,12 +63,6 @@ target 'SampleApp' do
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'Firebase/AppDistribution'
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'FirebaseInstallations', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'GoogleDataTransport', :modular_headers => true
pod 'nanopb', :modular_headers => true

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
Expand Down
116 changes: 53 additions & 63 deletions examples/SampleApp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PODS:
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreExtension (10.21.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.21.0):
- FirebaseCoreInternal (10.25.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.21.0):
- FirebaseCore (~> 10.5)
Expand All @@ -64,7 +64,7 @@ PODS:
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseInstallations (10.21.0):
- FirebaseInstallations (10.25.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
Expand All @@ -78,13 +78,14 @@ PODS:
- GoogleUtilities/Reachability (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseSessions (10.21.0):
- FirebaseSessions (10.25.0):
- FirebaseCore (~> 10.5)
- FirebaseCoreExtension (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.10)
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleUtilities/Environment (~> 7.13)
- GoogleUtilities/UserDefaults (~> 7.13)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesSwift (~> 2.1)
- fmt (6.2.1)
- glog (0.3.5)
Expand All @@ -108,43 +109,38 @@ PODS:
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleDataTransport (9.3.0):
- GoogleDataTransport (9.4.1):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities (7.12.0):
- GoogleUtilities/AppDelegateSwizzler (= 7.12.0)
- GoogleUtilities/Environment (= 7.12.0)
- GoogleUtilities/ISASwizzler (= 7.12.0)
- GoogleUtilities/Logger (= 7.12.0)
- GoogleUtilities/MethodSwizzler (= 7.12.0)
- GoogleUtilities/Network (= 7.12.0)
- "GoogleUtilities/NSData+zlib (= 7.12.0)"
- GoogleUtilities/Reachability (= 7.12.0)
- GoogleUtilities/SwizzlerTestHelpers (= 7.12.0)
- GoogleUtilities/UserDefaults (= 7.12.0)
- GoogleUtilities/AppDelegateSwizzler (7.12.0):
- GoogleUtilities/AppDelegateSwizzler (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.12.0):
- GoogleUtilities/Privacy
- GoogleUtilities/Environment (7.13.3):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/ISASwizzler (7.12.0)
- GoogleUtilities/Logger (7.12.0):
- GoogleUtilities/Logger (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.12.0):
- GoogleUtilities/Privacy
- GoogleUtilities/MethodSwizzler (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.12.0):
- GoogleUtilities/Privacy
- GoogleUtilities/Network (7.13.3):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Privacy
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.12.0)"
- GoogleUtilities/Reachability (7.12.0):
- "GoogleUtilities/NSData+zlib (7.13.3)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.3)
- GoogleUtilities/Reachability (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/SwizzlerTestHelpers (7.12.0):
- GoogleUtilities/MethodSwizzler
- GoogleUtilities/UserDefaults (7.12.0):
- GoogleUtilities/Privacy
- GoogleUtilities/UserDefaults (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- hermes-engine (0.73.5):
- hermes-engine/Pre-built (= 0.73.5)
- hermes-engine/Pre-built (0.73.5)
Expand Down Expand Up @@ -1291,7 +1287,7 @@ PODS:
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.10)
- SocketRocket (0.6.1)
- TOCropViewController (2.6.1)
- TOCropViewController (2.7.4)
- Yoga (1.14.0)

DEPENDENCIES:
Expand All @@ -1302,15 +1298,9 @@ DEPENDENCIES:
- Firebase/Analytics
- Firebase/AppDistribution
- Firebase/Crashlytics
- FirebaseCore
- FirebaseCoreExtension
- FirebaseInstallations
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- GoogleDataTransport
- GoogleUtilities
- hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
- libevent (~> 2.1.12)
- nanopb
- "op-sqlite (from `../node_modules/@op-engineering/op-sqlite`)"
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCT-Folly/Fabric (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
Expand Down Expand Up @@ -1557,16 +1547,16 @@ SPEC CHECKSUMS:
FirebaseAppDistribution: 75fa7ea1740b301aa529f6f4ac6148d09e90a58d
FirebaseCore: 74f647ad9739ea75112ce6c3b3b91f5488ce1122
FirebaseCoreExtension: 1c044fd46e95036cccb29134757c499613f3f564
FirebaseCoreInternal: 43c1788eaeee9d1b97caaa751af567ce11010d00
FirebaseCoreInternal: 910a81992c33715fec9263ca7381d59ab3a750b7
FirebaseCrashlytics: 063b883186d7ccb1db1837c19113ca6294880c1b
FirebaseInstallations: 390ea1d10a4d02b20c965cbfd527ee9b3b412acb
FirebaseInstallations: 91950fe859846fff0fbd296180909dd273103b09
FirebaseMessaging: b285329399cc6edd73b5b32864c68454177bcf3f
FirebaseSessions: 80c2bbdd28166267b3d132debe5f7531efdb00bc
FirebaseSessions: c0939656253a1fa0e94ecc266ccf770cc8b33732
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
GoogleAppMeasurement: a65314d316443969ed3d3709b3a187448ed6418f
GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
hermes-engine: 1d1835b2cc54c381909d94d1b3c8e0a2f1a94a0e
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
Expand All @@ -1579,69 +1569,69 @@ SPEC CHECKSUMS:
RCTTypeSafety: 50efabe2b115c11ed03fbf3fd79e2f163ddb5d7c
React: 84221d5e0ce297bc57c4b6af539a62d812d89f10
React-callinvoker: 5d17577ecc7f784535ebedf3aad4bcbf8f4b5117
React-Codegen: 857e7984fc277aadde2a7a427288b6918ece7b2b
React-Codegen: 505dec0b00b0b0f4d37daa34a58cc165c4d4ae8f
React-Core: 8e782e7e24c7843871a0d9c3c8d7c5b3ebb73832
React-CoreModules: 7875ee247e3e6e0e683b52cd1cdda1b71618bd55
React-cxxreact: 788cd771c6e94d44f8d472fdfae89b67226067ea
React-debug: 55c7f2b8463bfe85567c9f4ede904085601130c9
React-Fabric: 8cb43853496bb8032420edf62e7281c53109e682
React-FabricImage: fbdc0ef7ed58a87c77600017c19a751932de3e47
React-graphics: dc8307b615f14e13f1081ac23ea66697808bcd29
React-debug: dfa1204927f463147fa37ec016681d44ed01e28f
React-Fabric: 38abe1e29f8c00c99066e0c1b78cb82910e94f31
React-FabricImage: fe8a1966c996eca2fadfba3c77eaeefbfe87c5e2
React-graphics: b86c64b8c1ccb65f2b518b3648f115084eeb2e23
React-hermes: d9acaa4ebf2118d9bd8a541af8c620c467b356b6
React-ImageManager: 2a97ddc9b1f459121697d629cfbe69712997d76f
React-jserrorhandler: b97b16674258ccaeff5a70047a097a140e76d12d
React-ImageManager: 09331fdc8f342721e0530c3c77c7629e67301b23
React-jserrorhandler: 08c527eb1aca91609262922093589376c0e48905
React-jsi: 1d59d0a148c76641ac577729e0268bafa494152c
React-jsiexecutor: 262b66928ad948491d03fd328bb5b822cce94647
React-jsinspector: 32db5e364bcae8fca8cdf8891830636275add0c5
React-logger: 0331362115f0f5b392bd7ed14636d1a3ea612479
React-Mapbuffer: 7c35cd53a22d0be04d3f26f7881c7fb7dd230216
React-Mapbuffer: 30d796a057e4e077d44b4c2ba17869fb8c1064eb
react-native-cameraroll: 4701ae7c3dbcd3f5e9e150ca17f250a276154b35
react-native-document-picker: 2b8f18667caee73a96708a82b284a4f40b30a156
react-native-image-resizer: fd0c333eca55147bd55c5e054cac95dcd0da6814
react-native-netinfo: 299dad906cdbf3b67bcc6f693c807f98bdd127cc
react-native-safe-area-context: b97eb6f9e3b7f437806c2ce5983f479f8eb5de4b
react-native-video: d440605e68cf173e70f0b25112455e3d86890663
React-nativeconfig: 1166714a4f7ea57a0df5c2cb44fbc70f98d580f9
React-NativeModulesApple: 726664e9829eb5eed8170241000e46ead269a05f
react-native-video: 2e38d3e0f7382427539b6b436812553480fcf70a
React-nativeconfig: 78e2b14c0ee479449845b67bbe103343257cbcc0
React-NativeModulesApple: 4fce13d416890352a7a9621427459fe738c4e79a
React-perflogger: 0dd9f1725d55f8264b81efadd373fe1d9cca7dc2
React-RCTActionSheet: 05656d2102b0d0a2676d58bad4d80106af5367b2
React-RCTAnimation: 6c66beae98730fb7615df28caf651e295f2401e5
React-RCTAppDelegate: 891b80c596fffcb3f90431739495d606a9a0d610
React-RCTBlob: 8ecee445ec5fa9ed8a8621a136183c1045165100
React-RCTFabric: f291e06bc63fef26cdd105537bae5c6a8d3bdca8
React-RCTFabric: 15bce761b785349eaa660b28332bf9b65c786ebe
React-RCTImage: 585b16465146cb839da02f3179ce7cb19d332642
React-RCTLinking: 09ba11f7df62946e7ddca1b51aa3bf47b230e008
React-RCTNetwork: e070f8d2fca60f1e9571936ce54d165e77129e76
React-RCTSettings: b08c7ff191f0a5421aab198ea1086c9a8d513bde
React-RCTText: f6cc5a3cf0f1a4f3d1256657dca1025e4cfe45e0
React-RCTVibration: d9948962139f9924ef87f23ab240e045e496213b
React-rendererdebug: ee05480666415f7a76e6cf0a7a50363423f44809
React-rncore: 010565651e9cf2e4fac9517a348446789dd55e01
React-rendererdebug: 4442f6ef50a9ef3ccbb7f800aea1c14ec8a340b7
React-rncore: dfda9e1fea1c44ff68e490b7654e5f2486b94f17
React-runtimeexecutor: 56f562a608056fb0c1711d900a992e26f375d817
React-runtimescheduler: 814b644a5f456c7df1fba7bcd9914707152527c6
React-utils: 987a4526a2fc0acdfaf87888adfe0bf9d0452066
ReactCommon: 2947b0bffd82ea0e58ca7928881152d4c6dae9af
React-runtimescheduler: ed71ec64a3e5cf509d74dfe9e25d72b04c84a3ad
React-utils: 74fc896195fb41a1f7dcd5737d89be59c1fdccc4
ReactCommon: ab6655d0224cf39c997ea634d257c609d345e23d
RNAudioRecorderPlayer: 9b34adc281800e5b19258f1b91d889b1ef3abdd6
RNCAsyncStorage: 014a78b2cc8cc107c9e92ee428dc0c1ac3223416
RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489
RNFastImage: 5c9c9fed9c076e521b3f509fe79e790418a544e8
RNFBApp: 1c8688e63b58bb57e6a6e9032aa227f8df8371bf
RNFBMessaging: 9b16c72d001787aca05e2fb997e5c979b821dbb4
RNFS: 4ac0f0ea233904cb798630b3c077808c06931688
RNGestureHandler: 67fb54b3e6ca338a8044e85cd6f340265aa41091
RNGestureHandler: 2e3251b41d462552997c61afd680220d019fea65
RNImageCropPicker: 14fe1c29298fb4018f3186f455c475ab107da332
RNNotifee: 8e2d3df3f0e9ce8f5d1fe4c967431138190b6175
RNReactNativeHapticFeedback: afa5bf2794aecbb2dba2525329253da0d66656df
RNReanimated: 15a855719335a6b655a214531e86d806edfd49da
RNScreens: 17e2f657f1b09a71ec3c821368a04acbb7ebcb46
RNReanimated: 440ca83ef0a79a3376455663fc4a01300e131240
RNScreens: a4d9ce8f68f833f4e42410140eafd88e38bba163
RNShare: 859ff710211285676b0bcedd156c12437ea1d564
RNSVG: ba3e7232f45e34b7b47e74472386cf4e1a676d0a
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654
Yoga: 9e6a04eacbd94f97d94577017e9f23b3ab41cf6c

PODFILE CHECKSUM: e3ab32f49cc624b8845a6fe98705a2a84ec3004f
PODFILE CHECKSUM: 35eaf6ce44604be195e8eb15532275b5a777ac32

COCOAPODS: 1.14.3
4 changes: 2 additions & 2 deletions examples/SampleApp/src/hooks/useChatClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react';
import { StreamChat } from 'stream-chat';
import messaging from '@react-native-firebase/messaging';
import notifee from '@notifee/react-native';
import { QuickSqliteClient } from 'stream-chat-react-native';
import { SqliteClient } from 'stream-chat-react-native';
import { USER_TOKENS, USERS } from '../ChatUsers';
import AsyncStore from '../utils/AsyncStore';

Expand Down Expand Up @@ -181,7 +181,7 @@ export const useChatClient = () => {
};

const logout = async () => {
QuickSqliteClient.resetDB();
SqliteClient.resetDB();
setChatClient(null);
chatClient?.disconnectUser();
await AsyncStore.removeItem('@stream-rn-sampleapp-login-config');
Expand Down

0 comments on commit a7ba0a2

Please sign in to comment.