Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
张双义 committed May 22, 2023
1 parent 35fb838 commit c04a797
Show file tree
Hide file tree
Showing 189 changed files with 3,326 additions and 709 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,23 @@ Udesk视频通话参数配置在登录管理后台更改,详见;
# 四、常见问题
- 如遇bitcode问题,请在target Build Setting 中搜搜索enable bitcode改为no即可。
- 三方库依赖版本信息,如有项目有已引用对于库,需保证高于下列版本:
- 三方库依赖版本信息,如果项目有已引用对应库,需保证高于下列版本:
'TXLiteAVSDK_TRTC', '~> 8.7.10102'
'YYText', '~> 1.0.7'
'SDWebImage', '~> 5.11.1'
'MJRefresh', '~> 3.7.5'
# 五、更新记录
#### 更新记录:
**2023/05/22 -- v1.3.0**
**版本更新功能:**
1.支持多语言
2.支持用户反馈评价
3.兼容UdeskSDK
**2022/6/21 -- v1.2.0**
**版本更新功能:**
1.支持屏幕分享
Expand Down
16 changes: 8 additions & 8 deletions UdeskAVSExample/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ PODS:
- SDWebImage/Core (= 5.11.1)
- SDWebImage/Core (5.11.1)
- TXLiteAVSDK_TRTC (8.7.10102)
- UdeskAVSSDK (1.2.0):
- UdeskAVSSDK/AVSKit (= 1.2.0)
- UdeskAVSSDK/SDK (= 1.2.0)
- UdeskAVSSDK/AVSKit (1.2.0):
- UdeskAVSSDK (1.3.0):
- UdeskAVSSDK/AVSKit (= 1.3.0)
- UdeskAVSSDK/SDK (= 1.3.0)
- UdeskAVSSDK/AVSKit (1.3.0):
- MJRefresh (~> 3.7.5)
- SDWebImage (~> 5.11.1)
- TXLiteAVSDK_TRTC (= 8.7.10102)
- UdeskAVSSDK/SDK
- YYText (~> 1.0.7)
- UdeskAVSSDK/SDK (1.2.0)
- UdeskAVSSDK/SDK (1.3.0)
- YYText (1.0.7)

DEPENDENCIES:
Expand All @@ -38,9 +38,9 @@ SPEC CHECKSUMS:
MJRefresh: fdf5e979eb406a0341468932d1dfc8b7f9fce961
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
TXLiteAVSDK_TRTC: e78365f430926a1064e175fd8d97601559e7d3d1
UdeskAVSSDK: 2c1430742af528439c161e3de1d8045f0465f1dd
UdeskAVSSDK: 573fe95a8bdd5181fe490c2ac161a246138962f0
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849

PODFILE CHECKSUM: 447f2a74cf274ae41ebd5f7c5a3f59a9eb548caf
PODFILE CHECKSUM: 395d2b8c7a9ba3e677bca868ed969b4664890123

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
2 changes: 1 addition & 1 deletion UdeskAVSSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "UdeskAVSSDK"
s.version = "1.2.0"
s.version = "1.3.0"
s.license = "MIT"
s.summary = "UdeskAVSSDK SDK for iOS"
s.homepage = "https://github.com/udesk/UdeskAVSSDK-iOS"
Expand Down
2 changes: 1 addition & 1 deletion lib/UdeskAVSSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'UdeskAVSSDK'
s.version = '1.2.0'
s.version = '1.3.0'
s.license = 'MIT'
s.summary = 'lib.'
s.description = <<-DESC
Expand Down
63 changes: 63 additions & 0 deletions lib/UdeskAVSSDK/SDK/UAVSSurveyModel.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
//
// UAVSJudgmentInfoModel.h
// UdeskAVSExample
//
// Created by Admin on 2022/6/29.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSUInteger, UAVSRemarkOptionType) {
UAVSRemarkOptionTypeOptional = 1, //选填 默认
UAVSRemarkOptionTypeRequired, //必填
UAVSRemarkOptionTypeHide, //隐藏
};


@interface UAVSSurveySetOptionModel : NSObject

@property (nonatomic, assign) BOOL isDefault;//是否默认选中

//是否解决使用
@property (nonatomic, copy ) NSString *optionValue;

//满意度使用
@property (nonatomic, strong) NSNumber *optionId;
@property (nonatomic, strong) NSNumber *score;
@property (nonatomic, copy ) NSString *optionName;
@property (nonatomic, strong) NSArray <NSString *> *labels;
@property (nonatomic, assign) UAVSRemarkOptionType remarkType;

@end


@interface UAVSSurveySetModel : NSObject

@property (nonatomic, strong) NSArray<UAVSSurveySetOptionModel *> *judgmentSetOptions;
@property (nonatomic, strong) NSNumber *judgmentType;

@end


@interface UAVSSurveyResolveSetModel : NSObject

@property (nonatomic, strong) NSArray<UAVSSurveySetOptionModel *> *resolveSetOptions;
@property (nonatomic, copy ) NSString *title;

@end

@interface UAVSSurveyModel : NSObject

@property (nonatomic, assign) BOOL status;//是否开启
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *title;

@property (nonatomic, strong)UAVSSurveySetModel *judgmentSet;
@property (nonatomic, strong) UAVSSurveyResolveSetModel *resolveSet;

@property (nonatomic, strong) NSString *remarkSchema;

@end


1 change: 1 addition & 0 deletions lib/UdeskAVSSDK/SDK/UdeskAVSMessageManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/**收到消息*/
- (void)uavs_messageArrived:(UdeskAVSBaseMessage *)message;

@optional
/**消息发送状态更新*/
- (void)uavs_messageSendStatusChange:(UdeskAVSBaseMessage *)message;

Expand Down
13 changes: 12 additions & 1 deletion lib/UdeskAVSSDK/SDK/UdeskAVSSDKManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <Foundation/Foundation.h>
#import "UAVSSurveyModel.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down Expand Up @@ -43,9 +44,9 @@ NS_ASSUME_NONNULL_BEGIN

@interface UdeskAVSSDKManager : NSObject

/**sdk 所有配置和系统参数*/
@property (nonatomic, strong, readonly) UdeskAVSInitModel *avsContext;


+ (instancetype)sharedInstance;

+ (void)destoryInstance;
Expand Down Expand Up @@ -85,6 +86,16 @@ NS_ASSUME_NONNULL_BEGIN
/**获取SDK版本*/
- (NSString *)getSDKVersion;

/**是否展示满意度调查*/
- (BOOL)isShowSurvey;

/**获取满意度调查信息*/
- (UAVSSurveyModel *)getSurveyModel;

/**提交满意度调查*/
- (void)submitSurvey:(NSDictionary *)surveyInfo completion:(void(^)(NSError *error))completion;


@end

NS_ASSUME_NONNULL_END
2 changes: 2 additions & 0 deletions lib/UdeskAVSSDK/SDK/UdeskAVSTRTCRoomInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign) int sdkAppid;
@property (nonatomic, strong) NSString *userSig;
@property (nonatomic, assign) int roomId;
@property (nonatomic, strong) NSString *channelId;


@end

Expand Down
Binary file modified lib/UdeskAVSSDK/SDK/libUdeskAVS.a
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import "UIAlertController+UdeskAVS.h"
#import "UdeskAVSBundleUtils.h"

@implementation UIAlertController (UdeskAVS)

Expand All @@ -16,7 +17,7 @@ + (void)udeskShowAlert:(NSString *)title
message:nil
preferredStyle:UIAlertControllerStyleAlert];

UIAlertAction *conform = [UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
UIAlertAction *conform = [UIAlertAction actionWithTitle:getUDAVSLocalizedString(@"uavs_common_sure") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
if (completion) {
completion();
}
Expand All @@ -34,14 +35,14 @@ + (instancetype)udeskShowSimpleAlert:(NSString *)title
UIAlertController *alert = [UIAlertController alertControllerWithTitle:title
message:nil
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *conform = [UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
UIAlertAction *conform = [UIAlertAction actionWithTitle:getUDAVSLocalizedString(@"uavs_common_sure") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
if (completion) {
completion(0);
}
}];
[alert addAction:conform];

UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
UIAlertAction *cancel = [UIAlertAction actionWithTitle:getUDAVSLocalizedString(@"uavs_common_cancel") style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
if (completion) {
completion(1);
}
Expand Down
15 changes: 15 additions & 0 deletions lib/UdeskAVSSDK/UIKit/Classes/Categories/UIImage+UdeskAVS.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ NS_ASSUME_NONNULL_BEGIN
//拉伸气泡
+ (UIImage *)udBubbleImageWithName:(NSString *)name;

/** 满意度评价关闭按钮 */
+ (UIImage *)udDefaultSurveyCloseImage;

/** 满意度评价表情 满意 */
+ (UIImage *)udDefaultSurveyExpressionSatisfiedImage;

/** 满意度评价表情 不满意 */
+ (UIImage *)udDefaultSurveyExpressionUnsatisfactoryImage;

/** 满意度评价表情 空星 */
+ (UIImage *)udDefaultSurveyStarEmptyImage;

/** 满意度评价表情 实星 */
+ (UIImage *)udDefaultSurveyStarFilledImage;

@end

NS_ASSUME_NONNULL_END
27 changes: 27 additions & 0 deletions lib/UdeskAVSSDK/UIKit/Classes/Categories/UIImage+UdeskAVS.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,31 @@ + (UIImage *)udBubbleImageWithName:(NSString *)name {
}



/** 满意度评价关闭按钮 */
+ (UIImage *)udDefaultSurveyCloseImage {
return [UIImage udavs_imageNamed:(@"udSurveyClose.png")];
}

/** 满意度评价表情 满意 */
+ (UIImage *)udDefaultSurveyExpressionSatisfiedImage {
return [UIImage udavs_imageNamed:(@"udesk_avs_statify_checked.png")];
}

/** 满意度评价表情 不满意 */
+ (UIImage *)udDefaultSurveyExpressionUnsatisfactoryImage {
return [UIImage udavs_imageNamed:(@"udesk_avs_unstatify_checked.png")];
}

/** 满意度评价表情 空星 */
+ (UIImage *)udDefaultSurveyStarEmptyImage {
return [UIImage udavs_imageNamed:(@"udSurveyStarEmpty.png")];
}

/** 满意度评价表情 实星 */
+ (UIImage *)udDefaultSurveyStarFilledImage {
return [UIImage udavs_imageNamed:(@"udSurveyStarFilled.png")];
}


@end
31 changes: 31 additions & 0 deletions lib/UdeskAVSSDK/UIKit/Classes/Connector/UAVSLanguageConfig.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// UdeskLanguageConfig.h
// UdeskSDK
//
// Created by Udesk on 16/9/5.
// Copyright © 2016年 Udesk. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UAVSLanguageConfig : NSObject

+ (instancetype)sharedConfig;

/**
* 返回table中指定的key的值
*
* @param key key
* @param table table
*
* @return 返回table中指定的key的值
*/
- (NSString *)getStringForKey:(NSString *)key withTable:(NSString *)table;

//更新语言
- (void)setSDKLanguageToEnglish;
- (void)setSDKLanguageToChinease;

@property (nonatomic,strong) NSString *language;

@end
Loading

0 comments on commit c04a797

Please sign in to comment.