Tidak Ada Deskripsi

SuperC 15eb527044 [*] 外部合并250415 11 bulan lalu
Frameworks 9210bd1e14 [*] 跑通版本 11 bulan lalu
bugu 15eb527044 [*] 外部合并250415 11 bulan lalu
bugu.xcworkspace 9210bd1e14 [*] 跑通版本 11 bulan lalu
build 9210bd1e14 [*] 跑通版本 11 bulan lalu
fastlane 9210bd1e14 [*] 跑通版本 11 bulan lalu
scripts 9210bd1e14 [*] 跑通版本 11 bulan lalu
.gitignore 9210bd1e14 [*] 跑通版本 11 bulan lalu
Gemfile 9210bd1e14 [*] 跑通版本 11 bulan lalu
Gemfile.lock 9210bd1e14 [*] 跑通版本 11 bulan lalu
LICENSE 9210bd1e14 [*] 跑通版本 11 bulan lalu
Podfile 15eb527044 [*] 外部合并250415 11 bulan lalu
Podfile.lock 15eb527044 [*] 外部合并250415 11 bulan lalu
README.md 9210bd1e14 [*] 跑通版本 11 bulan lalu

README.md

bugu-client-ios

介绍

布咕iOS客户端源码 产品说明 http://farsunset.com

产品配置

1、证书配置

  • 登录 https://developer.apple.com/ 配置您的主 App 证书和 RTC 屏幕共享证书
  • 在 Xcode -> Targets -> bugu -> Signing & Capabilities -> Bundle Idenifer 配置您的包名
  • 在 Xcode -> Targets -> bugu -> Signing & Capabilities -> Provision Profile 配置您的描述文件
  • 在 Xcode -> Targets -> ScreenShareExtension -> Signing & Capabilities -> Bundle Idenifer 配置您的包名
  • 在 Xcode -> Targets -> ScreenShareExtension -> Signing & Capabilities -> Provision Profile 配置您的描述文件

2、App 信息配置

  • 在 Xcode -> Targets -> bugu -> Info.plist -> Bundle display name 配置您的 App 名称
  • 在 Xcode -> Targets -> bugu -> Info.plist -> 配置您的授权说明
  • 在 Xcode -> 左边文件列表 -> Resources -> Assets -> AppIcon -> 配置您的 App Logo 等
    • iPhone:20pt,29pt,40pt,57pt,60p
    • iPad:20pt,29pt,40pt,50pt,72pt,76pt,83.5pt
    • App Logo: 1024pt
  • 在 Xcode -> 左边文件列表 -> Resources -> Assets -> AppInlineIcon -> 配置您的应用内部分页面使用的Logo
  • 在 Xcode -> 左边文件列表 -> Resources -> Assets -> LaunchImage -> 配置您的应用的启动图

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 屏幕分享

  • 首先在 Apple 开发者后台申请 AppGroup 权限并获取 Key 值
  • 在 Xcode -> Targets -> bugu -> Signing & Capabilities -> App Group 添加您申请的 AppGroup Key
  • 在 Xcode -> Targets -> bugu -> Info.plist 将 RTCAppGroupIdentifier: group.com.xxxx 替换成您申请的 AppGroup Key
  • 在 Xcode -> Targets -> bugu -> Info.plist 将 RTCScreenSharingExtension : group.com.xxxx 替换成您申请的 AppGroup Key
  • 在 Xcode -> Targets -> ScreenShareExtension -> Info.plist Info.plist 将 RTCAppGroupIdentifier: group.com.xxxx 替换成您申请的 AppGroup Key
  • 在 Xcode -> Targets -> ScreenShareExtension -> Signing & Capabilities -> App Group 添加您申请的 AppGroup Key