feat: 更新项目配置和功能模块
- 修改Package.swift以支持iOS 15和macOS 12。 - 更新swift-tca-architecture-guidelines.mdc中的alwaysApply设置为false。 - 注释掉AppDelegate中的NIMSDK导入,移除不再使用的NIMConfigurationManager和NIMSessionManager文件。 - 添加新的API相关文件,包括EMailLoginFeature、IDLoginFeature和相关视图,增强登录功能。 - 更新APIConstants和APIEndpoints以反映新的API路径。 - 添加本地化支持文件,包含英文和中文简体的本地化字符串。 - 新增字体管理和安全工具类,支持AES和DES加密。 - 更新Xcode项目配置,调整版本号和启动画面设置。
This commit is contained in:
@@ -15,9 +15,22 @@ struct AppConfig {
|
||||
static var baseURL: String {
|
||||
switch current {
|
||||
case .development:
|
||||
// return "http://192.168.10.211:8080"
|
||||
return "http://beta.api.molistar.xyz"
|
||||
case .production:
|
||||
return "https://api.hfighting.com"
|
||||
return "https://api.epartylive.com"
|
||||
}
|
||||
}
|
||||
|
||||
/// Web页面路径前缀
|
||||
/// - development环境: "/molistar"
|
||||
/// - production环境: "/eparty"
|
||||
static var webPathPrefix: String {
|
||||
switch current {
|
||||
case .development:
|
||||
return "/molistar"
|
||||
case .production:
|
||||
return "/eparty"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,29 +47,32 @@ struct AppConfig {
|
||||
current = env
|
||||
}
|
||||
|
||||
// 添加调试配置
|
||||
// 网络调试配置
|
||||
static var enableNetworkDebug: Bool {
|
||||
#if DEBUG
|
||||
return true
|
||||
#else
|
||||
return false
|
||||
#endif
|
||||
switch current {
|
||||
case .development:
|
||||
return true
|
||||
case .production:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// 添加服务器信任配置
|
||||
// 服务器信任配置
|
||||
static var serverTrustPolicies: [String: ServerTrustEvaluating] {
|
||||
#if DEBUG
|
||||
return ["beta.api.molistar.xyz": DisabledTrustEvaluator()]
|
||||
#else
|
||||
return ["api.hfighting.com": PublicKeysTrustEvaluator()]
|
||||
#endif
|
||||
switch current {
|
||||
case .development:
|
||||
return ["beta.api.molistar.xyz": DisabledTrustEvaluator()]
|
||||
case .production:
|
||||
return ["api.epartylive.com": PublicKeysTrustEvaluator()]
|
||||
}
|
||||
}
|
||||
|
||||
static var networkDebugEnabled: Bool {
|
||||
#if DEBUG
|
||||
return true
|
||||
#else
|
||||
return false
|
||||
#endif
|
||||
switch current {
|
||||
case .development:
|
||||
return true
|
||||
case .production:
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user