로그아웃 SDK 대기 제거 · 온보딩 국가 시트 · 프로필 머리줄

This commit is contained in:
Sn-Kinos
2026-10-06 04:47:37 +09:00
parent 976e569a56
commit 40756d5c86
21 changed files with 277 additions and 43 deletions
+15
View File
@@ -12,5 +12,20 @@ import UIKit
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
// 국가 표시명 — 앱 언어로 OS 가 아는 이름을 OS 정렬 순서로 준다(Dart `loadCountryNames`). `[[코드, 이름], …]`.
guard let registrar = engineBridge.pluginRegistry.registrar(forPlugin: "FanuzuLocale") else { return }
FlutterMethodChannel(name: "kr.co.fanuzu.app/locale", binaryMessenger: registrar.messenger())
.setMethodCallHandler { call, result in
guard call.method == "countryNames" else {
result(FlutterMethodNotImplemented)
return
}
let tag = (call.arguments as? [String: Any])?["locale"] as? String ?? "ko"
let locale = Locale(identifier: tag)
let pairs: [[String]] = Locale.isoRegionCodes
.compactMap { code in locale.localizedString(forRegionCode: code).map { [code, $0] } }
.sorted { $0[1].compare($1[1], locale: locale) == .orderedAscending }
result(pairs)
}
}
}