demo app + SDK updates:\n- Add direct ANI transfer (prepare -> transfer)\n- Add firmware update flow (fetch latest w/ x-api-key, OTA transfer)\n- Extract x-api-key to NetworkConstants\n- Rename example app to demo; move folder and entry to DemoApp\n- Switch from SPM package dependency to local framework target\n- Enable automatic Info.plist generation for framework target\n- Add placeholder test to satisfy SwiftPM test target\n- Regenerate XcodeGen project (demo.xcodeproj)
This commit is contained in:
28
Sources/DuooomiBleSDK/Utils/BleLogger.swift
Normal file
28
Sources/DuooomiBleSDK/Utils/BleLogger.swift
Normal file
@@ -0,0 +1,28 @@
|
||||
import Foundation
|
||||
|
||||
enum BleLog {
|
||||
static func d(_ message: @autoclosure () -> String, _ category: String = "General") {
|
||||
#if DEBUG
|
||||
print("[DuooomiBleSDK][\(category)] \(message())")
|
||||
#endif
|
||||
}
|
||||
|
||||
static func i(_ message: @autoclosure () -> String, _ category: String = "General") {
|
||||
#if DEBUG
|
||||
print("ℹ️ [DuooomiBleSDK][\(category)] \(message())")
|
||||
#endif
|
||||
}
|
||||
|
||||
static func w(_ message: @autoclosure () -> String, _ category: String = "General") {
|
||||
#if DEBUG
|
||||
print("⚠️ [DuooomiBleSDK][\(category)] \(message())")
|
||||
#endif
|
||||
}
|
||||
|
||||
static func e(_ message: @autoclosure () -> String, _ category: String = "General") {
|
||||
#if DEBUG
|
||||
print("❌ [DuooomiBleSDK][\(category)] \(message())")
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user