mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Vendor the standalone tgwatch watch-app sources into Telegram/WatchApp/ as a tracked snapshot and build it from there by default (tracked Bazel inputs). Make.py drives embedding via --embedWatchApp (--watchAppSourcePath removed); the filegroup excludes .swiftpm/.build. Documented in CLAUDE.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
701 B
Swift
27 lines
701 B
Swift
import Foundation
|
|
|
|
/// UI-facing authorization state. Decoupled from TDLibKit types so views never import TDLibKit.
|
|
enum AuthState: Equatable {
|
|
case starting
|
|
case waitTdlibParameters
|
|
case waitPhoneNumber
|
|
case waitCode(info: CodeInfo)
|
|
case waitOtherDeviceConfirmation(link: String)
|
|
case waitPassword(info: PasswordInfo)
|
|
case ready
|
|
case loggingOut
|
|
case closed
|
|
case failed(String)
|
|
}
|
|
|
|
struct PasswordInfo: Equatable {
|
|
/// Hint set when the password was created. Empty string means no hint.
|
|
let hint: String
|
|
let hasRecoveryEmail: Bool
|
|
}
|
|
|
|
struct CodeInfo: Equatable {
|
|
let phoneNumber: String
|
|
let codeLength: Int?
|
|
let typeDescription: String
|
|
}
|