XuqmGroup-iOSSDK/Sources/XuqmCoreSDK/SDKConfig.swift
XuqmGroup e016adbb71 chore(ci): 更新 Jenkins 配置以支持多模块版本管理
- 为 Android、Flutter、iOS 和 RN SDK 的 Jenkinsfile 添加模块化版本控制
- 引入版本升级策略选择(major/minor/patch)和自定义版本号功能
- 实现多模块独立版本管理和选择性构建发布
- 更新 iOS SDK Package.swift 以支持独立模块化库
- 修改 iOS SDK podspec 文件以适应新的标签命名约定
- 优化 Jenkins 构建流程以支持按需选择特定模块进行构建和发布
- 修复 iOS 测试中的可选类型转换问题以提高代码健壮性
2026-05-23 01:20:57 +08:00

40 行
904 B
Swift

import Foundation
public struct SDKConfig: Sendable {
public let appKey: String
public let debug: Bool
public let autoRegisterPush: Bool
public init(
appKey: String,
debug: Bool = false,
autoRegisterPush: Bool = true
) {
self.appKey = appKey
self.debug = debug
self.autoRegisterPush = autoRegisterPush
}
}
public extension SDKConfig {
static func development(
appKey: String,
debug: Bool = false,
autoRegisterPush: Bool = true
) -> SDKConfig {
SDKConfig(
appKey: appKey,
debug: debug,
autoRegisterPush: autoRegisterPush
)
}
}
extension SDKConfig {
}
public enum SDKEndpoints {
public static let apiBaseURL = URL(string: "https://dev.xuqinmin.com")!
public static let imWebSocketURL = URL(string: "wss://dev.xuqinmin.com/ws/im")!
}