juggleim-rnsdk 0.0.8 → 0.0.9

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 (67) hide show
  1. package/android/build/.transforms/1525b0d13d9826ed3233f1973214d849/results.bin +1 -0
  2. package/android/build/.transforms/1525b0d13d9826ed3233f1973214d849/transformed/classes/classes_dex/classes.dex +0 -0
  3. package/android/build/.transforms/32937366d2d155289e73cba3894468b5/transformed/classes/classes_dex/classes.dex +0 -0
  4. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/results.bin +1 -0
  5. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/BuildConfig.dex +0 -0
  6. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/FileUtils.dex +0 -0
  7. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$1.dex +0 -0
  8. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$10.dex +0 -0
  9. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$11.dex +0 -0
  10. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$12.dex +0 -0
  11. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$13.dex +0 -0
  12. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$14.dex +0 -0
  13. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$15.dex +0 -0
  14. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$16.dex +0 -0
  15. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$17.dex +0 -0
  16. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$18.dex +0 -0
  17. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$2.dex +0 -0
  18. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$3.dex +0 -0
  19. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$4.dex +0 -0
  20. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$5.dex +0 -0
  21. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$6.dex +0 -0
  22. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$7.dex +0 -0
  23. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$8.dex +0 -0
  24. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager$9.dex +0 -0
  25. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMManager.dex +0 -0
  26. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/JuggleIMPackage.dex +0 -0
  27. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/RNTypeConverter$1.dex +0 -0
  28. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/RNTypeConverter.dex +0 -0
  29. package/android/build/.transforms/5a7ea9416fd710e97c2bb8d5954b2c2c/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  30. package/android/build/.transforms/9a2afda83c396e5ec45393e60e403432/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/RNTypeConverter$1.dex +0 -0
  31. package/android/build/.transforms/9a2afda83c396e5ec45393e60e403432/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/RNTypeConverter.dex +0 -0
  32. package/android/build/.transforms/9a2afda83c396e5ec45393e60e403432/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  33. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  34. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
  35. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +1 -1
  36. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/RNTypeConverter$1.class +0 -0
  37. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/RNTypeConverter.class +0 -0
  38. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/RNTypeConverter$1.class +0 -0
  39. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/RNTypeConverter.class +0 -0
  40. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  41. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$1.class.uniqueId1 +0 -0
  42. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$10.class.uniqueId6 +0 -0
  43. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$11.class.uniqueId11 +0 -0
  44. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$12.class.uniqueId13 +0 -0
  45. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$13.class.uniqueId16 +0 -0
  46. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$14.class.uniqueId5 +0 -0
  47. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$15.class.uniqueId8 +0 -0
  48. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$16.class.uniqueId3 +0 -0
  49. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$17.class.uniqueId20 +0 -0
  50. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager$2.class.uniqueId0 → JuggleIMManager$18.class.uniqueId12} +0 -0
  51. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$2.class.uniqueId4 +0 -0
  52. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$3.class.uniqueId7 +0 -0
  53. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$4.class.uniqueId14 +0 -0
  54. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$5.class.uniqueId19 +0 -0
  55. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$6.class.uniqueId18 +0 -0
  56. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$7.class.uniqueId10 +0 -0
  57. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$8.class.uniqueId0 +0 -0
  58. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$9.class.uniqueId17 +0 -0
  59. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager.class.uniqueId2 +0 -0
  60. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNTypeConverter$1.class.uniqueId9 +0 -0
  61. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/RNTypeConverter.class.uniqueId15 +0 -0
  62. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  63. package/android/src/main/java/com/juggleim/RNTypeConverter.java +17 -6
  64. package/package.json +2 -2
  65. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager$1.class.uniqueId3 +0 -0
  66. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMManager.class.uniqueId1 +0 -0
  67. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMPackage.class.uniqueId2 +0 -0
@@ -0,0 +1 @@
1
+ o/bundleLibRuntimeToDirDebug
@@ -1 +1 @@
1
- #Mon Dec 01 16:09:27 CST 2025
1
+ #Mon Dec 01 20:30:27 CST 2025
@@ -1,2 +1,2 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/roger/juggleim/im-rn-sdk/sample/node_modules/im-rn-sdk/android/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/roger/juggleim/im-rn-sdk/sample/node_modules/im-rn-sdk/android/src/debug/jniLibs"/></dataSet></merger>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/roger/juggleim/im-rn-sdk/sample/node_modules/juggleim-rnsdk/android/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/roger/juggleim/im-rn-sdk/sample/node_modules/juggleim-rnsdk/android/src/debug/jniLibs"/></dataSet></merger>
@@ -13,24 +13,35 @@ public class RNTypeConverter {
13
13
 
14
14
  // === 对象 -> WritableMap ===
15
15
  public static WritableMap toWritableMap(Object obj) {
16
+ return toWritableMap(obj, new HashSet<>());
17
+ }
18
+
19
+ private static WritableMap toWritableMap(Object obj, Set<Integer> visited) {
16
20
  WritableMap map = new WritableNativeMap();
17
21
  if (obj == null) return map;
18
22
 
23
+ int identityHashCode = System.identityHashCode(obj);
24
+ if (visited.contains(identityHashCode)) {
25
+ return map;
26
+ }
27
+ visited.add(identityHashCode);
28
+
19
29
  try {
20
30
  for (Field field : obj.getClass().getDeclaredFields()) {
21
31
  field.setAccessible(true);
22
32
  Object value = field.get(obj);
23
33
  if (value == null) continue;
24
- putValue(map, field.getName(), value);
34
+ putValue(map, field.getName(), value, visited);
25
35
  }
26
36
  } catch (IllegalAccessException e) {
27
37
  e.printStackTrace();
28
38
  }
29
-
39
+
40
+ visited.remove(identityHashCode);
30
41
  return map;
31
42
  }
32
43
 
33
- private static void putValue(WritableMap map, String key, Object value) {
44
+ private static void putValue(WritableMap map, String key, Object value, Set<Integer> visited) {
34
45
  if (value instanceof String) {
35
46
  map.putString(key, (String) value);
36
47
  } else if (value instanceof Integer) {
@@ -50,7 +61,7 @@ public class RNTypeConverter {
50
61
  if (isPrimitive(item)) {
51
62
  putArrayValue(array, item);
52
63
  } else {
53
- array.pushMap(toWritableMap(item));
64
+ array.pushMap(toWritableMap(item, visited));
54
65
  }
55
66
  }
56
67
  map.putArray(key, array);
@@ -59,13 +70,13 @@ public class RNTypeConverter {
59
70
  Map<?, ?> vMap = (Map<?, ?>) value;
60
71
  for (Map.Entry<?, ?> entry : vMap.entrySet()) {
61
72
  if (entry.getKey() != null && entry.getValue() != null) {
62
- putValue(nested, entry.getKey().toString(), entry.getValue());
73
+ putValue(nested, entry.getKey().toString(), entry.getValue(), visited);
63
74
  }
64
75
  }
65
76
  map.putMap(key, nested);
66
77
  } else {
67
78
  // 嵌套对象
68
- map.putMap(key, toWritableMap(value));
79
+ map.putMap(key, toWritableMap(value, visited));
69
80
  }
70
81
  }
71
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juggleim-rnsdk",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "React Native wrapper for Juggle IM SDK",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -42,4 +42,4 @@
42
42
  "@types/react": "^18.2.45",
43
43
  "@types/react-native": "^0.73.0"
44
44
  }
45
- }
45
+ }