@therealitycrafters/react-native-evskit 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +151 -2
  2. package/android/build.gradle +46 -0
  3. package/android/src/main/java/expo/modules/evskit/EvsKitModule.kt +380 -0
  4. package/app.plugin.js +7 -0
  5. package/build/EvsKit.types.d.ts +76 -0
  6. package/build/EvsKit.types.d.ts.map +1 -0
  7. package/build/EvsKit.types.js +10 -0
  8. package/build/EvsKit.types.js.map +1 -0
  9. package/build/EvsKitModule.d.ts +43 -0
  10. package/build/EvsKitModule.d.ts.map +1 -0
  11. package/build/EvsKitModule.js +3 -0
  12. package/build/EvsKitModule.js.map +1 -0
  13. package/build/index.d.ts +118 -0
  14. package/build/index.d.ts.map +1 -0
  15. package/build/index.js +146 -0
  16. package/build/index.js.map +1 -0
  17. package/expo-module.config.json +9 -0
  18. package/ios/EvsKit.xcframework/Info.plist +44 -0
  19. package/ios/EvsKit.xcframework/_CodeSignature/CodeDirectory +0 -0
  20. package/ios/EvsKit.xcframework/_CodeSignature/CodeRequirements +0 -0
  21. package/ios/EvsKit.xcframework/_CodeSignature/CodeResources +945 -0
  22. package/ios/EvsKit.xcframework/_CodeSignature/CodeSignature +0 -0
  23. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Assets.car +0 -0
  24. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/BitTableViewCell.nib +0 -0
  25. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/EvsGlassesNameTableViewCell.nib +0 -0
  26. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/EvsKit +0 -0
  27. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/EvsSliderTableViewCell.nib +0 -0
  28. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/EvsSwitchTableViewCell.nib +0 -0
  29. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Headers/EvsKit-Swift.h +390 -0
  30. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Headers/EvsKit.h +19 -0
  31. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Info.plist +0 -0
  32. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios.abi.json +13039 -0
  33. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios.private.swiftinterface +239 -0
  34. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  35. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios.swiftinterface +239 -0
  36. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/Modules/module.modulemap +11 -0
  37. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemInfoViewCell.nib +0 -0
  38. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/09f-ri-9sL-view-zGn-Zv-q7U.nib +0 -0
  39. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/8yY-DT-9Da-view-iUR-D7-FGu.nib +0 -0
  40. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/BbY-tb-eSR-view-4D3-sx-xbY.nib +0 -0
  41. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/GlassesOtaModalViewControllerIId.nib +0 -0
  42. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/GlassesSettingsModalViewControllerIId.nib +0 -0
  43. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/Info.plist +0 -0
  44. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/UIViewController-8yY-DT-9Da.nib +0 -0
  45. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/debugViewController.nib +0 -0
  46. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/glassesConfigureViewController.nib +0 -0
  47. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/jne-LB-b9D-view-ci7-nK-5Un.nib +0 -0
  48. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/kuB-So-Ae6-view-aJi-AM-lyl.nib +0 -0
  49. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/l9h-6a-xMo-view-vJS-2W-16K.nib +0 -0
  50. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/SystemUI.storyboardc/settingsViewController.nib +0 -0
  51. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/common_glasses_resources/battery_notification.png +0 -0
  52. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/common_glasses_resources/goodbye.png +0 -0
  53. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/common_glasses_resources/personal_adjust_default_final_result.png +0 -0
  54. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/evs_logo_green.png +0 -0
  55. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/ota/max32650.121.enc.bin +0 -0
  56. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/ota/ota_info.json +17 -0
  57. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/ota/stm32wb.color.121.enc.bin +0 -0
  58. package/ios/EvsKit.xcframework/ios-arm64/EvsKit.framework/ota_background_big.png +0 -0
  59. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Assets.car +0 -0
  60. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/BitTableViewCell.nib +0 -0
  61. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/EvsGlassesNameTableViewCell.nib +0 -0
  62. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/EvsKit +0 -0
  63. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/EvsSliderTableViewCell.nib +0 -0
  64. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/EvsSwitchTableViewCell.nib +0 -0
  65. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Headers/EvsKit-Swift.h +776 -0
  66. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Headers/EvsKit.h +19 -0
  67. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Info.plist +0 -0
  68. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios-simulator.abi.json +13039 -0
  69. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +239 -0
  70. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  71. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +239 -0
  72. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +13039 -0
  73. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +239 -0
  74. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  75. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/EvsKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +239 -0
  76. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/Modules/module.modulemap +11 -0
  77. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemInfoViewCell.nib +0 -0
  78. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/09f-ri-9sL-view-zGn-Zv-q7U.nib +0 -0
  79. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/8yY-DT-9Da-view-iUR-D7-FGu.nib +0 -0
  80. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/BbY-tb-eSR-view-4D3-sx-xbY.nib +0 -0
  81. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/GlassesOtaModalViewControllerIId.nib +0 -0
  82. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/GlassesSettingsModalViewControllerIId.nib +0 -0
  83. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/Info.plist +0 -0
  84. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/UIViewController-8yY-DT-9Da.nib +0 -0
  85. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/debugViewController.nib +0 -0
  86. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/glassesConfigureViewController.nib +0 -0
  87. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/jne-LB-b9D-view-ci7-nK-5Un.nib +0 -0
  88. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/kuB-So-Ae6-view-aJi-AM-lyl.nib +0 -0
  89. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/l9h-6a-xMo-view-vJS-2W-16K.nib +0 -0
  90. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/SystemUI.storyboardc/settingsViewController.nib +0 -0
  91. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/_CodeSignature/CodeResources +542 -0
  92. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/common_glasses_resources/battery_notification.png +0 -0
  93. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/common_glasses_resources/goodbye.png +0 -0
  94. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/common_glasses_resources/personal_adjust_default_final_result.png +0 -0
  95. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/evs_logo_green.png +0 -0
  96. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/ota/max32650.121.enc.bin +0 -0
  97. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/ota/ota_info.json +17 -0
  98. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/ota/stm32wb.color.121.enc.bin +0 -0
  99. package/ios/EvsKit.xcframework/ios-arm64_x86_64-simulator/EvsKit.framework/ota_background_big.png +0 -0
  100. package/ios/EvsKitModule.swift +321 -0
  101. package/ios/NativeEvsKit.xcframework/Info.plist +44 -0
  102. package/ios/NativeEvsKit.xcframework/_CodeSignature/CodeDirectory +0 -0
  103. package/ios/NativeEvsKit.xcframework/_CodeSignature/CodeRequirements +0 -0
  104. package/ios/NativeEvsKit.xcframework/_CodeSignature/CodeResources +186 -0
  105. package/ios/NativeEvsKit.xcframework/_CodeSignature/CodeSignature +0 -0
  106. package/ios/NativeEvsKit.xcframework/ios-arm64/NativeEvsKit.framework/Headers/NativeEvsKit.h +3634 -0
  107. package/ios/NativeEvsKit.xcframework/ios-arm64/NativeEvsKit.framework/Info.plist +35 -0
  108. package/ios/NativeEvsKit.xcframework/ios-arm64/NativeEvsKit.framework/Modules/module.modulemap +8 -0
  109. package/ios/NativeEvsKit.xcframework/ios-arm64/NativeEvsKit.framework/NativeEvsKit +0 -0
  110. package/ios/NativeEvsKit.xcframework/ios-arm64_x86_64-simulator/NativeEvsKit.framework/Headers/NativeEvsKit.h +3634 -0
  111. package/ios/NativeEvsKit.xcframework/ios-arm64_x86_64-simulator/NativeEvsKit.framework/Info.plist +31 -0
  112. package/ios/NativeEvsKit.xcframework/ios-arm64_x86_64-simulator/NativeEvsKit.framework/Modules/module.modulemap +8 -0
  113. package/ios/NativeEvsKit.xcframework/ios-arm64_x86_64-simulator/NativeEvsKit.framework/NativeEvsKit +0 -0
  114. package/ios/RNEvsKit.podspec +27 -0
  115. package/package.json +52 -4
  116. package/plugin/withEverysightBundleResources.js +110 -0
  117. package/plugin/withEverysightSPM.js +276 -0
  118. package/src/EvsKit.types.ts +122 -0
  119. package/src/EvsKitModule.ts +65 -0
  120. package/src/index.ts +172 -0
@@ -0,0 +1,239 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name EvsKit
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
+ import Combine
6
+ import CommonCrypto
7
+ import Compression
8
+ import CoreBluetooth
9
+ import CoreMedia
10
+ import CryptoKit
11
+ import DeveloperToolsSupport
12
+ @_exported import EvsKit
13
+ import Foundation
14
+ import NativeEvsKit
15
+ import Network
16
+ import ObjectiveC
17
+ import Security
18
+ import Swift
19
+ import SwiftUI
20
+ import UIKit
21
+ import _Concurrency
22
+ import _StringProcessing
23
+ import _SwiftConcurrencyShims
24
+ import os.log
25
+ import os
26
+ import ObjectiveC.runtime
27
+ import simd
28
+ import zlib
29
+ public protocol IBleScanListener : EvsKit.IBtAdapterStateListener {
30
+ func onScanStarted()
31
+ func onScanStopped()
32
+ func onScanFailed()
33
+ func onPeripheralFound(deviceUuid: Swift.String, localName: Swift.String, rssi: Foundation.NSNumber)
34
+ }
35
+ public protocol IBtAdapterStateListener {
36
+ func onBtStateChanged(state: CoreBluetooth.CBManagerState)
37
+ }
38
+ public typealias SliderHandler = (_ value: Swift.Float) -> Swift.Void
39
+ extension Swift.Int32 {
40
+ public func toUIColor() -> UIKit.UIColor
41
+ }
42
+ public let serviceCBUUID: CoreBluetooth.CBUUID
43
+ public let charNotifyCBUUID: CoreBluetooth.CBUUID
44
+ public let charControlCBUUID: CoreBluetooth.CBUUID
45
+ public let charPairingCBUUID: CoreBluetooth.CBUUID
46
+ extension Foundation.Date {
47
+ public func currentTimeMillis() -> Swift.Int64
48
+ }
49
+ extension Swift.String {
50
+ public func appendLineToURL(fileURL: Foundation.URL) throws
51
+ public func appendToURL(fileURL: Foundation.URL) throws
52
+ }
53
+ extension Foundation.Data {
54
+ public func append(fileURL: Foundation.URL) throws
55
+ }
56
+ extension Foundation.Data {
57
+ #if compiler(>=5.3) && $NonescapableTypes
58
+ public func toKotlinData() -> NativeEvsKit.KotlinByteArray?
59
+ #endif
60
+ }
61
+ extension Foundation.URL {
62
+ #if compiler(>=5.3) && $NonescapableTypes
63
+ public var attributes: [Foundation.FileAttributeKey : Any]? {
64
+ get
65
+ }
66
+ #endif
67
+ public var fileSize: Swift.UInt64 {
68
+ get
69
+ }
70
+ public var fileSizeString: Swift.String {
71
+ get
72
+ }
73
+ #if compiler(>=5.3) && $NonescapableTypes
74
+ public var creationDate: Foundation.Date? {
75
+ get
76
+ }
77
+ #endif
78
+ }
79
+ extension Foundation.Bundle {
80
+ public static func getVersion() -> Swift.String
81
+ }
82
+ @_hasMissingDesignatedInitializers public class Evs {
83
+ public static func instance() -> NativeEvsKit.IEvsApp
84
+ public static func initOptions(options: [Swift.String : Swift.String]) throws
85
+ public static func startDefaultLogger()
86
+ public static func stopDefaultLogger()
87
+ #if compiler(>=5.3) && $NonescapableTypes
88
+ public static func setLogger(logger: (any NativeEvsKit.IEvsLogger)?)
89
+ #endif
90
+ #if compiler(>=5.3) && $NonescapableTypes
91
+ public static func getLogger() -> (any NativeEvsKit.IEvsLogger)?
92
+ #endif
93
+ @objc deinit
94
+ }
95
+ @objc open class BLEPeripheral : ObjectiveC.NSObject, NativeEvsKit.IBleDevice, EvsKit.IBtAdapterStateListener {
96
+ public var last_RSSI: Swift.Int
97
+ @objc public var enableAutoConnect: Swift.Bool
98
+ public init(sensorsManager: EvsKit.EvsSensorsManager, peripheral: CoreBluetooth.CBPeripheral)
99
+ #if compiler(>=5.3) && $NonescapableTypes
100
+ public init(sensorsManager: EvsKit.EvsSensorsManager, idOrAddress: Swift.String?)
101
+ #endif
102
+ @objc public func setDeviceInfo(id: Swift.String, name: Swift.String)
103
+ public func onBtStateChanged(state: CoreBluetooth.CBManagerState)
104
+ @objc public func name() -> Swift.String
105
+ @objc public func sendNow(serviceUUID: Swift.String, charaUUID: Swift.String, data: NativeEvsKit.KotlinByteArray) -> Swift.Bool
106
+ @objc public func registerNotify(serviceUUID: Swift.String, charaUUID: Swift.String, listener: any NativeEvsKit.IEvsCommunicationChannelListener)
107
+ @objc public func registerEvents(listener: any NativeEvsKit.IEvsCommunicationChannelListener) -> Swift.Int32
108
+ @objc public func unregisterEvents(withId: Swift.Int32)
109
+ @objc public func unregisterNotify(serviceUUID: Swift.String, charaUUID: Swift.String, listener: any NativeEvsKit.IEvsCommunicationChannelListener)
110
+ public func clearNotifications()
111
+ @objc public func hasConsumers() -> Swift.Bool
112
+ @objc public func connect() -> Swift.Bool
113
+ @objc public func connectSecured() -> Swift.Bool
114
+ @objc public func disconnect() -> Swift.Bool
115
+ @objc public func getMtuSize() -> Swift.Int32
116
+ @objc public func isAdapterEnabled() -> Swift.Bool
117
+ @objc public func isConnected() -> Swift.Bool
118
+ @objc public func isConnecting() -> Swift.Bool
119
+ @objc public func requestBatteryRead(callback: @escaping (NativeEvsKit.KotlinInt) -> Swift.Void) -> Swift.Bool
120
+ @objc public func requestRssiRead(callback: @escaping (NativeEvsKit.KotlinInt) -> Swift.Void) -> Swift.Bool
121
+ public func onRegisterNotificationCompleted(_ characteristic: CoreBluetooth.CBCharacteristic)
122
+ public func onUnregisterNotificationCompleted(_ characteristic: CoreBluetooth.CBCharacteristic)
123
+ public func onRegisterNotificationFailed(_ characteristic: CoreBluetooth.CBCharacteristic)
124
+ public func onRegisterNotificationCompleted()
125
+ public func onDeviceFailedToConnect()
126
+ public func onDeviceConnected()
127
+ public func onDeviceDisconnected()
128
+ open func onNewValue(_ data: Foundation.Data, _ characteristic: CoreBluetooth.CBCharacteristic)
129
+ @objc deinit
130
+ }
131
+ extension EvsKit.BLEPeripheral : CoreBluetooth.CBPeripheralDelegate {
132
+ @objc dynamic public func peripheralIsReady(toSendWriteWithoutResponse peripheral: CoreBluetooth.CBPeripheral)
133
+ #if compiler(>=5.3) && $NonescapableTypes
134
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didDiscoverServices error: (any Swift.Error)?)
135
+ #endif
136
+ #if compiler(>=5.3) && $NonescapableTypes
137
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didDiscoverCharacteristicsFor service: CoreBluetooth.CBService, error: (any Swift.Error)?)
138
+ #endif
139
+ #if compiler(>=5.3) && $NonescapableTypes
140
+ @objc dynamic public func peripheralDidUpdateRSSI(_ peripheral: CoreBluetooth.CBPeripheral, error: (any Swift.Error)?)
141
+ #endif
142
+ #if compiler(>=5.3) && $NonescapableTypes
143
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didUpdateValueFor characteristic: CoreBluetooth.CBCharacteristic, error: (any Swift.Error)?)
144
+ #endif
145
+ #if compiler(>=5.3) && $NonescapableTypes
146
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didUpdateNotificationStateFor characteristic: CoreBluetooth.CBCharacteristic, error: (any Swift.Error)?)
147
+ #endif
148
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didModifyServices invalidatedServices: [CoreBluetooth.CBService])
149
+ }
150
+ @_Concurrency.MainActor @preconcurrency public struct BackgroundBlurBlackView : SwiftUI.UIViewRepresentable {
151
+ @_Concurrency.MainActor @preconcurrency public func makeUIView(context: EvsKit.BackgroundBlurBlackView.Context) -> UIKit.UIView
152
+ @_Concurrency.MainActor @preconcurrency public func updateUIView(_ uiView: UIKit.UIView, context: EvsKit.BackgroundBlurBlackView.Context)
153
+ public typealias Body = Swift.Never
154
+ public typealias Coordinator = Swift.Void
155
+ public typealias UIViewType = UIKit.UIView
156
+ }
157
+ @objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class EvsSystemLogger : ObjectiveC.NSObject, NativeEvsKit.IEvsSystemLogger {
158
+ public static let shared: EvsKit.EvsSystemLogger
159
+ public static func initSDKWithSystemLogger()
160
+ public static let LOGS_FOLDER: Foundation.URL
161
+ @objc public func terminate()
162
+ @objc public func isDebug() -> Swift.Bool
163
+ @objc public func setDebugMode(isDebug: Swift.Bool)
164
+ #if compiler(>=5.3) && $NonescapableTypes
165
+ @objc public func doInit(type: Swift.String, headers: NativeEvsKit.KotlinArray<Foundation.NSString>) -> (any NativeEvsKit.IEvsLogger)?
166
+ #endif
167
+ #if compiler(>=5.3) && $NonescapableTypes
168
+ public func doInit(type: Swift.String, headers: [Swift.String], showInConsole: Swift.Bool = false) -> (any NativeEvsKit.IEvsLogger)?
169
+ #endif
170
+ #if compiler(>=5.3) && $NonescapableTypes
171
+ @objc public func logger(type: Swift.String) -> (any NativeEvsKit.IEvsLogger)?
172
+ #endif
173
+ @objc deinit
174
+ }
175
+ @objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class EvsSensorsManager : ObjectiveC.NSObject {
176
+ public static let shared: EvsKit.EvsSensorsManager
177
+ public var TAG: Swift.String
178
+ public var HR_SERVICE: Swift.String
179
+ public var POWER_SERVICE: Swift.String
180
+ public var CADENCE_SPEED_SERVICE: Swift.String
181
+ public var CADENCE_SERVICE: Swift.String
182
+ public var SPEED_SERVICE: Swift.String
183
+ public var CONTROLLER_EVS_SERVICE: Swift.String
184
+ public var CONTROLLER_SENA_SERVICE: Swift.String
185
+ public var TREK_RADAR_SERVICE: Swift.String
186
+ public var GARMIN_RADAR_SERVICE: Swift.String
187
+ public var btPowerState: CoreBluetooth.CBManagerState
188
+ public func isAdapterOn() -> Swift.Bool
189
+ #if compiler(>=5.3) && $NonescapableTypes
190
+ public func retrievePeripherals(idOrAddress: Swift.String) -> CoreBluetooth.CBPeripheral?
191
+ #endif
192
+ public func connectedDevice(device: EvsKit.BLEPeripheral) -> Swift.Bool
193
+ public func disconnectDevice(device: EvsKit.BLEPeripheral) -> Swift.Bool
194
+ public func addScanListener(_ listener: any EvsKit.IBleScanListener) -> Swift.Int
195
+ public func removeScanListener(listenerId: Swift.Int)
196
+ public func addBtAdapterStateListener(_ listener: any EvsKit.IBtAdapterStateListener) -> Swift.Int
197
+ public func removeBtAdapterStateListener(listenerId: Swift.Int)
198
+ public func isScanning() -> Swift.Bool
199
+ #if compiler(>=5.3) && $NonescapableTypes
200
+ public func scan(service: Swift.String?)
201
+ #endif
202
+ public func stopScan()
203
+ @objc deinit
204
+ }
205
+ extension EvsKit.EvsSensorsManager : CoreBluetooth.CBCentralManagerDelegate {
206
+ @objc dynamic public func centralManagerDidUpdateState(_ central: CoreBluetooth.CBCentralManager)
207
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didDiscover peripheral: CoreBluetooth.CBPeripheral, advertisementData: [Swift.String : Any], rssi RSSI: Foundation.NSNumber)
208
+ #if compiler(>=5.3) && $NonescapableTypes
209
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didFailToConnect peripheral: CoreBluetooth.CBPeripheral, error: (any Swift.Error)?)
210
+ #endif
211
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didConnect peripheral: CoreBluetooth.CBPeripheral)
212
+ #if compiler(>=5.3) && $NonescapableTypes
213
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didDisconnectPeripheral peripheral: CoreBluetooth.CBPeripheral, error: (any Swift.Error)?)
214
+ #endif
215
+ }
216
+ public enum OtaState {
217
+ case none, uploading, installing, completed, failed
218
+ public static func == (a: EvsKit.OtaState, b: EvsKit.OtaState) -> Swift.Bool
219
+ public func hash(into hasher: inout Swift.Hasher)
220
+ public var hashValue: Swift.Int {
221
+ get
222
+ }
223
+ }
224
+ public struct LinkedListIndex<T> : Swift.Comparable {
225
+ public static func == <T>(lhs: EvsKit.LinkedListIndex<T>, rhs: EvsKit.LinkedListIndex<T>) -> Swift.Bool
226
+ public static func < <T>(lhs: EvsKit.LinkedListIndex<T>, rhs: EvsKit.LinkedListIndex<T>) -> Swift.Bool
227
+ }
228
+ @_Concurrency.MainActor @preconcurrency public struct GlassesInfoView : SwiftUICore.View {
229
+ @_Concurrency.MainActor @preconcurrency public init(adjustConfigurations: Swift.String = "")
230
+ @_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
231
+ get
232
+ }
233
+ public typealias Body = @_opaqueReturnTypeOf("$s6EvsKit15GlassesInfoViewV4bodyQrvp", 0) __
234
+ }
235
+ public typealias SwHandler = (_ state: Swift.Bool) -> Swift.Void
236
+ extension EvsKit.BackgroundBlurBlackView : Swift.Sendable {}
237
+ extension EvsKit.OtaState : Swift.Equatable {}
238
+ extension EvsKit.OtaState : Swift.Hashable {}
239
+ extension EvsKit.GlassesInfoView : Swift.Sendable {}
@@ -0,0 +1,239 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
3
+ // swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name EvsKit
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
5
+ import Combine
6
+ import CommonCrypto
7
+ import Compression
8
+ import CoreBluetooth
9
+ import CoreMedia
10
+ import CryptoKit
11
+ import DeveloperToolsSupport
12
+ @_exported import EvsKit
13
+ import Foundation
14
+ import NativeEvsKit
15
+ import Network
16
+ import ObjectiveC
17
+ import Security
18
+ import Swift
19
+ import SwiftUI
20
+ import UIKit
21
+ import _Concurrency
22
+ import _StringProcessing
23
+ import _SwiftConcurrencyShims
24
+ import os.log
25
+ import os
26
+ import ObjectiveC.runtime
27
+ import simd
28
+ import zlib
29
+ public protocol IBleScanListener : EvsKit.IBtAdapterStateListener {
30
+ func onScanStarted()
31
+ func onScanStopped()
32
+ func onScanFailed()
33
+ func onPeripheralFound(deviceUuid: Swift.String, localName: Swift.String, rssi: Foundation.NSNumber)
34
+ }
35
+ public protocol IBtAdapterStateListener {
36
+ func onBtStateChanged(state: CoreBluetooth.CBManagerState)
37
+ }
38
+ public typealias SliderHandler = (_ value: Swift.Float) -> Swift.Void
39
+ extension Swift.Int32 {
40
+ public func toUIColor() -> UIKit.UIColor
41
+ }
42
+ public let serviceCBUUID: CoreBluetooth.CBUUID
43
+ public let charNotifyCBUUID: CoreBluetooth.CBUUID
44
+ public let charControlCBUUID: CoreBluetooth.CBUUID
45
+ public let charPairingCBUUID: CoreBluetooth.CBUUID
46
+ extension Foundation.Date {
47
+ public func currentTimeMillis() -> Swift.Int64
48
+ }
49
+ extension Swift.String {
50
+ public func appendLineToURL(fileURL: Foundation.URL) throws
51
+ public func appendToURL(fileURL: Foundation.URL) throws
52
+ }
53
+ extension Foundation.Data {
54
+ public func append(fileURL: Foundation.URL) throws
55
+ }
56
+ extension Foundation.Data {
57
+ #if compiler(>=5.3) && $NonescapableTypes
58
+ public func toKotlinData() -> NativeEvsKit.KotlinByteArray?
59
+ #endif
60
+ }
61
+ extension Foundation.URL {
62
+ #if compiler(>=5.3) && $NonescapableTypes
63
+ public var attributes: [Foundation.FileAttributeKey : Any]? {
64
+ get
65
+ }
66
+ #endif
67
+ public var fileSize: Swift.UInt64 {
68
+ get
69
+ }
70
+ public var fileSizeString: Swift.String {
71
+ get
72
+ }
73
+ #if compiler(>=5.3) && $NonescapableTypes
74
+ public var creationDate: Foundation.Date? {
75
+ get
76
+ }
77
+ #endif
78
+ }
79
+ extension Foundation.Bundle {
80
+ public static func getVersion() -> Swift.String
81
+ }
82
+ @_hasMissingDesignatedInitializers public class Evs {
83
+ public static func instance() -> NativeEvsKit.IEvsApp
84
+ public static func initOptions(options: [Swift.String : Swift.String]) throws
85
+ public static func startDefaultLogger()
86
+ public static func stopDefaultLogger()
87
+ #if compiler(>=5.3) && $NonescapableTypes
88
+ public static func setLogger(logger: (any NativeEvsKit.IEvsLogger)?)
89
+ #endif
90
+ #if compiler(>=5.3) && $NonescapableTypes
91
+ public static func getLogger() -> (any NativeEvsKit.IEvsLogger)?
92
+ #endif
93
+ @objc deinit
94
+ }
95
+ @objc open class BLEPeripheral : ObjectiveC.NSObject, NativeEvsKit.IBleDevice, EvsKit.IBtAdapterStateListener {
96
+ public var last_RSSI: Swift.Int
97
+ @objc public var enableAutoConnect: Swift.Bool
98
+ public init(sensorsManager: EvsKit.EvsSensorsManager, peripheral: CoreBluetooth.CBPeripheral)
99
+ #if compiler(>=5.3) && $NonescapableTypes
100
+ public init(sensorsManager: EvsKit.EvsSensorsManager, idOrAddress: Swift.String?)
101
+ #endif
102
+ @objc public func setDeviceInfo(id: Swift.String, name: Swift.String)
103
+ public func onBtStateChanged(state: CoreBluetooth.CBManagerState)
104
+ @objc public func name() -> Swift.String
105
+ @objc public func sendNow(serviceUUID: Swift.String, charaUUID: Swift.String, data: NativeEvsKit.KotlinByteArray) -> Swift.Bool
106
+ @objc public func registerNotify(serviceUUID: Swift.String, charaUUID: Swift.String, listener: any NativeEvsKit.IEvsCommunicationChannelListener)
107
+ @objc public func registerEvents(listener: any NativeEvsKit.IEvsCommunicationChannelListener) -> Swift.Int32
108
+ @objc public func unregisterEvents(withId: Swift.Int32)
109
+ @objc public func unregisterNotify(serviceUUID: Swift.String, charaUUID: Swift.String, listener: any NativeEvsKit.IEvsCommunicationChannelListener)
110
+ public func clearNotifications()
111
+ @objc public func hasConsumers() -> Swift.Bool
112
+ @objc public func connect() -> Swift.Bool
113
+ @objc public func connectSecured() -> Swift.Bool
114
+ @objc public func disconnect() -> Swift.Bool
115
+ @objc public func getMtuSize() -> Swift.Int32
116
+ @objc public func isAdapterEnabled() -> Swift.Bool
117
+ @objc public func isConnected() -> Swift.Bool
118
+ @objc public func isConnecting() -> Swift.Bool
119
+ @objc public func requestBatteryRead(callback: @escaping (NativeEvsKit.KotlinInt) -> Swift.Void) -> Swift.Bool
120
+ @objc public func requestRssiRead(callback: @escaping (NativeEvsKit.KotlinInt) -> Swift.Void) -> Swift.Bool
121
+ public func onRegisterNotificationCompleted(_ characteristic: CoreBluetooth.CBCharacteristic)
122
+ public func onUnregisterNotificationCompleted(_ characteristic: CoreBluetooth.CBCharacteristic)
123
+ public func onRegisterNotificationFailed(_ characteristic: CoreBluetooth.CBCharacteristic)
124
+ public func onRegisterNotificationCompleted()
125
+ public func onDeviceFailedToConnect()
126
+ public func onDeviceConnected()
127
+ public func onDeviceDisconnected()
128
+ open func onNewValue(_ data: Foundation.Data, _ characteristic: CoreBluetooth.CBCharacteristic)
129
+ @objc deinit
130
+ }
131
+ extension EvsKit.BLEPeripheral : CoreBluetooth.CBPeripheralDelegate {
132
+ @objc dynamic public func peripheralIsReady(toSendWriteWithoutResponse peripheral: CoreBluetooth.CBPeripheral)
133
+ #if compiler(>=5.3) && $NonescapableTypes
134
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didDiscoverServices error: (any Swift.Error)?)
135
+ #endif
136
+ #if compiler(>=5.3) && $NonescapableTypes
137
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didDiscoverCharacteristicsFor service: CoreBluetooth.CBService, error: (any Swift.Error)?)
138
+ #endif
139
+ #if compiler(>=5.3) && $NonescapableTypes
140
+ @objc dynamic public func peripheralDidUpdateRSSI(_ peripheral: CoreBluetooth.CBPeripheral, error: (any Swift.Error)?)
141
+ #endif
142
+ #if compiler(>=5.3) && $NonescapableTypes
143
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didUpdateValueFor characteristic: CoreBluetooth.CBCharacteristic, error: (any Swift.Error)?)
144
+ #endif
145
+ #if compiler(>=5.3) && $NonescapableTypes
146
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didUpdateNotificationStateFor characteristic: CoreBluetooth.CBCharacteristic, error: (any Swift.Error)?)
147
+ #endif
148
+ @objc dynamic public func peripheral(_ peripheral: CoreBluetooth.CBPeripheral, didModifyServices invalidatedServices: [CoreBluetooth.CBService])
149
+ }
150
+ @_Concurrency.MainActor @preconcurrency public struct BackgroundBlurBlackView : SwiftUI.UIViewRepresentable {
151
+ @_Concurrency.MainActor @preconcurrency public func makeUIView(context: EvsKit.BackgroundBlurBlackView.Context) -> UIKit.UIView
152
+ @_Concurrency.MainActor @preconcurrency public func updateUIView(_ uiView: UIKit.UIView, context: EvsKit.BackgroundBlurBlackView.Context)
153
+ public typealias Body = Swift.Never
154
+ public typealias Coordinator = Swift.Void
155
+ public typealias UIViewType = UIKit.UIView
156
+ }
157
+ @objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class EvsSystemLogger : ObjectiveC.NSObject, NativeEvsKit.IEvsSystemLogger {
158
+ public static let shared: EvsKit.EvsSystemLogger
159
+ public static func initSDKWithSystemLogger()
160
+ public static let LOGS_FOLDER: Foundation.URL
161
+ @objc public func terminate()
162
+ @objc public func isDebug() -> Swift.Bool
163
+ @objc public func setDebugMode(isDebug: Swift.Bool)
164
+ #if compiler(>=5.3) && $NonescapableTypes
165
+ @objc public func doInit(type: Swift.String, headers: NativeEvsKit.KotlinArray<Foundation.NSString>) -> (any NativeEvsKit.IEvsLogger)?
166
+ #endif
167
+ #if compiler(>=5.3) && $NonescapableTypes
168
+ public func doInit(type: Swift.String, headers: [Swift.String], showInConsole: Swift.Bool = false) -> (any NativeEvsKit.IEvsLogger)?
169
+ #endif
170
+ #if compiler(>=5.3) && $NonescapableTypes
171
+ @objc public func logger(type: Swift.String) -> (any NativeEvsKit.IEvsLogger)?
172
+ #endif
173
+ @objc deinit
174
+ }
175
+ @objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class EvsSensorsManager : ObjectiveC.NSObject {
176
+ public static let shared: EvsKit.EvsSensorsManager
177
+ public var TAG: Swift.String
178
+ public var HR_SERVICE: Swift.String
179
+ public var POWER_SERVICE: Swift.String
180
+ public var CADENCE_SPEED_SERVICE: Swift.String
181
+ public var CADENCE_SERVICE: Swift.String
182
+ public var SPEED_SERVICE: Swift.String
183
+ public var CONTROLLER_EVS_SERVICE: Swift.String
184
+ public var CONTROLLER_SENA_SERVICE: Swift.String
185
+ public var TREK_RADAR_SERVICE: Swift.String
186
+ public var GARMIN_RADAR_SERVICE: Swift.String
187
+ public var btPowerState: CoreBluetooth.CBManagerState
188
+ public func isAdapterOn() -> Swift.Bool
189
+ #if compiler(>=5.3) && $NonescapableTypes
190
+ public func retrievePeripherals(idOrAddress: Swift.String) -> CoreBluetooth.CBPeripheral?
191
+ #endif
192
+ public func connectedDevice(device: EvsKit.BLEPeripheral) -> Swift.Bool
193
+ public func disconnectDevice(device: EvsKit.BLEPeripheral) -> Swift.Bool
194
+ public func addScanListener(_ listener: any EvsKit.IBleScanListener) -> Swift.Int
195
+ public func removeScanListener(listenerId: Swift.Int)
196
+ public func addBtAdapterStateListener(_ listener: any EvsKit.IBtAdapterStateListener) -> Swift.Int
197
+ public func removeBtAdapterStateListener(listenerId: Swift.Int)
198
+ public func isScanning() -> Swift.Bool
199
+ #if compiler(>=5.3) && $NonescapableTypes
200
+ public func scan(service: Swift.String?)
201
+ #endif
202
+ public func stopScan()
203
+ @objc deinit
204
+ }
205
+ extension EvsKit.EvsSensorsManager : CoreBluetooth.CBCentralManagerDelegate {
206
+ @objc dynamic public func centralManagerDidUpdateState(_ central: CoreBluetooth.CBCentralManager)
207
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didDiscover peripheral: CoreBluetooth.CBPeripheral, advertisementData: [Swift.String : Any], rssi RSSI: Foundation.NSNumber)
208
+ #if compiler(>=5.3) && $NonescapableTypes
209
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didFailToConnect peripheral: CoreBluetooth.CBPeripheral, error: (any Swift.Error)?)
210
+ #endif
211
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didConnect peripheral: CoreBluetooth.CBPeripheral)
212
+ #if compiler(>=5.3) && $NonescapableTypes
213
+ @objc dynamic public func centralManager(_ central: CoreBluetooth.CBCentralManager, didDisconnectPeripheral peripheral: CoreBluetooth.CBPeripheral, error: (any Swift.Error)?)
214
+ #endif
215
+ }
216
+ public enum OtaState {
217
+ case none, uploading, installing, completed, failed
218
+ public static func == (a: EvsKit.OtaState, b: EvsKit.OtaState) -> Swift.Bool
219
+ public func hash(into hasher: inout Swift.Hasher)
220
+ public var hashValue: Swift.Int {
221
+ get
222
+ }
223
+ }
224
+ public struct LinkedListIndex<T> : Swift.Comparable {
225
+ public static func == <T>(lhs: EvsKit.LinkedListIndex<T>, rhs: EvsKit.LinkedListIndex<T>) -> Swift.Bool
226
+ public static func < <T>(lhs: EvsKit.LinkedListIndex<T>, rhs: EvsKit.LinkedListIndex<T>) -> Swift.Bool
227
+ }
228
+ @_Concurrency.MainActor @preconcurrency public struct GlassesInfoView : SwiftUICore.View {
229
+ @_Concurrency.MainActor @preconcurrency public init(adjustConfigurations: Swift.String = "")
230
+ @_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
231
+ get
232
+ }
233
+ public typealias Body = @_opaqueReturnTypeOf("$s6EvsKit15GlassesInfoViewV4bodyQrvp", 0) __
234
+ }
235
+ public typealias SwHandler = (_ state: Swift.Bool) -> Swift.Void
236
+ extension EvsKit.BackgroundBlurBlackView : Swift.Sendable {}
237
+ extension EvsKit.OtaState : Swift.Equatable {}
238
+ extension EvsKit.OtaState : Swift.Hashable {}
239
+ extension EvsKit.GlassesInfoView : Swift.Sendable {}
@@ -0,0 +1,11 @@
1
+ framework module EvsKit {
2
+ umbrella header "EvsKit.h"
3
+ export *
4
+
5
+ module * { export * }
6
+ }
7
+
8
+ module EvsKit.Swift {
9
+ header "EvsKit-Swift.h"
10
+ requires objc
11
+ }
@@ -0,0 +1,17 @@
1
+ [
2
+ {
3
+ "version": 121,
4
+ "releaseDate": "17.02.2024",
5
+ "required": false,
6
+ "formal": true,
7
+ "description": "Formal 121",
8
+ "cpu": {
9
+ "fileNameSt": "stm32wb.color.121.enc",
10
+ "fileNameMaxim": "max32650.121.enc"
11
+ },
12
+ "ble": {
13
+ "versionBle" : 0,
14
+ "fileNameBle": ""
15
+ }
16
+ }
17
+ ]