IM 即时通讯 (438)
Android (207)
- 初始化&链接 (8)
- 事件&监听处理 (7)
- 用户信息 (13)
- 会话列表 (15)
- 聊天会话 (26)
- 消息处理 (35)
- 自定义消息 (6)
- 音视频 (2)
- 推送&通知 (33)
- 扩展功能 (4)
- 第三方地图 (3)
- 依赖&配置 (9)
- 升级说明 (3)
- 其他 (43)
iOS (166)
- SDK 导入 (9)
- 连接 (8)
- 事件处理 (2)
- 用户信息 (3)
- 会话列表 (14)
- 聊天会话 (44)
- 消息处理 (25)
- 自定义消息 (8)
- 推送&通知 (19)
- 扩展功能 (5)
- 国际化 (3)
- 音视频 (3)
- 其他 (23)
Web (36)
Server (29)
融云IM SDK CocoaPods 功能模块说明
融云IM SDK CocoaPods 功能模块和使用说明
发布时间: 2016-11-10 18:47
回答:
融云 IM SDK CocoaPods 功能模块说明
融云在 CocoaPods
上提供了名为 RongCloudIM
的主模块,其中包含了各种功能和需求的子模块。
开发者可以在终端执行下面的命令:
pod search RongCloudIM
执行后会看到下面的内容
上图以 2.9.17
版本为例
其中主模块下共包含五个子模块:
子模块 | 说明 |
---|---|
RongCloudIM/IMLib | IMLib库 |
RongCloudIM/IMKit | IMKit库 |
RongCloudIM/RedPacket | 红包库 |
RongCloudIM/RongSticker | 表情库 |
RongCloudIM/Sight | 小视频库 |
如需使用上述子模块,只需在 Podfile
中增加相应的子模块的引用即可。
注意:在使用 RongCloudIM 的时候,请务必保证所有的子模块版本号一致!
在引用之前,还需注意模块之间的引用关系,见下图
在使用 IMLib
时,直接导入 IMLib
库即可:
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'TestDemo' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for TestDemo pod 'RongCloudIM/IMLib', '~> 2.9.17' end
在使用 IMKit
时,需同时导入 IMLib
和 IMKit
库:
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'TestDemo' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for TestDemo pod 'RongCloudIM/IMLib', '~> 2.9.17' pod 'RongCloudIM/IMKit', '~> 2.9.17' end
在使用 RedPacket
、 RongSticker
或 Sight
库时,还需导入IMLib
和 IMKit
库:
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'TestDemo' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for TestDemo pod 'RongCloudIM/IMLib', '~> 2.9.17' pod 'RongCloudIM/IMKit', '~> 2.9.17' pod 'RongCloudIM/RedPacket', '~> 2.9.17' pod 'RongCloudIM/RongSticker', '~> 2.9.17' pod 'RongCloudIM/Sight', '~> 2.9.17' end