ilabs-flir 2.0.4 → 2.0.6
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 +139 -139
- package/README.md +1066 -1066
- package/android/Flir/build.gradle.kts +72 -72
- package/android/Flir/src/main/AndroidManifest.xml +45 -45
- package/android/Flir/src/main/java/flir/android/FlirCommands.java +136 -136
- package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
- package/android/Flir/src/main/java/flir/android/FlirManager.kt +476 -476
- package/android/Flir/src/main/java/flir/android/FlirModule.kt +257 -257
- package/android/Flir/src/main/java/flir/android/FlirPackage.kt +18 -18
- package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +74 -74
- package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +583 -583
- package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
- package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
- package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
- package/app.plugin.js +381 -381
- package/expo-module.config.json +5 -5
- package/ios/Flir/src/Flir-Bridging-Header.h +34 -34
- package/ios/Flir/src/FlirEventEmitter.h +25 -25
- package/ios/Flir/src/FlirEventEmitter.m +63 -63
- package/ios/Flir/src/FlirManager.swift +599 -599
- package/ios/Flir/src/FlirModule.h +17 -17
- package/ios/Flir/src/FlirModule.m +713 -713
- package/ios/Flir/src/FlirPreviewView.h +13 -13
- package/ios/Flir/src/FlirPreviewView.m +171 -171
- package/ios/Flir/src/FlirState.h +68 -68
- package/ios/Flir/src/FlirState.m +135 -135
- package/ios/Flir/src/FlirViewManager.h +16 -16
- package/ios/Flir/src/FlirViewManager.m +27 -27
- package/package.json +70 -71
- package/react-native.config.js +14 -14
- package/scripts/fetch-binaries.js +103 -17
- package/sdk-manifest.json +50 -50
- package/src/index.d.ts +63 -63
- package/src/index.js +7 -7
- package/src/index.ts +6 -6
package/expo-module.config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"platforms": [
|
|
3
|
-
"android",
|
|
4
|
-
"ios"
|
|
5
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"platforms": [
|
|
3
|
+
"android",
|
|
4
|
+
"ios"
|
|
5
|
+
]
|
|
6
6
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Flir-Bridging-Header.h
|
|
3
|
-
// Flir
|
|
4
|
-
//
|
|
5
|
-
// Bridging header for Swift/Objective-C interoperability
|
|
6
|
-
// Note: This header is used when building the package as part of an app
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef Flir_Bridging_Header_h
|
|
10
|
-
#define Flir_Bridging_Header_h
|
|
11
|
-
|
|
12
|
-
// Note: React headers are provided by the app's build system
|
|
13
|
-
// These imports are for documentation purposes when building within Xcode
|
|
14
|
-
#if __has_include(<React/RCTBridgeModule.h>)
|
|
15
|
-
#import <React/RCTBridgeModule.h>
|
|
16
|
-
#import <React/RCTEventEmitter.h>
|
|
17
|
-
#import <React/RCTLog.h>
|
|
18
|
-
#import <React/RCTViewManager.h>
|
|
19
|
-
#endif
|
|
20
|
-
|
|
21
|
-
// FLIR module headers (local)
|
|
22
|
-
#import "FlirEventEmitter.h"
|
|
23
|
-
#import "FlirModule.h"
|
|
24
|
-
#import "FlirPreviewView.h"
|
|
25
|
-
#import "FlirState.h"
|
|
26
|
-
#import "FlirViewManager.h"
|
|
27
|
-
|
|
28
|
-
// ThermalSDK if available
|
|
29
|
-
#if __has_include(<ThermalSDK/ThermalSDK.h>)
|
|
30
|
-
#import <ThermalSDK/ThermalSDK.h>
|
|
31
|
-
#define FLIR_SDK_AVAILABLE 1
|
|
32
|
-
#endif
|
|
33
|
-
|
|
34
|
-
#endif /* Flir_Bridging_Header_h */
|
|
1
|
+
//
|
|
2
|
+
// Flir-Bridging-Header.h
|
|
3
|
+
// Flir
|
|
4
|
+
//
|
|
5
|
+
// Bridging header for Swift/Objective-C interoperability
|
|
6
|
+
// Note: This header is used when building the package as part of an app
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef Flir_Bridging_Header_h
|
|
10
|
+
#define Flir_Bridging_Header_h
|
|
11
|
+
|
|
12
|
+
// Note: React headers are provided by the app's build system
|
|
13
|
+
// These imports are for documentation purposes when building within Xcode
|
|
14
|
+
#if __has_include(<React/RCTBridgeModule.h>)
|
|
15
|
+
#import <React/RCTBridgeModule.h>
|
|
16
|
+
#import <React/RCTEventEmitter.h>
|
|
17
|
+
#import <React/RCTLog.h>
|
|
18
|
+
#import <React/RCTViewManager.h>
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
// FLIR module headers (local)
|
|
22
|
+
#import "FlirEventEmitter.h"
|
|
23
|
+
#import "FlirModule.h"
|
|
24
|
+
#import "FlirPreviewView.h"
|
|
25
|
+
#import "FlirState.h"
|
|
26
|
+
#import "FlirViewManager.h"
|
|
27
|
+
|
|
28
|
+
// ThermalSDK if available
|
|
29
|
+
#if __has_include(<ThermalSDK/ThermalSDK.h>)
|
|
30
|
+
#import <ThermalSDK/ThermalSDK.h>
|
|
31
|
+
#define FLIR_SDK_AVAILABLE 1
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#endif /* Flir_Bridging_Header_h */
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FlirEventEmitter.h
|
|
3
|
-
// Flir
|
|
4
|
-
//
|
|
5
|
-
// Event emitter for sending FLIR events to React Native
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <React/RCTBridgeModule.h>
|
|
9
|
-
#import <React/RCTEventEmitter.h>
|
|
10
|
-
|
|
11
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
-
|
|
13
|
-
@interface FlirEventEmitter : RCTEventEmitter <RCTBridgeModule>
|
|
14
|
-
|
|
15
|
-
/// Shared singleton instance (set after module initialization)
|
|
16
|
-
+ (nullable instancetype)shared;
|
|
17
|
-
|
|
18
|
-
/// Send an event to JavaScript
|
|
19
|
-
/// @param name Event name
|
|
20
|
-
/// @param body Event payload
|
|
21
|
-
- (void)sendDeviceEvent:(NSString *)name body:(id)body;
|
|
22
|
-
|
|
23
|
-
@end
|
|
24
|
-
|
|
25
|
-
NS_ASSUME_NONNULL_END
|
|
1
|
+
//
|
|
2
|
+
// FlirEventEmitter.h
|
|
3
|
+
// Flir
|
|
4
|
+
//
|
|
5
|
+
// Event emitter for sending FLIR events to React Native
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <React/RCTBridgeModule.h>
|
|
9
|
+
#import <React/RCTEventEmitter.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface FlirEventEmitter : RCTEventEmitter <RCTBridgeModule>
|
|
14
|
+
|
|
15
|
+
/// Shared singleton instance (set after module initialization)
|
|
16
|
+
+ (nullable instancetype)shared;
|
|
17
|
+
|
|
18
|
+
/// Send an event to JavaScript
|
|
19
|
+
/// @param name Event name
|
|
20
|
+
/// @param body Event payload
|
|
21
|
+
- (void)sendDeviceEvent:(NSString *)name body:(id)body;
|
|
22
|
+
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FlirEventEmitter.m
|
|
3
|
-
// Flir
|
|
4
|
-
//
|
|
5
|
-
// Event emitter for sending FLIR events to React Native
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import "FlirEventEmitter.h"
|
|
9
|
-
|
|
10
|
-
static FlirEventEmitter *_sharedEmitter = nil;
|
|
11
|
-
|
|
12
|
-
@implementation FlirEventEmitter
|
|
13
|
-
|
|
14
|
-
RCT_EXPORT_MODULE();
|
|
15
|
-
|
|
16
|
-
+ (BOOL)requiresMainQueueSetup {
|
|
17
|
-
return YES;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
- (instancetype)init {
|
|
21
|
-
if (self = [super init]) {
|
|
22
|
-
_sharedEmitter = self;
|
|
23
|
-
}
|
|
24
|
-
return self;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
+ (instancetype)shared {
|
|
28
|
-
return _sharedEmitter;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
- (NSArray<NSString *> *)supportedEvents {
|
|
32
|
-
return @[
|
|
33
|
-
@"FlirDeviceConnected", @"FlirDeviceDisconnected", @"FlirDevicesFound",
|
|
34
|
-
@"FlirFrameReceived", @"FlirFrame", @"FlirError", @"FlirStateChanged",
|
|
35
|
-
@"FlirTemperatureUpdate"
|
|
36
|
-
];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
- (void)sendDeviceEvent:(NSString *)name body:(id)body {
|
|
40
|
-
if (!_sharedEmitter) {
|
|
41
|
-
NSLog(@"[FlirEventEmitter] Warning: Emitter not initialized, event "
|
|
42
|
-
@"dropped: %@",
|
|
43
|
-
name);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@try {
|
|
48
|
-
[_sharedEmitter sendEventWithName:name body:body];
|
|
49
|
-
} @catch (NSException *exception) {
|
|
50
|
-
NSLog(@"[FlirEventEmitter] Error sending event %@: %@", name, exception);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Required for RCTEventEmitter
|
|
55
|
-
RCT_EXPORT_METHOD(addListener : (NSString *)eventName) {
|
|
56
|
-
// Keep track of listeners if needed
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) {
|
|
60
|
-
// Clean up listeners if needed
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FlirEventEmitter.m
|
|
3
|
+
// Flir
|
|
4
|
+
//
|
|
5
|
+
// Event emitter for sending FLIR events to React Native
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "FlirEventEmitter.h"
|
|
9
|
+
|
|
10
|
+
static FlirEventEmitter *_sharedEmitter = nil;
|
|
11
|
+
|
|
12
|
+
@implementation FlirEventEmitter
|
|
13
|
+
|
|
14
|
+
RCT_EXPORT_MODULE();
|
|
15
|
+
|
|
16
|
+
+ (BOOL)requiresMainQueueSetup {
|
|
17
|
+
return YES;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
- (instancetype)init {
|
|
21
|
+
if (self = [super init]) {
|
|
22
|
+
_sharedEmitter = self;
|
|
23
|
+
}
|
|
24
|
+
return self;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
+ (instancetype)shared {
|
|
28
|
+
return _sharedEmitter;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
- (NSArray<NSString *> *)supportedEvents {
|
|
32
|
+
return @[
|
|
33
|
+
@"FlirDeviceConnected", @"FlirDeviceDisconnected", @"FlirDevicesFound",
|
|
34
|
+
@"FlirFrameReceived", @"FlirFrame", @"FlirError", @"FlirStateChanged",
|
|
35
|
+
@"FlirTemperatureUpdate"
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
- (void)sendDeviceEvent:(NSString *)name body:(id)body {
|
|
40
|
+
if (!_sharedEmitter) {
|
|
41
|
+
NSLog(@"[FlirEventEmitter] Warning: Emitter not initialized, event "
|
|
42
|
+
@"dropped: %@",
|
|
43
|
+
name);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@try {
|
|
48
|
+
[_sharedEmitter sendEventWithName:name body:body];
|
|
49
|
+
} @catch (NSException *exception) {
|
|
50
|
+
NSLog(@"[FlirEventEmitter] Error sending event %@: %@", name, exception);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Required for RCTEventEmitter
|
|
55
|
+
RCT_EXPORT_METHOD(addListener : (NSString *)eventName) {
|
|
56
|
+
// Keep track of listeners if needed
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) {
|
|
60
|
+
// Clean up listeners if needed
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@end
|