Files
duooomi-ios-sdk/DuooomiTest/Sources/DuooomiTestApp.swift
2026-04-08 15:41:46 +08:00

25 lines
658 B
Swift

import SwiftUI
import DuooomiBleSDK
class AppDelegate: ExpoBrownfieldAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
SDKManager.shared.initialize()
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
@main
struct DuooomiTestApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(SDKManager.shared)
}
}
}