@bits-innovate/react-native-vstarcam 1.0.16 → 1.0.17
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.
|
@@ -539,7 +539,17 @@ public class VStarCamModule extends ReactContextBaseJavaModule {
|
|
|
539
539
|
long.class, String.class, String.class);
|
|
540
540
|
|
|
541
541
|
Log.d(TAG, "Calling JNIApi.login(" + clientInfo.sdkClientPtr + ", " + username + ", ***)");
|
|
542
|
-
|
|
542
|
+
|
|
543
|
+
try {
|
|
544
|
+
loginMethod.invoke(null, clientInfo.sdkClientPtr, username, password);
|
|
545
|
+
Log.d(TAG, "JNIApi.login returned normally");
|
|
546
|
+
} catch (java.lang.reflect.InvocationTargetException ite) {
|
|
547
|
+
Log.e(TAG, "JNIApi.login threw exception: " + ite.getCause(), ite.getCause());
|
|
548
|
+
throw ite;
|
|
549
|
+
} catch (Throwable t) {
|
|
550
|
+
Log.e(TAG, "JNIApi.login crashed: " + t.getMessage(), t);
|
|
551
|
+
throw t;
|
|
552
|
+
}
|
|
543
553
|
|
|
544
554
|
clientInfo.isLoggedIn = true;
|
|
545
555
|
Log.d(TAG, "JNIApi.login called successfully");
|
|
@@ -747,7 +757,7 @@ public class VStarCamModule extends ReactContextBaseJavaModule {
|
|
|
747
757
|
@ReactMethod
|
|
748
758
|
public void getSdkVersion(Promise promise) {
|
|
749
759
|
WritableMap result = Arguments.createMap();
|
|
750
|
-
result.putString("version", "1.0.
|
|
760
|
+
result.putString("version", "1.0.17");
|
|
751
761
|
result.putBoolean("nativeLoaded", isNativeLibraryLoaded);
|
|
752
762
|
result.putString("nativeLib", "OKSMARTPPCS");
|
|
753
763
|
result.putBoolean("p2pInitialized", isP2PInitialized);
|