Skip to content

Commit

Permalink
v5.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
yghLOVEzy committed Feb 9, 2023
1 parent a300f2d commit a46d0c0
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 6 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,13 @@ chatViewManager.orientationMask = UIInterfaceOrientationMaskPortrait;
#### 更新记录:
sdk v5.2.11版本更新功能:
1、机器人转人工
2、横屏聊天信息溢出屏幕外修复
-----
sdk v5.2.10版本更新功能:
1、修复 富文本嵌入图片打开
Expand Down
2 changes: 1 addition & 1 deletion UdeskSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'UdeskSDK'
s.version = '5.2.10'
s.version = '5.2.11'
s.license = 'MIT'
s.summary = 'Udesk SDK for iOS'
s.homepage = 'https://github.com/udesk/UdeskSDK-iOS'
Expand Down
Binary file modified UdeskSDK/SDK/libUdesk.a
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ - (void)layoutDate {
//转人工
- (void)layoutTransfer {

if ([self.message.switchStaffType isEqualToString:@"1"]) {
if ([self.message.switchStaffType isEqualToString:@"1"] || [self.message.switchStaffType isEqualToString:@"4"]) {
_transferHeight = kUDTransferHeight + kUDTransferVerticalEdgeSpacing;
}
}
Expand Down
4 changes: 3 additions & 1 deletion UdeskSDK/UDChatMessage/UDIM/Views/Cells/UdeskBaseCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ - (void)tapResetButtonAction:(UIButton *)button {
#pragma mark - 机器人转人工
- (void)setupAnswerTransfer {

if ([self.baseMessage.message.switchStaffType isKindOfClass:[NSString class]] && [self.baseMessage.message.switchStaffType isEqualToString:@"1"]) {
if ([self.baseMessage.message.switchStaffType isKindOfClass:[NSString class]] && ([self.baseMessage.message.switchStaffType isEqualToString:@"1"] ||
[self.baseMessage.message.switchStaffType isEqualToString:@"4"])
) {

if (![UdeskSDKUtil isBlankString:self.baseMessage.message.switchStaffTips]) {
CGSize size = [UdeskStringSizeUtil sizeWithText:self.baseMessage.message.switchStaffTips font:[UIFont systemFontOfSize:14] size:CGSizeMake(UD_SCREEN_WIDTH-(kUDBubbleToHorizontalEdgeSpacing*2), kUDTransferHeight)];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"udesk_search" = "搜索";
"udesk_video_export_failed" = "视频导出失败";
"udesk_agent_transfer_tip" = "客服转接成功,@为您服务";
"udesk_showTransfer_place_tip" = "推荐您进行转人工咨询~";

"udesk_preview" = "预览";
"udesk_full_image" = "原图";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"udesk_search" = "Search";
"udesk_video_export_failed" = "Video export failed";
"udesk_agent_transfer_tip" = "Agent transferred successfully, @ is at your service";
"udesk_showTransfer_place_tip" = "Recommend you to transfer to customer service~";

"udesk_preview" = "Preview";
"udesk_full_image" = "Full Image";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"udesk_search" = "搜索";
"udesk_video_export_failed" = "视频导出失败";
"udesk_agent_transfer_tip" = "客服转接成功,@为您服务";
"udesk_showTransfer_place_tip" = "推荐您进行转人工咨询~";

"udesk_preview" = "预览";
"udesk_full_image" = "原图";
Expand Down
22 changes: 21 additions & 1 deletion UdeskSDK/UDChatMessage/UDTools/Macro/UdeskSDKMacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,17 @@ _Pragma("clang diagnostic pop")
#endif

// Size
#define UD_SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define UD_SCREEN_WIDTH ({ \
CGFloat udWidth = [[UIScreen mainScreen] bounds].size.width; \
if (udIsLandScape) { \
if (udIsIPhoneXSeries) { \
udWidth = [[UIScreen mainScreen] bounds].size.width-44*2; \
} \
} \
udWidth; \
})

//#define UD_SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define UD_SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height

// 是否IOS13
Expand Down Expand Up @@ -97,6 +107,16 @@ if (@available(iOS 11.0, *)) { \
ipX; \
})

// 判断当前屏幕是否是横屏
#define udIsLandScape ({ \
BOOL isL = NO; \
if ([UIApplication sharedApplication].statusBarOrientation == UIDeviceOrientationLandscapeRight || \
[UIApplication sharedApplication].statusBarOrientation == UIDeviceOrientationLandscapeLeft) { \
isL = YES; \
} \
isL; \
})

// View 圆角和加边框
#define UDViewBorderRadius(View, Radius, Width, Color)\
\
Expand Down
4 changes: 2 additions & 2 deletions UdeskSDKExample/UdeskSDKExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@
"$(inherited)",
"\"$(SRCROOT)/../UdeskSDK/SDK\"",
);
MARKETING_VERSION = 5.2.10;
MARKETING_VERSION = 5.2.11;
OTHER_LDFLAGS = (
"$(inherited)",
"-l\"c++\"",
Expand Down Expand Up @@ -2604,7 +2604,7 @@
"$(inherited)",
"\"$(SRCROOT)/../UdeskSDK/SDK\"",
);
MARKETING_VERSION = 5.2.10;
MARKETING_VERSION = 5.2.11;
OTHER_LDFLAGS = (
"$(inherited)",
"-l\"c++\"",
Expand Down

0 comments on commit a46d0c0

Please sign in to comment.