|
|
пре 11 месеци | |
|---|---|---|
| Frameworks | пре 11 месеци | |
| bugu | пре 11 месеци | |
| bugu.xcworkspace | пре 11 месеци | |
| build | пре 11 месеци | |
| fastlane | пре 11 месеци | |
| scripts | пре 11 месеци | |
| .gitignore | пре 11 месеци | |
| Gemfile | пре 11 месеци | |
| Gemfile.lock | пре 11 месеци | |
| LICENSE | пре 11 месеци | |
| Podfile | пре 11 месеци | |
| Podfile.lock | пре 11 месеци | |
| README.md | пре 11 месеци |
布咕iOS客户端源码 产品说明 http://farsunset.com
1、证书配置
2、App 信息配置
2、在 HXConfiguration 进行App 名称、服务器地址、IM 地址等配置。
struct HXConfiguration {
struct App {
/// App名称
static let name = "App名称"
/// 版本更新地址
static let updateURL = "https://xxxx.com"
}
/// 服务器配置
struct HttpServiceURL {
static let buguReleaseApiURL = "http://api.xxxx.com"
static let buguDeBugApiURL = "http://api.xxxx.com"
}
/// IM 配置
struct IMServiceURL {
static let buguReleaseIMURL = "wss://api.xxxx.com/wss"
static let buguDeBugIMURL = "wss://api.xxxx.com/wss"
}
/// RTC 配置
struct RTC {
static let rtcUserAvatarDomain = "http://api.xxxx.com/user-icon/{uid}"
static let rtcLiveKitServer = "wss://livekit.xxxx.com"
static let iceServers = [
ICEServer(uri: "turn:turn.xxxx.com:3478", username: "username", password: "password"),
ICEServer(uri: "stun:stun.l.google.com:19302"),
]
}
/// 隐私协议配置
struct PrivacyURL {
static let terms = "https://xxxx.com"
static let privacy = "https://xxxx.com"
}
/// 关于产品配置
struct About {
/// 官网跳转地址
static let descriptionURL = "http://xxxx.com"
/// im sdk 地址
static let imSDKURL = "https://xxx.com"
/// 产品介绍
static let productDescription = L10n.Setting.About.description(HXConfiguration.App.name)
}
}
3、配置 RTC 屏幕分享
group.com.xxxx 替换成您申请的 AppGroup Keygroup.com.xxxx 替换成您申请的 AppGroup Keygroup.com.xxxx 替换成您申请的 AppGroup Key