同步 Android 启动页到 iOS,并在冷启动期间静默恢复登录态。
新增 SplashView、SplashCoordinator 与 Launch Screen 资源,移除冷启动 Lottie;LoginView 加载 App 配置。同时将 token 存储迁移至 UserDefaults,并更新相关测试与文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
22
suixinkan/Features/Auth/Models/AppConfigModels.swift
Normal file
22
suixinkan/Features/Auth/Models/AppConfigModels.swift
Normal file
@ -0,0 +1,22 @@
|
||||
//
|
||||
// AppConfigModels.swift
|
||||
// suixinkan
|
||||
//
|
||||
// Created by Codex on 2026/6/29.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
/// App 远程配置响应,对齐 Android `AppConfigResponse`。
|
||||
struct AppConfigResponse: Decodable, Equatable {
|
||||
let enableRegister: Bool
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case enableRegister = "enable_register"
|
||||
}
|
||||
|
||||
/// 创建 App 配置响应,默认关闭注册入口。
|
||||
init(enableRegister: Bool = false) {
|
||||
self.enableRegister = enableRegister
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user