Pod file Changes
Change the SDK name CometChatPro to CometChatSDK for chat SDK and provide it v4’s latest version. Same for calls SDK change it from CometChatCalls to CometChatCallsSDK.For the next steps, it recommended to open you iOS project root Folder in VSCode and use it’s global find and replace feature.
Import statement changes
For each and every file in your project that uses CometChat’s chat SDK or calls SDK, the import statement needs to be changeChat SDK
Changing import statement to CometChatSDK for every file where chat SDK is used. You can do VSCode’s find and replace for the particular statementimport CometChatPro
to import CometChatSDK
.
Calls SDK
Changing import statement to CometChatCallsSDK for every file where calls SDK is used. You can do VSCode’s find and replace for the particular statementimport CometChatCalls
to import CometChatCallsSDK
.
Access class via SDK name changes
In your project there might be cases where you have accessed SDK classes with the SDK name. LikeCometChatPro.User
or CometChatSDK.Call
. Since this import is done using SDK name, you have to replace that as well with the new SDK’s name.
CometChatPro.
to CometChatSDK.
for chat SDK. And from CometChatCalls.
to CometChatCallsSDK.
for calls SDK.
All Done! now just do pod install, build you project and enjoy all the new features from v4.