@bits-innovate/react-native-vstarcam 1.0.21 → 1.0.22

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.
@@ -48,6 +48,16 @@ public class VStarCamModule extends ReactContextBaseJavaModule {
48
48
  private static final String TAG = "VStarCamModule";
49
49
  private static final String MODULE_NAME = "VStarCam";
50
50
 
51
+ // Set to true for verbose logging during development
52
+ private static final boolean DEBUG_LOGGING = false;
53
+
54
+ // Helper for conditional debug logging
55
+ private static void logDebug(String message) {
56
+ if (DEBUG_LOGGING) {
57
+ Log.d(TAG, message);
58
+ }
59
+ }
60
+
51
61
  // P2P Server parameters by DID prefix (from Flutter SDK)
52
62
  private static final Map<String, String> SERVICE_PARAM_MAP = new HashMap<String, String>() {{
53
63
  put("VSTC", "EBGBEMBMKGJMGAJPEIGIFKEGHBMCHMNFGKEGBFCBBMJELILDCJADCIOLHHLLJBKEAMMBLCDGONMDBJCJJPNFJP");
@@ -835,7 +845,7 @@ public class VStarCamModule extends ReactContextBaseJavaModule {
835
845
  @ReactMethod
836
846
  public void getSdkVersion(Promise promise) {
837
847
  WritableMap result = Arguments.createMap();
838
- result.putString("version", "1.0.21");
848
+ result.putString("version", "1.0.22");
839
849
  result.putBoolean("nativeLoaded", isNativeLibraryLoaded);
840
850
  result.putString("nativeLib", "OKSMARTPPCS");
841
851
  result.putBoolean("p2pInitialized", isP2PInitialized);
@@ -20,6 +20,15 @@ public class VStarCamVideoView extends FrameLayout
20
20
  implements TextureView.SurfaceTextureListener {
21
21
 
22
22
  private static final String TAG = "VStarCamVideoView";
23
+
24
+ // Set to true for verbose logging during development
25
+ private static final boolean DEBUG_LOGGING = false;
26
+
27
+ private static void logDebug(String message) {
28
+ if (DEBUG_LOGGING) {
29
+ Log.d(TAG, message);
30
+ }
31
+ }
23
32
 
24
33
  private TextureView textureView;
25
34
  private TextView statusView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bits-innovate/react-native-vstarcam",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "React Native bridge for VStarCam P2P SDK",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",