ilabs-flir 2.1.33 → 2.1.35

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
@@ -33,6 +33,18 @@ Pod::Spec.new do |s|
33
33
 
34
34
  # React Native dependency
35
35
  s.dependency 'React-Core'
36
+
37
+ # Ensure React headers are available to this Pod across various RN/CocoaPods layouts
38
+ # (helps when headers are in different public/private/ReactCore locations or when using use_frameworks)
39
+ s.pod_target_xcconfig ||= {}
40
+ existing_hdrs = s.pod_target_xcconfig['HEADER_SEARCH_PATHS'] || '$(inherited)'
41
+ hdrs = [existing_hdrs,
42
+ '"${PODS_ROOT}/Headers/Public/React"',
43
+ '"${PODS_ROOT}/Headers/Public/React-Core"',
44
+ '"${PODS_ROOT}/Headers/Public/ReactCommon"',
45
+ '"${PODS_ROOT}/Headers/Public/React-CoreModules"']
46
+ s.pod_target_xcconfig['HEADER_SEARCH_PATHS'] = hdrs.join(' ')
47
+
36
48
 
37
49
  # ==========================================================================
38
50
  # FLIR SDK CONFIGURATION
@@ -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
 
@@ -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
 
@@ -5,7 +5,15 @@
5
5
  // React Native view manager for FLIR preview
6
6
  //
7
7
 
8
+ #if __has_include(<React/RCTViewManager.h>)
8
9
  #import <React/RCTViewManager.h>
10
+ #elif __has_include(<React/RCTUIManager.h>)
11
+ #import <React/RCTUIManager.h>
12
+ #else
13
+ #import <Foundation/Foundation.h>
14
+ @interface RCTViewManager : NSObject
15
+ @end
16
+ #endif
9
17
 
10
18
  NS_ASSUME_NONNULL_BEGIN
11
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ilabs-flir",
3
- "version": "2.1.33",
3
+ "version": "2.1.35",
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",