ilabs-flir 2.1.32 → 2.1.34

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.
@@ -12,8 +12,22 @@
12
12
  // Note: React headers are provided by the app's build system
13
13
  // These imports are for documentation purposes when building within Xcode
14
14
  #if __has_include(<React/RCTBridgeModule.h>)
15
+ #if __has_include(<React/RCTBridgeModule.h>)
15
16
  #import <React/RCTBridgeModule.h>
16
17
  #import <React/RCTEventEmitter.h>
18
+ #elif __has_include(<ReactCore/RCTBridgeModule.h>)
19
+ #import <ReactCore/RCTBridgeModule.h>
20
+ #import <React/RCTEventEmitter.h>
21
+ #elif __has_include("RCTBridgeModule.h")
22
+ #import "RCTBridgeModule.h"
23
+ #import "RCTEventEmitter.h"
24
+ #else
25
+ #import <Foundation/Foundation.h>
26
+ @interface RCTEventEmitter : NSObject
27
+ @end
28
+ @protocol RCTBridgeModule <NSObject>
29
+ @end
30
+ #endif
17
31
  #import <React/RCTLog.h>
18
32
  #import <React/RCTViewManager.h>
19
33
  #endif
@@ -5,8 +5,22 @@
5
5
  // Event emitter for sending FLIR events to React Native
6
6
  //
7
7
 
8
+ #if __has_include(<React/RCTBridgeModule.h>)
8
9
  #import <React/RCTBridgeModule.h>
9
10
  #import <React/RCTEventEmitter.h>
11
+ #elif __has_include(<ReactCore/RCTBridgeModule.h>)
12
+ #import <ReactCore/RCTBridgeModule.h>
13
+ #import <React/RCTEventEmitter.h>
14
+ #elif __has_include("RCTBridgeModule.h")
15
+ #import "RCTBridgeModule.h"
16
+ #import "RCTEventEmitter.h"
17
+ #else
18
+ #import <Foundation/Foundation.h>
19
+ @interface RCTEventEmitter : NSObject
20
+ @end
21
+ @protocol RCTBridgeModule <NSObject>
22
+ @end
23
+ #endif
10
24
 
11
25
  NS_ASSUME_NONNULL_BEGIN
12
26
 
@@ -819,6 +819,9 @@ extension FlirManager: FLIRStreamDelegate {
819
819
  if let image = streamer.getImage() {
820
820
  _latestImage = image
821
821
 
822
+ // Update shared state for native preview
823
+ FlirState.shared().updateFrame(image)
824
+
822
825
  // Get temperature from thermal image (use runtime selectors to be resilient across SDK versions)
823
826
  streamer.withThermalImage { [weak self] thermalImage in
824
827
  var tempVal: Double = Double.nan
@@ -836,6 +839,7 @@ extension FlirManager: FLIRStreamDelegate {
836
839
  }
837
840
  if !tempVal.isNaN {
838
841
  self?.lastTemperature = tempVal
842
+ FlirState.shared().lastTemperature = tempVal
839
843
  }
840
844
  }
841
845
 
@@ -5,8 +5,22 @@
5
5
  // React Native bridge module for FLIR thermal camera SDK
6
6
  //
7
7
 
8
+ #if __has_include(<React/RCTBridgeModule.h>)
8
9
  #import <React/RCTBridgeModule.h>
9
10
  #import <React/RCTEventEmitter.h>
11
+ #elif __has_include(<ReactCore/RCTBridgeModule.h>)
12
+ #import <ReactCore/RCTBridgeModule.h>
13
+ #import <React/RCTEventEmitter.h>
14
+ #elif __has_include("RCTBridgeModule.h")
15
+ #import "RCTBridgeModule.h"
16
+ #import "RCTEventEmitter.h"
17
+ #else
18
+ #import <Foundation/Foundation.h>
19
+ @interface RCTEventEmitter : NSObject
20
+ @end
21
+ @protocol RCTBridgeModule <NSObject>
22
+ @end
23
+ #endif
10
24
 
11
25
  NS_ASSUME_NONNULL_BEGIN
12
26