ilabs-flir 2.0.4 → 2.0.5

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 (35) hide show
  1. package/Flir.podspec +139 -139
  2. package/README.md +1066 -1066
  3. package/android/Flir/build.gradle.kts +72 -72
  4. package/android/Flir/src/main/AndroidManifest.xml +45 -45
  5. package/android/Flir/src/main/java/flir/android/FlirCommands.java +136 -136
  6. package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
  7. package/android/Flir/src/main/java/flir/android/FlirManager.kt +476 -476
  8. package/android/Flir/src/main/java/flir/android/FlirModule.kt +257 -257
  9. package/android/Flir/src/main/java/flir/android/FlirPackage.kt +18 -18
  10. package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +74 -74
  11. package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +583 -583
  12. package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
  13. package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
  14. package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
  15. package/app.plugin.js +381 -381
  16. package/expo-module.config.json +5 -5
  17. package/ios/Flir/src/Flir-Bridging-Header.h +34 -34
  18. package/ios/Flir/src/FlirEventEmitter.h +25 -25
  19. package/ios/Flir/src/FlirEventEmitter.m +63 -63
  20. package/ios/Flir/src/FlirManager.swift +599 -599
  21. package/ios/Flir/src/FlirModule.h +17 -17
  22. package/ios/Flir/src/FlirModule.m +713 -713
  23. package/ios/Flir/src/FlirPreviewView.h +13 -13
  24. package/ios/Flir/src/FlirPreviewView.m +171 -171
  25. package/ios/Flir/src/FlirState.h +68 -68
  26. package/ios/Flir/src/FlirState.m +135 -135
  27. package/ios/Flir/src/FlirViewManager.h +16 -16
  28. package/ios/Flir/src/FlirViewManager.m +27 -27
  29. package/package.json +72 -71
  30. package/react-native.config.js +14 -14
  31. package/scripts/fetch-binaries.js +47 -5
  32. package/sdk-manifest.json +50 -50
  33. package/src/index.d.ts +63 -63
  34. package/src/index.js +7 -7
  35. package/src/index.ts +6 -6
package/sdk-manifest.json CHANGED
@@ -1,51 +1,51 @@
1
- {
2
- "version": "2.0.0",
3
- "sdkVersion": "5.0.0",
4
- "ios": {
5
- "downloadUrl": "https://github.com/PraveenOjha/flir-sdk-binaries/releases/download/v1.0.1/ios.zip",
6
- "directDownload": {
7
- "downloadUrl": "https://github.com/PraveenOjha/flir-sdk-binaries/releases/download/v1.0.1/ios.zip",
8
- "sha256": "",
9
- "sizeBytes": 0
10
- },
11
-
12
- "sha256": "",
13
- "sizeBytes": 0,
14
- "xcframeworks": [
15
- "ThermalSDK.xcframework",
16
- "MeterLink.xcframework",
17
- "libavcodec.61.dylib.xcframework",
18
- "libavdevice.61.dylib.xcframework",
19
- "libavfilter.10.dylib.xcframework",
20
- "libavformat.61.dylib.xcframework",
21
- "libavutil.59.dylib.xcframework",
22
- "liblive666.dylib.xcframework",
23
- "libswresample.5.dylib.xcframework",
24
- "libswscale.8.dylib.xcframework"
25
- ],
26
- "minDeploymentTarget": "13.0",
27
- "supportedArchitectures": [
28
- "arm64",
29
- "arm64_x86_64-simulator"
30
- ]
31
- },
32
- "android": {
33
-
34
- "directDownload": {
35
- "downloadUrl": "https://github.com/PraveenOjha/flir-sdk-binaries/releases/download/v1.0.1/android.zip",
36
- "sha256": "",
37
- "sizeBytes": 0
38
- }
39
- },
40
- "buildFlags": {
41
- "ios": {
42
- "withSDK": {
43
- "FLIR_ENABLED": "1",
44
- "FLIR_SDK_AVAILABLE": "1"
45
- },
46
- "withoutSDK": {
47
- "FLIR_DISABLED": "1"
48
- }
49
- }
50
- }
1
+ {
2
+ "version": "2.0.0",
3
+ "sdkVersion": "5.0.0",
4
+ "ios": {
5
+ "downloadUrl": "https://github.com/PraveenOjha/flir-sdk-binaries/releases/download/v1.0.1/ios.zip",
6
+ "directDownload": {
7
+ "downloadUrl": "https://github.com/PraveenOjha/flir-sdk-binaries/releases/download/v1.0.1/ios.zip",
8
+ "sha256": "",
9
+ "sizeBytes": 0
10
+ },
11
+
12
+ "sha256": "",
13
+ "sizeBytes": 0,
14
+ "xcframeworks": [
15
+ "ThermalSDK.xcframework",
16
+ "MeterLink.xcframework",
17
+ "libavcodec.61.dylib.xcframework",
18
+ "libavdevice.61.dylib.xcframework",
19
+ "libavfilter.10.dylib.xcframework",
20
+ "libavformat.61.dylib.xcframework",
21
+ "libavutil.59.dylib.xcframework",
22
+ "liblive666.dylib.xcframework",
23
+ "libswresample.5.dylib.xcframework",
24
+ "libswscale.8.dylib.xcframework"
25
+ ],
26
+ "minDeploymentTarget": "13.0",
27
+ "supportedArchitectures": [
28
+ "arm64",
29
+ "arm64_x86_64-simulator"
30
+ ]
31
+ },
32
+ "android": {
33
+
34
+ "directDownload": {
35
+ "downloadUrl": "https://github.com/PraveenOjha/flir-sdk-binaries/releases/download/v1.0.1/android.zip",
36
+ "sha256": "",
37
+ "sizeBytes": 0
38
+ }
39
+ },
40
+ "buildFlags": {
41
+ "ios": {
42
+ "withSDK": {
43
+ "FLIR_ENABLED": "1",
44
+ "FLIR_SDK_AVAILABLE": "1"
45
+ },
46
+ "withoutSDK": {
47
+ "FLIR_DISABLED": "1"
48
+ }
49
+ }
50
+ }
51
51
  }
package/src/index.d.ts CHANGED
@@ -1,63 +1,63 @@
1
- // FlirDownload API removed: the SDK is bundled at compile time and runtime downloading is not supported.
2
-
3
- export interface SDKStatus {
4
- available: boolean;
5
- arch: string;
6
- dexPath: string;
7
- nativeLibPath: string;
8
- dexExists: boolean;
9
- nativeLibsExist: boolean;
10
- }
11
-
12
- export interface SDKInitResult {
13
- initialized: boolean;
14
- message?: string;
15
- error?: string;
16
- errorType?: string;
17
- }
18
-
19
- export interface FlirDebugInfo {
20
- sdkAvailable: boolean;
21
- arch: string;
22
- sdkClassesLoaded: boolean;
23
- discoveredDeviceCount: number;
24
- isConnected: boolean;
25
- isStreaming: boolean;
26
- connectedDevice: string;
27
- }
28
-
29
- export interface FlirDevice {
30
- id: string;
31
- name: string;
32
- communicationType: 'USB' | 'NETWORK' | 'EMULATOR';
33
- isEmulator: boolean;
34
- }
35
-
36
- export interface FlirModuleAPI {
37
- // Temperature APIs
38
- getTemperatureFromColor(color: number): Promise<number>;
39
- getLatestFramePath(): Promise<string | null>;
40
- getTemperatureAt(x: number, y: number): Promise<number>;
41
-
42
- // Status APIs
43
- isEmulator(): Promise<boolean>;
44
- isDeviceConnected(): Promise<boolean>;
45
- getConnectedDeviceInfo(): Promise<string>;
46
- isSDKDownloaded(): Promise<boolean>;
47
- getSDKStatus(): Promise<SDKStatus>;
48
-
49
- // Discovery & Connection APIs
50
- startDiscovery(): Promise<boolean>;
51
- stopDiscovery(): Promise<boolean>;
52
- startEmulator(emulatorType: string): Promise<boolean>;
53
- connectToDevice(deviceId: string): Promise<boolean>;
54
- stopFlir(): Promise<boolean>;
55
- getDiscoveredDevices(): Promise<FlirDevice[]>;
56
-
57
- // Debug APIs
58
- initializeSDK(): Promise<SDKInitResult>;
59
- getDebugInfo(): Promise<FlirDebugInfo>;
60
- }
61
-
62
- // FlirDownload removed. Use `FlirModule` APIs instead.
63
- export declare const FlirModule: FlirModuleAPI;
1
+ // FlirDownload API removed: the SDK is bundled at compile time and runtime downloading is not supported.
2
+
3
+ export interface SDKStatus {
4
+ available: boolean;
5
+ arch: string;
6
+ dexPath: string;
7
+ nativeLibPath: string;
8
+ dexExists: boolean;
9
+ nativeLibsExist: boolean;
10
+ }
11
+
12
+ export interface SDKInitResult {
13
+ initialized: boolean;
14
+ message?: string;
15
+ error?: string;
16
+ errorType?: string;
17
+ }
18
+
19
+ export interface FlirDebugInfo {
20
+ sdkAvailable: boolean;
21
+ arch: string;
22
+ sdkClassesLoaded: boolean;
23
+ discoveredDeviceCount: number;
24
+ isConnected: boolean;
25
+ isStreaming: boolean;
26
+ connectedDevice: string;
27
+ }
28
+
29
+ export interface FlirDevice {
30
+ id: string;
31
+ name: string;
32
+ communicationType: 'USB' | 'NETWORK' | 'EMULATOR';
33
+ isEmulator: boolean;
34
+ }
35
+
36
+ export interface FlirModuleAPI {
37
+ // Temperature APIs
38
+ getTemperatureFromColor(color: number): Promise<number>;
39
+ getLatestFramePath(): Promise<string | null>;
40
+ getTemperatureAt(x: number, y: number): Promise<number>;
41
+
42
+ // Status APIs
43
+ isEmulator(): Promise<boolean>;
44
+ isDeviceConnected(): Promise<boolean>;
45
+ getConnectedDeviceInfo(): Promise<string>;
46
+ isSDKDownloaded(): Promise<boolean>;
47
+ getSDKStatus(): Promise<SDKStatus>;
48
+
49
+ // Discovery & Connection APIs
50
+ startDiscovery(): Promise<boolean>;
51
+ stopDiscovery(): Promise<boolean>;
52
+ startEmulator(emulatorType: string): Promise<boolean>;
53
+ connectToDevice(deviceId: string): Promise<boolean>;
54
+ stopFlir(): Promise<boolean>;
55
+ getDiscoveredDevices(): Promise<FlirDevice[]>;
56
+
57
+ // Debug APIs
58
+ initializeSDK(): Promise<SDKInitResult>;
59
+ getDebugInfo(): Promise<FlirDebugInfo>;
60
+ }
61
+
62
+ // FlirDownload removed. Use `FlirModule` APIs instead.
63
+ export declare const FlirModule: FlirModuleAPI;
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
- // FlirDownload removed; use `FlirModule` for runtime access to SDK features.
2
-
3
- // Re-export existing FlirModule functionality
4
- // Note: FlirModule should be imported from the native module
5
- import { NativeModules } from 'react-native';
6
- export const FlirModule = NativeModules.FlirModule;
7
-
1
+ // FlirDownload removed; use `FlirModule` for runtime access to SDK features.
2
+
3
+ // Re-export existing FlirModule functionality
4
+ // Note: FlirModule should be imported from the native module
5
+ import { NativeModules } from 'react-native';
6
+ export const FlirModule = NativeModules.FlirModule;
7
+
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- // FlirDownload removed: SDK is now bundled at compile time; runtime downloads are no longer supported.
2
-
3
- // Re-export existing FlirModule functionality
4
- // Note: FlirModule should be imported from the native module
5
- import { NativeModules } from 'react-native';
6
- export const FlirModule = NativeModules.FlirModule;
1
+ // FlirDownload removed: SDK is now bundled at compile time; runtime downloads are no longer supported.
2
+
3
+ // Re-export existing FlirModule functionality
4
+ // Note: FlirModule should be imported from the native module
5
+ import { NativeModules } from 'react-native';
6
+ export const FlirModule = NativeModules.FlirModule;