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
|
@@ -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
|
+
}
|