名目构建
从名目中移除了 SDK1.0 相关类库以及资源文件,削减 SDK2.0 相关类库以及资源文件。
1,名目中退出 RongIMLib.framework,RongIMKit.framework。
2,在你名目的 Resource 目录中退出 RongCloud.bundle。
3,名目中所有需要 import SDK 中的类中间需要用 #import <包名/类名.h>方式。
初始化以及上岸相关主要更正
一些接口函数,如:initWithAppKey, connectWithToken,setUserInfoFetcherWithDelegate,setFriendsFetcherWithDelegate等(参照API文档)改为实例措施 举例:
[RCIM initWithAppKey:appKey deviceToken:nil];
改为
[[RCIM sharedKit] initWithAppKey:appKey deviceToken:nil];
功能类接口更正
一些在 IMKit 里提供的接口函数,移到了 IMLib 里,请更正运用。
如:getBlacklist setConversationNotificationQuietHoursgetConversationNotificationQuietHours()等(参考API文档)
例子:
[[RCIM sharedRCIM]removeFromBlacklist:_removedUser.userId completion:^{}];
改为
[[RCIMClient sharedClient]removeFromBlacklist:_removedUser.userId completion:^{}];
回调措施更正
优化了部份措施参数规范,返回值由delegate改为block,利便开拓者取患上返回形态,部份措施由类措施改为了实例措施(参考API文档)