27 行
641 B
Swift
27 行
641 B
Swift
|
|
import SwiftUI
|
||
|
|
import XuqmCoreSDK
|
||
|
|
import XuqmBugCollectSDK
|
||
|
|
|
||
|
|
@main
|
||
|
|
struct ShijiaobaoApp: App {
|
||
|
|
init() {
|
||
|
|
do {
|
||
|
|
try XuqmSDK.shared.autoInitialize(debug: _isDebugAssertConfiguration())
|
||
|
|
} catch {
|
||
|
|
// autoInitialize failed — BugCollect not available yet, print to console
|
||
|
|
print("[ShijiaobaoApp] XuqmSDK.autoInitialize failed: \(error)")
|
||
|
|
}
|
||
|
|
#if DEBUG
|
||
|
|
BugCollectSDK.shared.setLogLevel(.debug)
|
||
|
|
#else
|
||
|
|
BugCollectSDK.shared.setLogLevel(.warn)
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
var body: some Scene {
|
||
|
|
WindowGroup {
|
||
|
|
AppRootView()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|