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
@@ -1,74 +1,74 @@
1
- package flir.android
2
-
3
- import android.content.Context
4
- import android.os.Build
5
- import android.util.Log
6
-
7
- /**
8
- * FlirSDKLoader - SDK availability checker
9
- *
10
- * Since the SDK is now bundled via AAR files, this class simply reports
11
- * that the SDK is always available. The AAR files include native .so libraries
12
- * for all supported architectures, which Android handles automatically.
13
- */
14
- object FlirSDKLoader {
15
-
16
- private const val TAG = "FlirSDKLoader"
17
-
18
- /**
19
- * Get the primary ABI for this device
20
- */
21
- fun getDeviceArch(): String {
22
- val supportedAbis = Build.SUPPORTED_ABIS
23
- Log.d(TAG, "Device supported ABIs: ${supportedAbis.joinToString()}")
24
-
25
- val knownArchs = setOf("arm64-v8a", "armeabi-v7a", "x86_64", "x86")
26
- for (abi in supportedAbis) {
27
- if (abi in knownArchs) {
28
- Log.d(TAG, "Selected ABI: $abi")
29
- return abi
30
- }
31
- }
32
- return "arm64-v8a"
33
- }
34
-
35
- /**
36
- * Check if SDK is available - always true since bundled in AAR
37
- */
38
- fun isSDKAvailable(context: Context): Boolean {
39
- Log.d(TAG, "SDK is bundled in AAR - always available")
40
- return true
41
- }
42
-
43
- // downloadSDK removed. Runtime downloads are not supported; SDK is bundled at compile-time.
44
-
45
- /**
46
- * Get SDK status
47
- */
48
- fun getSDKStatus(context: Context): Map<String, Any> {
49
- return mapOf(
50
- "available" to true,
51
- "bundled" to true,
52
- "arch" to getDeviceArch(),
53
- "version" to "4.16.0" // SDK version from AAR
54
- )
55
- }
56
-
57
- /**
58
- * Get DEX path - not applicable when bundled via AAR
59
- * Returns null since SDK is bundled in AAR, no separate DEX needed
60
- */
61
- fun getDexPath(context: Context): java.io.File? {
62
- // SDK is bundled in AAR - no separate DEX file
63
- return null
64
- }
65
-
66
- /**
67
- * Get native library directory - not applicable when bundled via AAR
68
- * Returns null since native libs are included in AAR and handled by Android
69
- */
70
- fun getNativeLibDir(context: Context): java.io.File? {
71
- // SDK native libs are bundled in AAR and extracted automatically by Android
72
- return null
73
- }
74
- }
1
+ package flir.android
2
+
3
+ import android.content.Context
4
+ import android.os.Build
5
+ import android.util.Log
6
+
7
+ /**
8
+ * FlirSDKLoader - SDK availability checker
9
+ *
10
+ * Since the SDK is now bundled via AAR files, this class simply reports
11
+ * that the SDK is always available. The AAR files include native .so libraries
12
+ * for all supported architectures, which Android handles automatically.
13
+ */
14
+ object FlirSDKLoader {
15
+
16
+ private const val TAG = "FlirSDKLoader"
17
+
18
+ /**
19
+ * Get the primary ABI for this device
20
+ */
21
+ fun getDeviceArch(): String {
22
+ val supportedAbis = Build.SUPPORTED_ABIS
23
+ Log.d(TAG, "Device supported ABIs: ${supportedAbis.joinToString()}")
24
+
25
+ val knownArchs = setOf("arm64-v8a", "armeabi-v7a", "x86_64", "x86")
26
+ for (abi in supportedAbis) {
27
+ if (abi in knownArchs) {
28
+ Log.d(TAG, "Selected ABI: $abi")
29
+ return abi
30
+ }
31
+ }
32
+ return "arm64-v8a"
33
+ }
34
+
35
+ /**
36
+ * Check if SDK is available - always true since bundled in AAR
37
+ */
38
+ fun isSDKAvailable(context: Context): Boolean {
39
+ Log.d(TAG, "SDK is bundled in AAR - always available")
40
+ return true
41
+ }
42
+
43
+ // downloadSDK removed. Runtime downloads are not supported; SDK is bundled at compile-time.
44
+
45
+ /**
46
+ * Get SDK status
47
+ */
48
+ fun getSDKStatus(context: Context): Map<String, Any> {
49
+ return mapOf(
50
+ "available" to true,
51
+ "bundled" to true,
52
+ "arch" to getDeviceArch(),
53
+ "version" to "4.16.0" // SDK version from AAR
54
+ )
55
+ }
56
+
57
+ /**
58
+ * Get DEX path - not applicable when bundled via AAR
59
+ * Returns null since SDK is bundled in AAR, no separate DEX needed
60
+ */
61
+ fun getDexPath(context: Context): java.io.File? {
62
+ // SDK is bundled in AAR - no separate DEX file
63
+ return null
64
+ }
65
+
66
+ /**
67
+ * Get native library directory - not applicable when bundled via AAR
68
+ * Returns null since native libs are included in AAR and handled by Android
69
+ */
70
+ fun getNativeLibDir(context: Context): java.io.File? {
71
+ // SDK native libs are bundled in AAR and extracted automatically by Android
72
+ return null
73
+ }
74
+ }