Advance UIKit rewrite with AMap integration and core UI modules.
Integrate高德 SDK with simulator-safe build flags, add map views for operating area and punch points, refactor main tabs and key feature screens to UIKit with Diffable lists, and document Swift concurrency defaults in AGENTS.md. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -13,8 +13,9 @@ import AMapLocationKit
|
||||
import AMapSearchKit
|
||||
import MAMapKit
|
||||
|
||||
/// 高德地图 SDK 初始化封装,真机构建时配置 Key 与隐私合规。
|
||||
enum AMapBootstrap {
|
||||
/// 在 App 启动时调用一次。将 `apiKey` 替换为高德控制台申请的 Key。
|
||||
/// 在 App 启动时调用一次,配置 API Key 并声明隐私政策已展示与同意。
|
||||
static func configure(apiKey: String) {
|
||||
guard !apiKey.isEmpty else { return }
|
||||
|
||||
@ -30,7 +31,9 @@ enum AMapBootstrap {
|
||||
}
|
||||
}
|
||||
#else
|
||||
/// 模拟器构建占位,不链接高德 SDK。
|
||||
enum AMapBootstrap {
|
||||
/// 空实现,保持调用方编译通过。
|
||||
static func configure(apiKey: String) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user