
主要变更: 1. 移除不必要的模块导入,简化 AppDelegate 中的代码结构。 2. 引入新的 EPConfigManager 和 EPNIMManager,统一配置管理和 NIMSDK 初始化逻辑。 3. 更新相关方法以使用 block 回调,提升代码的可读性和维护性。 4. 新增 EPClientAPIBridge 和相关配置文件,增强项目的模块化。 此更新旨在提升代码的可维护性,减少冗余实现,确保配置管理的一致性。
28 lines
490 B
Objective-C
28 lines
490 B
Objective-C
//
|
|
// EPConfigStorage.h
|
|
// YuMi
|
|
//
|
|
// Lightweight persistence for client/init data
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface EPConfigStorage : NSObject
|
|
|
|
/// Save init payload dictionary to disk (Application Support)
|
|
+ (BOOL)saveInit:(NSDictionary *)dict;
|
|
|
|
/// Load init payload dictionary from disk; returns nil if missing/invalid
|
|
+ (NSDictionary * _Nullable)loadInit;
|
|
|
|
/// Remove persisted init payload
|
|
+ (BOOL)clearInit;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|