@bits-innovate/react-native-vstarcam 1.0.9 → 1.0.10
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.
|
@@ -247,7 +247,8 @@ public class VStarCamModule extends ReactContextBaseJavaModule {
|
|
|
247
247
|
|
|
248
248
|
Log.d(TAG, "JNIApi.create result: " + sdkClientPtr);
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
// Note: pointer can be negative (unsigned long cast to signed) - only 0 is invalid
|
|
251
|
+
if (sdkClientPtr == 0) {
|
|
251
252
|
promise.reject("CREATE_ERROR", "Failed to create client, result: " + sdkClientPtr);
|
|
252
253
|
return;
|
|
253
254
|
}
|
|
@@ -548,7 +549,7 @@ public class VStarCamModule extends ReactContextBaseJavaModule {
|
|
|
548
549
|
@ReactMethod
|
|
549
550
|
public void getSdkVersion(Promise promise) {
|
|
550
551
|
WritableMap result = Arguments.createMap();
|
|
551
|
-
result.putString("version", "1.0.
|
|
552
|
+
result.putString("version", "1.0.10");
|
|
552
553
|
result.putBoolean("nativeLoaded", isNativeLibraryLoaded);
|
|
553
554
|
result.putString("nativeLib", "OKSMARTPPCS");
|
|
554
555
|
result.putBoolean("p2pInitialized", isP2PInitialized);
|