
主要变更: 1. 移除不必要的模块导入,简化 AppDelegate 中的代码结构。 2. 引入新的 EPConfigManager 和 EPNIMManager,统一配置管理和 NIMSDK 初始化逻辑。 3. 更新相关方法以使用 block 回调,提升代码的可读性和维护性。 4. 新增 EPClientAPIBridge 和相关配置文件,增强项目的模块化。 此更新旨在提升代码的可维护性,减少冗余实现,确保配置管理的一致性。
30 lines
819 B
Objective-C
30 lines
819 B
Objective-C
//
|
|
// EPNIMConfig.h
|
|
// YuMi
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// NIMSDK 配置模型(从 ClientConfig 派生)
|
|
@interface EPNIMConfig : NSObject
|
|
|
|
@property (nonatomic, copy) NSString *appKey;
|
|
@property (nonatomic, copy) NSString *apnsCername;
|
|
@property (nonatomic, assign) BOOL shouldConsiderRevokedMessageUnreadCount;
|
|
@property (nonatomic, assign) BOOL shouldSyncStickTopSessionInfos;
|
|
@property (nonatomic, assign) BOOL enabledHttpsForInfo;
|
|
@property (nonatomic, assign) BOOL enabledHttpsForMessage;
|
|
@property (nonatomic, assign) NSInteger cdnTrackInterval;
|
|
@property (nonatomic, assign) NSInteger chatroomMessageReceiveMinInterval;
|
|
|
|
/// 从 ClientConfig 创建配置;若缺失 nimKey 则返回 nil
|
|
+ (instancetype _Nullable)configFromClientConfig;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|