Skip to content

Commit

Permalink
feat: upgrade wukong proto
Browse files Browse the repository at this point in the history
  • Loading branch information
tangtaoit committed Oct 13, 2023
1 parent 040448e commit a279d12
Show file tree
Hide file tree
Showing 7 changed files with 1,125 additions and 1,119 deletions.
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ SPEC CHECKSUMS:
MBProgressHUD: e7baa36a220447d8aeb12769bf0585582f3866d9
MJRefresh: fdf5e979eb406a0341468932d1dfc8b7f9fce961
SQLCipher: 57fa9f863fa4a3ed9dd3c90ace52315db8c0fdca
WuKongIMSDK: 72b874f51abe38ce8970a18bf8ce49be4736790d
WuKongIMSDK: 127631b32ff3b9d5544ad3f5ce7c0d95f8af6499

PODFILE CHECKSUM: 00aa3bd48d9c6972f4a44310e103f359a3484dc4

Expand Down
5 changes: 1 addition & 4 deletions Example/Pods/Local Podspecs/WuKongIMSDK.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,228 changes: 1,116 additions & 1,112 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions WuKongIMSDK/Classes/WKConst.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ typedef enum : NSUInteger {

// 排序序号因子
#define WKOrderSeqFactor 1000

// 默认协议版本
#define WKDefaultProtoVersion 0x4;
2 changes: 1 addition & 1 deletion WuKongIMSDK/Classes/WKOptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ -(id) init {


self.offlineMessageLimit = 300;
self.protoVersion = 0x4;
self.protoVersion = WKDefaultProtoVersion;
self.proto = WK_PROTO_WK;
self.messageFileRootDir =[[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"files"];
self.dbPrefix = WK_DB_Prefix;
Expand Down
2 changes: 2 additions & 0 deletions WuKongIMSDK/Classes/manager/WKConnectionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ -(void) sendConnectPacket:(NSString*)uid token:(NSString*)token{

[[WKSecurityManager shared] generateDHPair];

WKSDK.shared.options.protoVersion = WKDefaultProtoVersion;

WKConnectPacket *connectPacket = [WKConnectPacket new];
connectPacket.clientKey = [[WKSecurityManager shared] getDHPubKey];
connectPacket.version = [WKSDK shared].options.protoVersion;
Expand Down

0 comments on commit a279d12

Please sign in to comment.