ilabs-flir 2.2.20 → 2.2.21

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.
package/Flir.podspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'Flir'
3
- s.version = '2.0.0'
3
+ s.version = '2.2.21'
4
4
  s.summary = 'FLIR Thermal SDK React Native - Bundled via postinstall'
5
5
  s.description = <<-DESC
6
6
  A React Native wrapper for the FLIR Thermal SDK, providing thermal imaging
@@ -1,19 +1,22 @@
1
1
  // FlirPublic.h
2
2
  // Public C/ObjC API for the Flir library
3
+ //
4
+ // NOTE: FlirDeviceInfo and FlirManager are defined in FlirManager.swift.
5
+ // The Swift compiler generates Flir-Swift.h which exports these classes to Objective-C.
6
+ // Do NOT define duplicate @interface declarations here to avoid "Duplicate interface" errors.
3
7
 
4
8
  #import <Foundation/Foundation.h>
5
9
  #import <UIKit/UIKit.h>
6
10
 
7
11
  NS_ASSUME_NONNULL_BEGIN
8
12
 
9
- @interface FlirDeviceInfo : NSObject
10
- @property (nonatomic, readonly) NSString *deviceId;
11
- @property (nonatomic, readonly) NSString *name;
12
- @property (nonatomic, readonly) NSString *communicationType;
13
- @property (nonatomic, readonly) BOOL isEmulator;
14
- - (NSDictionary *)toDictionary;
15
- @end
13
+ // Forward declarations for Swift classes (defined in FlirManager.swift)
14
+ // Use the Flir-Swift.h import in implementation files to access these.
15
+ @class FlirDeviceInfo;
16
+ @class FlirManager;
16
17
 
18
+ /// Protocol for receiving FLIR events from FlirManager
19
+ /// Implemented by FlirModule.m to bridge events to React Native
17
20
  @protocol FlirPublicDelegate <NSObject>
18
21
  - (void)onDevicesFound:(NSArray<FlirDeviceInfo *> *)devices;
19
22
  - (void)onDeviceConnected:(FlirDeviceInfo *)device;
@@ -25,26 +28,5 @@ NS_ASSUME_NONNULL_BEGIN
25
28
  - (void)onStateChanged:(NSString *)state isConnected:(BOOL)isConnected isStreaming:(BOOL)isStreaming isEmulator:(BOOL)isEmulator;
26
29
  @end
27
30
 
28
- @interface FlirManager : NSObject
29
- + (instancetype)shared NS_SWIFT_NAME(shared);
30
-
31
- @property (nonatomic, weak, nullable) id<FlirPublicDelegate> delegate;
32
-
33
- // Lifecycle
34
- - (void)startDiscovery;
35
- - (void)stopDiscovery;
36
- - (void)connectToDevice:(NSString *)deviceId;
37
- - (void)disconnect;
38
- - (void)stop;
39
-
40
- // Frame accessors
41
- - (nullable NSDictionary *)latestFrameBitmapBase64; // { width, height, bytesPerRow, dataBase64 }
42
- - (nullable NSString *)latestFrameBase64;
43
-
44
- // Utilities
45
- - (NSInteger)getBatteryLevel;
46
- - (BOOL)isBatteryCharging;
47
-
48
- @end
49
-
50
31
  NS_ASSUME_NONNULL_END
32
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ilabs-flir",
3
- "version": "2.2.20",
3
+ "version": "2.2.21",
4
4
  "description": "FLIR Thermal SDK for React Native - iOS & Android (bundled at compile time via postinstall)",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",