@dittolive/ditto 4.5.1 → 4.5.2-rc.2

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 (486) hide show
  1. package/DittoReactNative.podspec +2 -5
  2. package/README.md +2 -2
  3. package/node/ditto.cjs.js +2 -9653
  4. package/node/ditto.cjs.js.map +1 -0
  5. package/node/ditto.cjs.pretty.js +9655 -0
  6. package/node/ditto.cjs.pretty.js.map +1 -0
  7. package/node/ditto.darwin-arm64.node +0 -0
  8. package/node/ditto.darwin-x64.node +0 -0
  9. package/node/ditto.linux-x64.node +0 -0
  10. package/node/transports.darwin-arm64.node +0 -0
  11. package/node/transports.darwin-x64.node +0 -0
  12. package/package.json +31 -26
  13. package/react-native/android/build.gradle +2 -19
  14. package/react-native/cpp/include/Arc.hpp +141 -0
  15. package/react-native/cpp/include/Lifecycle.h +2 -1
  16. package/react-native/cpp/include/Misc.h +2 -1
  17. package/react-native/cpp/include/SmallPeerInfo.h +2 -0
  18. package/react-native/cpp/src/Authentication.cpp +17 -14
  19. package/react-native/cpp/src/DQL.cpp +10 -8
  20. package/react-native/cpp/src/Lifecycle.cpp +37 -2
  21. package/react-native/cpp/src/LiveQuery.cpp +2 -3
  22. package/react-native/cpp/src/Misc.cpp +15 -3
  23. package/react-native/cpp/src/Presence.cpp +8 -6
  24. package/react-native/cpp/src/SmallPeerInfo.cpp +34 -0
  25. package/react-native/cpp/src/main.cpp +6 -3
  26. package/react-native/dittoffi/dittoffi.h +186 -184
  27. package/react-native/lib/commonjs/ditto.rn.js +14 -15
  28. package/react-native/lib/commonjs/ditto.rn.js.map +1 -1
  29. package/react-native/lib/commonjs/index.js +61 -14
  30. package/react-native/lib/commonjs/index.js.map +1 -1
  31. package/react-native/lib/module/ditto.rn.js +16 -11
  32. package/react-native/lib/module/ditto.rn.js.map +1 -1
  33. package/react-native/lib/module/index.js +24 -10
  34. package/react-native/lib/module/index.js.map +1 -1
  35. package/react-native/lib/typescript/ditto.rn.d.ts.map +1 -1
  36. package/react-native/src/sources/@environment.ts +0 -1
  37. package/react-native/src/sources/attachment-fetcher-manager.ts +15 -0
  38. package/react-native/src/sources/attachment-fetcher.ts +10 -0
  39. package/react-native/src/sources/attachment.ts +15 -0
  40. package/react-native/src/sources/augment.ts +12 -0
  41. package/react-native/src/sources/base-pending-cursor-operation.ts +2 -0
  42. package/react-native/src/sources/bridge.ts +5 -1
  43. package/react-native/src/sources/build-time-constants.ts +5 -1
  44. package/react-native/src/sources/counter.ts +5 -0
  45. package/react-native/src/sources/ditto.ts +46 -12
  46. package/react-native/src/sources/document-id.ts +1 -1
  47. package/react-native/src/sources/document-path.ts +5 -2
  48. package/react-native/src/sources/document.ts +2 -1
  49. package/react-native/src/sources/epilogue.ts +6 -0
  50. package/react-native/src/sources/error.ts +7 -2
  51. package/react-native/src/sources/ffi-error.ts +6 -1
  52. package/react-native/src/sources/ffi.ts +51 -11
  53. package/react-native/src/sources/init.ts +2 -1
  54. package/react-native/src/sources/internal.ts +3 -7
  55. package/react-native/src/sources/keep-alive.ts +6 -2
  56. package/react-native/src/sources/key-path.ts +4 -1
  57. package/react-native/src/sources/live-query-manager.ts +5 -4
  58. package/react-native/src/sources/live-query.ts +2 -0
  59. package/react-native/src/sources/main.ts +60 -0
  60. package/react-native/src/sources/observer-manager.ts +5 -2
  61. package/react-native/src/sources/observer.ts +3 -1
  62. package/react-native/src/sources/pending-id-specific-operation.ts +4 -2
  63. package/react-native/src/sources/presence-manager.ts +2 -1
  64. package/react-native/src/sources/presence.ts +0 -5
  65. package/react-native/src/sources/register.ts +5 -2
  66. package/react-native/src/sources/small-peer-info.ts +1 -0
  67. package/react-native/src/sources/store-observer.ts +1 -0
  68. package/react-native/src/sources/store.ts +24 -4
  69. package/react-native/src/sources/subscription-manager.ts +2 -1
  70. package/react-native/src/sources/subscription.ts +1 -0
  71. package/react-native/src/sources/sync.ts +110 -46
  72. package/react-native/src/sources/transport-config.ts +2 -0
  73. package/react-native/src/sources/websocket-client.ts +1 -0
  74. package/react-native/src/sources/write-transaction-pending-id-specific-operation.ts +2 -0
  75. package/react-native/src/sources/write-transaction.ts +2 -0
  76. package/types/ditto.d.ts.map +1 -0
  77. package/web/ditto.es6.js +1 -1
  78. package/web/ditto.es6.js.map +1 -0
  79. package/web/ditto.es6.pretty.js +12600 -0
  80. package/web/ditto.es6.pretty.js.map +1 -0
  81. package/web/ditto.umd.js +1 -1
  82. package/web/ditto.umd.js.map +1 -0
  83. package/web/ditto.umd.pretty.js +12669 -0
  84. package/web/ditto.umd.pretty.js.map +1 -0
  85. package/web/ditto.wasm +0 -0
  86. package/node/ditto.linux-arm.node +0 -0
  87. package/node/ditto.win32-x64.node +0 -0
  88. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  89. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  90. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  91. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/cache-v2-970081f7c58ab1625a1a.json +0 -1303
  92. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-e1bacde094ce7e389294.json +0 -203
  93. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-54964c7f44134b1cec4d.json +0 -60
  94. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  95. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/index-2023-12-06T19-58-48-0479.json +0 -92
  96. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/target-cpp-Debug-a438adda6ad6df71f898.json +0 -314
  97. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.ninja_deps +0 -0
  98. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.ninja_log +0 -21
  99. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeCache.txt +0 -393
  100. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  101. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  102. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  103. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  104. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -113
  105. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  106. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  107. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  108. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  109. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/CMakeOutput.log +0 -320
  110. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/TargetDirectories.txt +0 -3
  111. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cmake.check_cache +0 -1
  112. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  113. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  114. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  115. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  116. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  117. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  118. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  119. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  120. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  121. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  122. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  123. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  124. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  125. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  126. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  127. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  128. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  129. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  130. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  131. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/rules.ninja +0 -64
  132. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/additional_project_files.txt +0 -0
  133. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/android_gradle_build.json +0 -42
  134. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/android_gradle_build_mini.json +0 -31
  135. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/build.ninja +0 -297
  136. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/build_file_index.txt +0 -3
  137. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/cmake_install.cmake +0 -54
  138. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/compile_commands.json +0 -97
  139. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/compile_commands.json.bin +0 -0
  140. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/configure_fingerprint.bin +0 -8755
  141. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/metadata_generation_command.txt +0 -21
  142. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/prefab_config.json +0 -8
  143. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/symbol_folder_index.txt +0 -1
  144. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  145. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  146. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  147. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/cache-v2-0cc74b41e95a51ba0457.json +0 -1303
  148. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/cmakeFiles-v1-ee90fea936bce5771631.json +0 -203
  149. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/codemodel-v2-82fa8946198e6eba430b.json +0 -60
  150. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  151. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/index-2023-12-06T19-58-48-0893.json +0 -92
  152. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/target-cpp-Debug-1e9d0b1a457f7fe5c618.json +0 -314
  153. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.ninja_deps +0 -0
  154. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.ninja_log +0 -21
  155. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeCache.txt +0 -393
  156. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  157. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  158. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  159. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  160. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -115
  161. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  162. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  163. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  164. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  165. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/CMakeOutput.log +0 -304
  166. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/TargetDirectories.txt +0 -3
  167. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cmake.check_cache +0 -1
  168. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  169. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  170. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  171. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  172. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  173. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  174. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  175. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  176. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  177. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  178. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  179. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  180. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  181. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  182. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  183. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  184. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  185. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  186. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  187. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/rules.ninja +0 -64
  188. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/additional_project_files.txt +0 -0
  189. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/android_gradle_build.json +0 -42
  190. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/android_gradle_build_mini.json +0 -31
  191. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/build.ninja +0 -297
  192. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/build_file_index.txt +0 -3
  193. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/cmake_install.cmake +0 -54
  194. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/compile_commands.json +0 -97
  195. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/compile_commands.json.bin +0 -0
  196. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/configure_fingerprint.bin +0 -8755
  197. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/metadata_generation_command.txt +0 -21
  198. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/prefab_config.json +0 -8
  199. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/symbol_folder_index.txt +0 -1
  200. package/react-native/android/.cxx/Debug/6p5m3p3q/hash_key.txt +0 -28
  201. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  202. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  203. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/fbjni/fbjniConfig.cmake +0 -9
  204. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  205. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  206. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  207. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/fbjni/fbjniConfig.cmake +0 -9
  208. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  209. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  210. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  211. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/fbjni/fbjniConfig.cmake +0 -9
  212. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  213. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  214. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  215. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/fbjni/fbjniConfig.cmake +0 -9
  216. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  217. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  218. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  219. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  220. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/cache-v2-6c4a25b4c6713ffdc5da.json +0 -1303
  221. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/cmakeFiles-v1-f4200ba0f2ce507c91da.json +0 -203
  222. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/codemodel-v2-9ea6ff99336eeb9a9ce9.json +0 -60
  223. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  224. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/index-2023-12-06T19-58-49-0301.json +0 -92
  225. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/target-cpp-Debug-a88e6d0219517e1d531b.json +0 -314
  226. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.ninja_deps +0 -0
  227. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.ninja_log +0 -21
  228. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeCache.txt +0 -393
  229. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  230. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  231. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  232. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  233. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -113
  234. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  235. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  236. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  237. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  238. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/CMakeOutput.log +0 -322
  239. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/TargetDirectories.txt +0 -3
  240. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cmake.check_cache +0 -1
  241. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  242. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  243. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  244. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  245. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  246. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  247. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  248. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  249. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  250. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  251. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  252. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  253. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  254. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  255. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  256. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  257. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  258. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  259. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  260. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/rules.ninja +0 -64
  261. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/additional_project_files.txt +0 -0
  262. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/android_gradle_build.json +0 -42
  263. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/android_gradle_build_mini.json +0 -31
  264. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/build.ninja +0 -297
  265. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/build_file_index.txt +0 -3
  266. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/cmake_install.cmake +0 -54
  267. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/compile_commands.json +0 -97
  268. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/compile_commands.json.bin +0 -0
  269. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/metadata_generation_command.txt +0 -21
  270. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/prefab_config.json +0 -8
  271. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/symbol_folder_index.txt +0 -1
  272. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  273. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  274. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  275. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/cache-v2-dae9c0e6f8d6c826f86e.json +0 -1303
  276. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/cmakeFiles-v1-77b66408bf04fa403cf4.json +0 -203
  277. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/codemodel-v2-00d5bd5dc4a882f89004.json +0 -60
  278. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  279. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/index-2023-12-06T19-58-49-0701.json +0 -92
  280. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/target-cpp-Debug-ed2a7b63dedc1886a528.json +0 -314
  281. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.ninja_deps +0 -0
  282. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.ninja_log +0 -21
  283. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeCache.txt +0 -393
  284. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  285. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  286. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  287. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  288. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -113
  289. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  290. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  291. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  292. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  293. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/CMakeOutput.log +0 -322
  294. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/TargetDirectories.txt +0 -3
  295. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cmake.check_cache +0 -1
  296. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  297. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  298. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  299. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  300. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  301. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  302. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  303. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  304. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  305. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  306. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  307. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  308. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  309. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  310. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  311. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  312. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  313. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  314. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  315. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/rules.ninja +0 -64
  316. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/additional_project_files.txt +0 -0
  317. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/android_gradle_build.json +0 -42
  318. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/android_gradle_build_mini.json +0 -31
  319. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/build.ninja +0 -297
  320. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/build_file_index.txt +0 -3
  321. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/cmake_install.cmake +0 -54
  322. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/compile_commands.json +0 -97
  323. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/compile_commands.json.bin +0 -0
  324. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/configure_fingerprint.bin +0 -8755
  325. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/metadata_generation_command.txt +0 -21
  326. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/prefab_config.json +0 -8
  327. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/symbol_folder_index.txt +0 -1
  328. package/react-native/android/.cxx/tools/debug/arm64-v8a/compile_commands.json +0 -97
  329. package/react-native/android/.cxx/tools/debug/armeabi-v7a/compile_commands.json +0 -97
  330. package/react-native/android/.cxx/tools/debug/x86/compile_commands.json +0 -97
  331. package/react-native/android/.cxx/tools/debug/x86_64/compile_commands.json +0 -97
  332. package/react-native/android/.gradle/8.5/checksums/checksums.lock +0 -0
  333. package/react-native/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  334. package/react-native/android/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  335. package/react-native/android/.gradle/8.5/fileChanges/last-build.bin +0 -0
  336. package/react-native/android/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  337. package/react-native/android/.gradle/8.5/gc.properties +0 -0
  338. package/react-native/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  339. package/react-native/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  340. package/react-native/android/.gradle/vcs-1/gc.properties +0 -0
  341. package/react-native/boost/boost/assert.hpp +0 -85
  342. package/react-native/boost/boost/config/abi/borland_prefix.hpp +0 -27
  343. package/react-native/boost/boost/config/abi/borland_suffix.hpp +0 -12
  344. package/react-native/boost/boost/config/abi/msvc_prefix.hpp +0 -22
  345. package/react-native/boost/boost/config/abi/msvc_suffix.hpp +0 -8
  346. package/react-native/boost/boost/config/abi_prefix.hpp +0 -25
  347. package/react-native/boost/boost/config/abi_suffix.hpp +0 -25
  348. package/react-native/boost/boost/config/assert_cxx03.hpp +0 -211
  349. package/react-native/boost/boost/config/assert_cxx11.hpp +0 -209
  350. package/react-native/boost/boost/config/assert_cxx14.hpp +0 -47
  351. package/react-native/boost/boost/config/assert_cxx17.hpp +0 -62
  352. package/react-native/boost/boost/config/assert_cxx20.hpp +0 -59
  353. package/react-native/boost/boost/config/assert_cxx98.hpp +0 -23
  354. package/react-native/boost/boost/config/auto_link.hpp +0 -525
  355. package/react-native/boost/boost/config/compiler/borland.hpp +0 -339
  356. package/react-native/boost/boost/config/compiler/clang.hpp +0 -366
  357. package/react-native/boost/boost/config/compiler/clang_version.hpp +0 -83
  358. package/react-native/boost/boost/config/compiler/codegear.hpp +0 -385
  359. package/react-native/boost/boost/config/compiler/comeau.hpp +0 -59
  360. package/react-native/boost/boost/config/compiler/common_edg.hpp +0 -183
  361. package/react-native/boost/boost/config/compiler/compaq_cxx.hpp +0 -19
  362. package/react-native/boost/boost/config/compiler/cray.hpp +0 -446
  363. package/react-native/boost/boost/config/compiler/diab.hpp +0 -26
  364. package/react-native/boost/boost/config/compiler/digitalmars.hpp +0 -143
  365. package/react-native/boost/boost/config/compiler/gcc.hpp +0 -383
  366. package/react-native/boost/boost/config/compiler/gcc_xml.hpp +0 -114
  367. package/react-native/boost/boost/config/compiler/greenhills.hpp +0 -28
  368. package/react-native/boost/boost/config/compiler/hp_acc.hpp +0 -149
  369. package/react-native/boost/boost/config/compiler/intel.hpp +0 -577
  370. package/react-native/boost/boost/config/compiler/kai.hpp +0 -33
  371. package/react-native/boost/boost/config/compiler/metrowerks.hpp +0 -198
  372. package/react-native/boost/boost/config/compiler/mpw.hpp +0 -140
  373. package/react-native/boost/boost/config/compiler/nvcc.hpp +0 -61
  374. package/react-native/boost/boost/config/compiler/pathscale.hpp +0 -138
  375. package/react-native/boost/boost/config/compiler/pgi.hpp +0 -23
  376. package/react-native/boost/boost/config/compiler/sgi_mipspro.hpp +0 -29
  377. package/react-native/boost/boost/config/compiler/sunpro_cc.hpp +0 -222
  378. package/react-native/boost/boost/config/compiler/vacpp.hpp +0 -186
  379. package/react-native/boost/boost/config/compiler/visualc.hpp +0 -391
  380. package/react-native/boost/boost/config/compiler/xlcpp.hpp +0 -299
  381. package/react-native/boost/boost/config/compiler/xlcpp_zos.hpp +0 -173
  382. package/react-native/boost/boost/config/detail/cxx_composite.hpp +0 -203
  383. package/react-native/boost/boost/config/detail/posix_features.hpp +0 -95
  384. package/react-native/boost/boost/config/detail/select_compiler_config.hpp +0 -157
  385. package/react-native/boost/boost/config/detail/select_platform_config.hpp +0 -147
  386. package/react-native/boost/boost/config/detail/select_stdlib_config.hpp +0 -121
  387. package/react-native/boost/boost/config/detail/suffix.hpp +0 -1294
  388. package/react-native/boost/boost/config/header_deprecated.hpp +0 -26
  389. package/react-native/boost/boost/config/helper_macros.hpp +0 -37
  390. package/react-native/boost/boost/config/no_tr1/cmath.hpp +0 -28
  391. package/react-native/boost/boost/config/no_tr1/complex.hpp +0 -28
  392. package/react-native/boost/boost/config/no_tr1/functional.hpp +0 -28
  393. package/react-native/boost/boost/config/no_tr1/memory.hpp +0 -28
  394. package/react-native/boost/boost/config/no_tr1/utility.hpp +0 -28
  395. package/react-native/boost/boost/config/platform/aix.hpp +0 -33
  396. package/react-native/boost/boost/config/platform/amigaos.hpp +0 -15
  397. package/react-native/boost/boost/config/platform/beos.hpp +0 -26
  398. package/react-native/boost/boost/config/platform/bsd.hpp +0 -83
  399. package/react-native/boost/boost/config/platform/cloudabi.hpp +0 -18
  400. package/react-native/boost/boost/config/platform/cray.hpp +0 -18
  401. package/react-native/boost/boost/config/platform/cygwin.hpp +0 -71
  402. package/react-native/boost/boost/config/platform/haiku.hpp +0 -31
  403. package/react-native/boost/boost/config/platform/hpux.hpp +0 -87
  404. package/react-native/boost/boost/config/platform/irix.hpp +0 -31
  405. package/react-native/boost/boost/config/platform/linux.hpp +0 -106
  406. package/react-native/boost/boost/config/platform/macos.hpp +0 -87
  407. package/react-native/boost/boost/config/platform/qnxnto.hpp +0 -31
  408. package/react-native/boost/boost/config/platform/solaris.hpp +0 -31
  409. package/react-native/boost/boost/config/platform/symbian.hpp +0 -97
  410. package/react-native/boost/boost/config/platform/vms.hpp +0 -25
  411. package/react-native/boost/boost/config/platform/vxworks.hpp +0 -422
  412. package/react-native/boost/boost/config/platform/wasm.hpp +0 -23
  413. package/react-native/boost/boost/config/platform/win32.hpp +0 -90
  414. package/react-native/boost/boost/config/platform/zos.hpp +0 -32
  415. package/react-native/boost/boost/config/pragma_message.hpp +0 -31
  416. package/react-native/boost/boost/config/requires_threads.hpp +0 -92
  417. package/react-native/boost/boost/config/stdlib/dinkumware.hpp +0 -324
  418. package/react-native/boost/boost/config/stdlib/libcomo.hpp +0 -93
  419. package/react-native/boost/boost/config/stdlib/libcpp.hpp +0 -180
  420. package/react-native/boost/boost/config/stdlib/libstdcpp3.hpp +0 -482
  421. package/react-native/boost/boost/config/stdlib/modena.hpp +0 -79
  422. package/react-native/boost/boost/config/stdlib/msl.hpp +0 -98
  423. package/react-native/boost/boost/config/stdlib/roguewave.hpp +0 -208
  424. package/react-native/boost/boost/config/stdlib/sgi.hpp +0 -168
  425. package/react-native/boost/boost/config/stdlib/stlport.hpp +0 -258
  426. package/react-native/boost/boost/config/stdlib/vacpp.hpp +0 -74
  427. package/react-native/boost/boost/config/stdlib/xlcpp_zos.hpp +0 -61
  428. package/react-native/boost/boost/config/user.hpp +0 -133
  429. package/react-native/boost/boost/config/warning_disable.hpp +0 -47
  430. package/react-native/boost/boost/config/workaround.hpp +0 -305
  431. package/react-native/boost/boost/config.hpp +0 -67
  432. package/react-native/boost/boost/cstdint.hpp +0 -556
  433. package/react-native/boost/boost/intrusive_ptr.hpp +0 -18
  434. package/react-native/boost/boost/smart_ptr/detail/atomic_count.hpp +0 -103
  435. package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc.hpp +0 -79
  436. package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc_atomic.hpp +0 -63
  437. package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc_x86.hpp +0 -88
  438. package/react-native/boost/boost/smart_ptr/detail/atomic_count_nt.hpp +0 -66
  439. package/react-native/boost/boost/smart_ptr/detail/atomic_count_pt.hpp +0 -104
  440. package/react-native/boost/boost/smart_ptr/detail/atomic_count_spin.hpp +0 -69
  441. package/react-native/boost/boost/smart_ptr/detail/atomic_count_std_atomic.hpp +0 -67
  442. package/react-native/boost/boost/smart_ptr/detail/atomic_count_sync.hpp +0 -72
  443. package/react-native/boost/boost/smart_ptr/detail/atomic_count_win32.hpp +0 -70
  444. package/react-native/boost/boost/smart_ptr/detail/local_counted_base.hpp +0 -148
  445. package/react-native/boost/boost/smart_ptr/detail/local_sp_deleter.hpp +0 -91
  446. package/react-native/boost/boost/smart_ptr/detail/operator_bool.hpp +0 -64
  447. package/react-native/boost/boost/smart_ptr/detail/requires_cxx11.hpp +0 -23
  448. package/react-native/boost/boost/smart_ptr/detail/shared_count.hpp +0 -707
  449. package/react-native/boost/boost/smart_ptr/detail/sp_convertible.hpp +0 -92
  450. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base.hpp +0 -92
  451. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp +0 -163
  452. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_aix.hpp +0 -152
  453. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +0 -185
  454. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp +0 -148
  455. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp +0 -170
  456. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp +0 -200
  457. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp +0 -194
  458. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp +0 -179
  459. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp +0 -186
  460. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_nt.hpp +0 -119
  461. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_pt.hpp +0 -147
  462. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp +0 -174
  463. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_spin.hpp +0 -141
  464. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +0 -147
  465. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_sync.hpp +0 -165
  466. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp +0 -163
  467. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_w32.hpp +0 -140
  468. package/react-native/boost/boost/smart_ptr/detail/sp_counted_impl.hpp +0 -309
  469. package/react-native/boost/boost/smart_ptr/detail/sp_disable_deprecated.hpp +0 -40
  470. package/react-native/boost/boost/smart_ptr/detail/sp_forward.hpp +0 -52
  471. package/react-native/boost/boost/smart_ptr/detail/sp_has_gcc_intrinsics.hpp +0 -27
  472. package/react-native/boost/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp +0 -69
  473. package/react-native/boost/boost/smart_ptr/detail/sp_interlocked.hpp +0 -173
  474. package/react-native/boost/boost/smart_ptr/detail/sp_noexcept.hpp +0 -48
  475. package/react-native/boost/boost/smart_ptr/detail/sp_nullptr_t.hpp +0 -45
  476. package/react-native/boost/boost/smart_ptr/detail/sp_obsolete.hpp +0 -32
  477. package/react-native/boost/boost/smart_ptr/detail/sp_thread_pause.hpp +0 -51
  478. package/react-native/boost/boost/smart_ptr/detail/sp_thread_sleep.hpp +0 -104
  479. package/react-native/boost/boost/smart_ptr/detail/sp_thread_yield.hpp +0 -100
  480. package/react-native/boost/boost/smart_ptr/detail/sp_typeinfo_.hpp +0 -58
  481. package/react-native/boost/boost/smart_ptr/detail/sp_win32_sleep.hpp +0 -49
  482. package/react-native/boost/boost/smart_ptr/intrusive_ptr.hpp +0 -409
  483. package/react-native/boost/boost/smart_ptr/intrusive_ref_counter.hpp +0 -188
  484. package/react-native/cpp/include/RetainableState.h +0 -24
  485. package/react-native/cpp/src/RetainableState.cpp +0 -15
  486. package/react-native/scripts/ruby/include_local_boost.rb +0 -78
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,28 +1,16 @@
1
1
  {
2
+ "name": "@dittolive/ditto",
3
+ "version": "4.5.2-rc.2",
4
+ "description": "Ditto is a cross-platform embeddable NoSQL database that can sync with or without an internet connection.",
5
+ "homepage": "https://ditto.live",
6
+ "license": "SEE LICENSE IN LICENSE.md",
7
+
2
8
  "author": {
3
- "email": "contact@ditto.live",
4
9
  "name": "DittoLive Incorporated.",
10
+ "email": "contact@ditto.live",
5
11
  "url": "https://ditto.live"
6
12
  },
7
- "browser": "web/ditto.es6.js",
8
- "browser/umd": "web/ditto.umd.js",
9
- "browserslist": [
10
- "defaults"
11
- ],
12
- "dependencies": {
13
- "@ungap/weakrefs": "^0.2.0",
14
- "cbor-js": "^0.1.0",
15
- "cbor-redux": "^1.0.0",
16
- "fastestsmallesttextencoderdecoder": "^1.0.22"
17
- },
18
- "description": "Ditto is a cross-platform embeddable NoSQL database that can sync with or without an internet connection.",
19
- "devDependencies": {
20
- "serve": "^14.2.0"
21
- },
22
- "engines": {
23
- "node": ">=14"
24
- },
25
- "homepage": "https://ditto.live",
13
+
26
14
  "keywords": [
27
15
  "ditto",
28
16
  "dittolive",
@@ -33,14 +21,31 @@
33
21
  "sync",
34
22
  "p2p"
35
23
  ],
36
- "license": "SEE LICENSE IN LICENSE.md",
24
+
25
+ "engines": {
26
+ "node": ">=14"
27
+ },
28
+
29
+ "browserslist": [
30
+ "defaults"
31
+ ],
32
+
37
33
  "main": "node/ditto.cjs.js",
38
- "name": "@dittolive/ditto",
34
+ "browser": "web/ditto.es6.js",
35
+ "browser/umd": "web/ditto.umd.js",
36
+ "types": "types/ditto.d.ts",
39
37
  "react-native": "react-native/src/index.ts",
38
+
40
39
  "scripts": {
41
- "play:node": "node --experimental-repl-await --unhandled-rejections=strict playground.cjs",
42
- "play:web": "npx serve --listen 5285"
40
+ "play:web": "npx serve --listen 5285",
41
+ "play:node": "node --experimental-repl-await --unhandled-rejections=strict playground.cjs"
43
42
  },
44
- "types": "types/ditto.d.ts",
45
- "version": "4.5.1"
43
+
44
+ "dependencies": {
45
+ "cbor-redux": "^1.0.0"
46
+ },
47
+
48
+ "devDependencies": {
49
+ "serve": "^14.2.0"
50
+ }
46
51
  }
@@ -153,7 +153,7 @@ dependencies {
153
153
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
154
154
  //noinspection GradleDynamicVersion
155
155
  implementation "com.facebook.react:react-native:+"
156
- implementation files('libs/ditto.aar')
156
+ implementation "live.ditto:ditto:4.5.2-rc.2"
157
157
  }
158
158
 
159
159
  if (isNewArchitectureEnabled()) {
@@ -169,7 +169,7 @@ task downloadBinaries {
169
169
  def defaultArchitectures = ['arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64']
170
170
 
171
171
  defaultArchitectures.each { arch ->
172
- def fileUrl = "https://software.ditto.live/react-native/ditto/4.5.1/android/${arch}/libdittoffi.a"
172
+ def fileUrl = "https://software.ditto.live/react-native/ditto/4.5.2-rc.2/android/${arch}/libdittoffi.a"
173
173
 
174
174
  new File("${project.projectDir}/../dittoffi/android/${arch}").mkdirs()
175
175
  def localFilePath = "${project.projectDir}/../dittoffi/android/${arch}/libdittoffi.a"
@@ -184,20 +184,3 @@ task downloadBinaries {
184
184
  }
185
185
  }
186
186
  preBuild.dependsOn downloadBinaries
187
-
188
- task downloadAar {
189
- def fileUrl = "https://software.ditto.live/react-native/ditto/4.5.1/android/ditto.aar"
190
-
191
- doLast {
192
- new File("${project.projectDir}/libs").mkdirs()
193
-
194
- def localFilePath = "${project.projectDir}/libs/ditto.aar"
195
- if (!new File(localFilePath).exists()) {
196
- println "Downloading file: $fileUrl"
197
- ant.get(src: fileUrl, dest: localFilePath, verbose: true)
198
- } else {
199
- println "File already exists, skipping download: $localFilePath"
200
- }
201
- }
202
- }
203
- preBuild.dependsOn downloadAar
@@ -0,0 +1,141 @@
1
+ #ifndef _ARC_
2
+ #define _ARC_
3
+
4
+ #include <atomic>
5
+ #include <cassert>
6
+ #include <utility>
7
+
8
+ namespace sharedjsi {
9
+
10
+ template <typename T> struct ArcPointee {
11
+ T value;
12
+ mutable std::atomic<size_t> strong_count;
13
+
14
+ ArcPointee(T &&value, size_t strong_count)
15
+ : value /* = */ (std::move(value)), strong_count /* = */ (strong_count) {}
16
+ };
17
+
18
+ template <typename T> class Arc {
19
+ public:
20
+ // Post-condition: refcount = 1.
21
+ Arc(T value) noexcept
22
+ : ptr /* = */ (new ArcPointee<T>(std::move(value), 1)) {}
23
+
24
+ // Post-condition: refcount ±= 0; schedules dtor glue to `-= 1`.
25
+ // There has to be a 1-to-1 relation between `into_raw()` and `from_raw()`.
26
+ static Arc<T> from_raw(void *ptr) noexcept {
27
+ return Arc(static_cast<ArcPointee<T> *>(ptr));
28
+ }
29
+
30
+ // The equivalent of boost's `detach()`.
31
+ // Post-condition: refcount ±= 0; disables the `-= 1` eventual dtor glue.
32
+ // There has to be a 1-to-1 relation between `into_raw()` and `from_raw()`.
33
+ static void *into_raw(ArcPointee<T> &&self) noexcept {
34
+ auto ptr = self.ptr;
35
+ self.ptr = nullptr;
36
+ return static_cast<void *>(ptr);
37
+ }
38
+
39
+ // The equivalent of boost's `get()`.
40
+ // Post-condition: refcount ±= 0; dtor untouched.
41
+ static void *as_raw(Arc<T> const &arc) noexcept { return arc.ptr; }
42
+
43
+ // Borrow a `void *` as a `Arc<T>`, *temporarily*.
44
+ // (i.e., without touching the refcount nor setting up any ownership).
45
+ // - You could then use the copy (clone) ctor to get back an owned `Arc<T>`,
46
+ // via the retain therein.
47
+ // Post-condition: refcount ±= 0; dtor not enabled.
48
+ static Arc<T> &borrow_from_raw(void *&ptr) noexcept {
49
+ return *reinterpret_cast<Arc<T> *>(&ptr);
50
+ }
51
+
52
+ // Copy (clone) constructor
53
+ // Post-condition: refcount += 1; schedules new `-= 1` dtor glue.
54
+ Arc(Arc<T> const &other) noexcept : ptr /* = */ (other.ptr) {
55
+ ++(ptr->strong_count);
56
+ }
57
+
58
+ // Destructor / dtor.
59
+ // Post-condition: refcount = -1.
60
+ ~Arc() {
61
+ if (ptr != nullptr) { // <- if not moved from.
62
+ size_t count = --(ptr->strong_count);
63
+ if (count == 0) {
64
+ delete ptr;
65
+ }
66
+ }
67
+ }
68
+
69
+ // Move constructor
70
+ // Post-condition: refcount ±= 0 (and `rhs.ptr == nullptr`); moves dtor glue
71
+ // from `rhs` to `this`.
72
+ Arc(Arc<T> &&rhs) noexcept : ptr /* = */ (rhs.ptr) { rhs.ptr = nullptr; }
73
+
74
+ // Using `swap()`, we can use temporaries to derive the tricky assignments
75
+ // semantics off the above constructor & destructor operations, thanks to the
76
+ // C++ RAII semantics of the temporary. Post-condition: refcount ±= 0.
77
+ void swap(Arc<T> &rhs) noexcept {
78
+ ArcPointee<T> *rhs_ptr = rhs.ptr;
79
+ rhs.ptr = this->ptr;
80
+ this->ptr = rhs_ptr;
81
+ }
82
+
83
+ // Copy (clone) assignment.
84
+ // Post-condition: rhs refcount += 1; orig `*this` destroyed; schedules new
85
+ // `-= 1` dtor glue.
86
+ Arc<T> &operator=(Arc<T> const &rhs) noexcept {
87
+ {
88
+ Arc temporary{rhs}; // copy ctor: +1 of rhs
89
+ temporary.swap(*this);
90
+ } // dtor: -1 on what used to be `*this`.
91
+ return *this;
92
+ }
93
+
94
+ // Move assignment
95
+ // Post-condition: rhs refcount ±= 0; `rhs.ptr == nullptr`; orig `*this`
96
+ // destroyed. Moved dtor.
97
+ Arc<T> &operator=(Arc<T> &&rhs) noexcept {
98
+ {
99
+ Arc<T> temporary{
100
+ std::move(rhs)}; // move ctor: +0 of rhs; `rhs` is now `nullptr`.
101
+ temporary.swap(*this);
102
+ } // dtor: -1 on what used to be `*this`.
103
+ return *this;
104
+ }
105
+
106
+ // Deref
107
+ // Post-condition: rhs refcount ±= 0; dtor untouched.
108
+ T &operator*() const noexcept {
109
+ assert(ptr != nullptr);
110
+ return ptr->value;
111
+ }
112
+
113
+ // Post-condition: rhs refcount ±= 0; dtor untouched.
114
+ T *operator->() const noexcept {
115
+ assert(ptr != nullptr);
116
+ return &ptr->value;
117
+ }
118
+
119
+ private:
120
+ ArcPointee<T> *ptr;
121
+
122
+ // from raw
123
+ Arc<T>(ArcPointee<T> *ptr) : ptr(ptr) {}
124
+ };
125
+
126
+ #define DEFINE_RETAIN_RELEASE_FOR(T, retain, release) \
127
+ extern "C" { \
128
+ /* Post-condition: refcount += 1; dtor untouched. */ \
129
+ static void retain(void *ptr) { \
130
+ ++(static_cast<ArcPointee<T> *>(ptr)->strong_count); \
131
+ } \
132
+ \
133
+ /* Post-condition: refcount -= 1; dtor untouched. */ \
134
+ static void release(void *ptr) { Arc<T>::from_raw(ptr); } \
135
+ } \
136
+ static_assert(true, \
137
+ "") // <- to require a semi-colon when the macro is invoked.
138
+
139
+ } // namespace sharedjsi
140
+
141
+ #endif // _ARC_
@@ -7,7 +7,8 @@ using namespace facebook::jsi;
7
7
 
8
8
  namespace sharedjsi
9
9
  {
10
- Function uninitialized_ditto_make(Runtime &runtime);
10
+ Function ditto_init_sdk_version(Runtime &runtime);
11
+ Function ditto_uninitialized_ditto_make(Runtime &runtime);
11
12
  Function ditto_shutdown(Runtime &runtime);
12
13
  Function ditto_free(Runtime &runtime);
13
14
  Function ditto_make(Runtime &runtime);
@@ -15,8 +15,9 @@ Function dittoffi_error_description(Runtime &runtime);
15
15
  Function dittoffi_error_free(Runtime &runtime);
16
16
  Function ditto_set_connect_retry_interval(Runtime &runtime);
17
17
  Function ditto_get_sdk_version(Runtime &runtime);
18
+ Function dittoffi_get_sdk_semver(Runtime &runtime);
18
19
  Function ditto_small_peer_info_set_transport_config_data(Runtime &runtime);
19
- Function verify_license(Runtime &runtime);
20
+ Function ditto_verify_license(Runtime &runtime);
20
21
  Function ditto_run_garbage_collection(Runtime &runtime);
21
22
  Function ditto_set_static_websocket_clients(Runtime &runtime);
22
23
  Function ditto_set_sync_group(Runtime &runtime);
@@ -12,6 +12,8 @@ Function ditto_small_peer_info_get_is_enabled(Runtime &runtime);
12
12
  Function ditto_small_peer_info_set_enabled(Runtime &runtime);
13
13
  Function ditto_small_peer_info_get_sync_scope(Runtime &runtime);
14
14
  Function ditto_small_peer_info_set_sync_scope(Runtime &runtime);
15
+ Function ditto_small_peer_info_get_metadata(Runtime &runtime);
16
+ Function ditto_small_peer_info_set_metadata(Runtime &runtime);
15
17
  }
16
18
 
17
19
  #endif /* SmallPeerInfo_H */
@@ -1,18 +1,20 @@
1
1
  #include "Utils.h"
2
- #include "RetainableState.h"
2
+ #include "Arc.hpp"
3
3
 
4
4
  #include <Authentication.h>
5
5
 
6
6
  namespace sharedjsi
7
7
  {
8
8
 
9
+ DEFINE_RETAIN_RELEASE_FOR(Function, v_retain, v_release);
9
10
  extern "C"
10
11
  {
11
12
  void v_auth_client_validity_update(void *ctx, int is_web_valid, int is_x509_valid)
12
13
  {
13
- boost::intrusive_ptr<RetainableState> const wrapped_state {static_cast<RetainableState *>(ctx), true};
14
- ditto_enqueue_call([=, wrapped_state=std::move(wrapped_state)](Runtime *runtime) {
15
- wrapped_state->jsCallback.call(*runtime,
14
+ Arc<Function> const& borrowedJsCallback = Arc<Function>::borrow_from_raw(ctx);
15
+ // copy ctor / retain so as to keep the ArcPointee<Function> alive until the enqueued_call completes.
16
+ ditto_enqueue_call([=, jsCallback=Arc<Function>(borrowedJsCallback)](Runtime *runtime) {
17
+ jsCallback->call(*runtime,
16
18
  Value(static_cast<double>(is_web_valid)),
17
19
  Value(static_cast<double>(is_x509_valid)));
18
20
  });
@@ -20,9 +22,10 @@ void v_auth_client_validity_update(void *ctx, int is_web_valid, int is_x509_vali
20
22
 
21
23
  void v_auth_client_expiring_callback(void *ctx, uint32_t secs_until_expiry)
22
24
  {
23
- boost::intrusive_ptr<RetainableState> const wrapped_state {static_cast<RetainableState *>(ctx), true};
24
- ditto_enqueue_call([=, wrapped_state=std::move(wrapped_state)](Runtime *runtime) {
25
- wrapped_state->jsCallback.call(*runtime,
25
+ Arc<Function> const& borrowedJsCallback = Arc<Function>::borrow_from_raw(ctx);
26
+ // copy ctor / retain so as to keep the ArcPointee<Function> alive until the enqueued_call completes.
27
+ ditto_enqueue_call([=, jsCallback=Arc<Function>(borrowedJsCallback)](Runtime *runtime) {
28
+ jsCallback->call(*runtime,
26
29
  Value(static_cast<double>(secs_until_expiry)));
27
30
  });
28
31
  }
@@ -34,11 +37,11 @@ Function ditto_auth_client_set_validity_listener(Runtime &runtime)
34
37
  {
35
38
  CDitto_t *ditto = jsPointerObjectToCPointer<CDitto_t>(runtime, arguments[0]);
36
39
  Function jsCallback = arguments[1].getObject(runtime).getFunction(runtime);
37
- auto wrappedStateFfiWrapper = boost::intrusive_ptr<RetainableState>(new RetainableState(std::move(jsCallback)));
40
+ Arc<Function> wrappedStateFfiWrapper /* = */ (std::move(jsCallback));
38
41
 
39
42
  ::ditto_auth_client_set_validity_listener(
40
43
  ditto,
41
- wrappedStateFfiWrapper.get(),
44
+ Arc<Function>::as_raw(wrappedStateFfiWrapper),
42
45
  v_retain,
43
46
  v_release,
44
47
  v_auth_client_validity_update);
@@ -121,12 +124,12 @@ Function ditto_auth_client_make_login_provider(Runtime &runtime)
121
124
  size_t count) -> Value
122
125
  {
123
126
  Function expiringCallback = arguments[0].getObject(runtime).getFunction(runtime);
124
- auto wrappedStateFfiWrapper = boost::intrusive_ptr<RetainableState>(new RetainableState(std::move(expiringCallback)));
127
+ Arc<Function> wrappedStateFfiWrapper(std::move(expiringCallback));
125
128
 
126
- CLoginProvider_t *loginProvider = ::ditto_auth_client_make_login_provider(wrappedStateFfiWrapper.get(),
127
- v_retain,
128
- v_release,
129
- v_auth_client_expiring_callback);
129
+ CLoginProvider_t *loginProvider = ::ditto_auth_client_make_login_provider(Arc<Function>::as_raw(wrappedStateFfiWrapper),
130
+ v_retain,
131
+ v_release,
132
+ v_auth_client_expiring_callback);
130
133
 
131
134
  return cPointerToJSPointerObject(runtime, loginProvider);
132
135
  });
@@ -1,27 +1,29 @@
1
- #include <boost/smart_ptr/intrusive_ptr.hpp>
2
- #include <boost/smart_ptr/intrusive_ref_counter.hpp>
3
1
  #include <DQL.h>
4
2
  #include <dittoffi.h>
5
3
 
4
+ #include "Arc.hpp"
6
5
  #include "Utils.h"
7
- #include "RetainableState.h"
8
6
  #include "LiveQuery.h"
9
7
 
10
8
  namespace sharedjsi
11
9
  {
12
10
 
11
+ DEFINE_RETAIN_RELEASE_FOR(Function, v_retain, v_release);
12
+
13
13
  extern "C" {
14
14
  void v_change_handler_with_query_result(void *ctx, ChangeHandlerWithQueryResult_t result)
15
15
  {
16
- boost::intrusive_ptr<RetainableState> const wrapped_state {static_cast<RetainableState *>(ctx), true};
17
- ditto_enqueue_call([=, wrapped_state=std::move(wrapped_state)](Runtime *jsi) {
16
+ Arc<Function> const& borrowedJsCallback = Arc<Function>::borrow_from_raw(ctx);
17
+ // copy ctor / retain so as to keep the ArcPointee<Function> alive until the enqueued_call completes.
18
+ Arc<Function> jsCallback /* = */ (borrowedJsCallback);
19
+ ditto_enqueue_call([=](Runtime *jsi) {
18
20
  Runtime &runtime = *jsi;
19
21
  CDqlResponse_t *query_result = result.query_result;
20
22
 
21
23
  Object obj(runtime);
22
24
  obj.setProperty(runtime, "query_result", cPointerToJSPointerObject(runtime, query_result));
23
25
 
24
- wrapped_state->jsCallback.call(runtime, obj);
26
+ jsCallback->call(runtime, obj);
25
27
  });
26
28
  }
27
29
  }
@@ -122,7 +124,7 @@ Function dittoffi_try_experimental_register_change_observer_str_detached(Runtime
122
124
  slice_ref_uint8_t query_args_cbor = borrowVecAsOptRefSlice(query_args_cbor_vec);
123
125
 
124
126
  Function jsCallback = arguments[3].getObject(runtime).getFunction(runtime);
125
- auto wrappedStateFfiWrapper = boost::intrusive_ptr<RetainableState>(new RetainableState(std::move(jsCallback)));
127
+ Arc<Function> wrappedStateFfiWrapper(std::move(jsCallback));
126
128
 
127
129
  LiveQueryAvailability lq_availability = LIVE_QUERY_AVAILABILITY_ALWAYS;
128
130
  // std::string lq_availability_str = arguments[3].getString(runtime).utf8(runtime);
@@ -139,7 +141,7 @@ Function dittoffi_try_experimental_register_change_observer_str_detached(Runtime
139
141
  query,
140
142
  query_args_cbor,
141
143
  lq_availability,
142
- wrappedStateFfiWrapper.get(),
144
+ Arc<Function>::as_raw(wrappedStateFfiWrapper),
143
145
  v_retain,
144
146
  v_release,
145
147
  v_change_handler_with_query_result);
@@ -4,7 +4,7 @@
4
4
 
5
5
  namespace sharedjsi
6
6
  {
7
- Function uninitialized_ditto_make(Runtime &runtime)
7
+ Function ditto_uninitialized_ditto_make(Runtime &runtime)
8
8
  {
9
9
  return Function::createFromHostFunction(runtime,
10
10
  PropNameID::forAscii(runtime,
@@ -16,7 +16,7 @@ Function uninitialized_ditto_make(Runtime &runtime)
16
16
  size_t count) -> Value
17
17
  {
18
18
  std::string path = jsTypedArrayToCString(runtime, arguments[0]);
19
- UninitializedDitto_t *pointer = ::uninitialized_ditto_make(path.c_str());
19
+ UninitializedDitto_t *pointer = ::ditto_uninitialized_ditto_make(path.c_str());
20
20
  return cPointerToJSPointerObject(runtime, pointer);
21
21
  });
22
22
  }
@@ -72,4 +72,39 @@ Function ditto_make(Runtime &runtime)
72
72
  return cPointerToJSPointerObject(runtime, pointer);
73
73
  });
74
74
  }
75
+
76
+
77
+ Function ditto_init_sdk_version(Runtime &runtime)
78
+ {
79
+ return Function::createFromHostFunction(runtime,
80
+ PropNameID::forAscii(runtime,
81
+ STRINGIFIED_FUNC_NAME()),
82
+ 0,
83
+ [](Runtime &runtime,
84
+ const Value &thisValue,
85
+ const Value *arguments,
86
+ size_t count) -> Value
87
+ {
88
+ std::string platform_str = arguments[0].toString(runtime).utf8(runtime);
89
+ std::string language_str = arguments[1].toString(runtime).utf8(runtime);
90
+ std::string semver_str = arguments[2].toString(runtime).utf8(runtime);
91
+ const char *semver = semver_str.c_str();
92
+
93
+ Language_t language = LANGUAGE_UNKNOWN;
94
+ if (language_str == "JavaScript") {
95
+ language = LANGUAGE_JAVA_SCRIPT;
96
+ }
97
+
98
+ Platform_t platform = PLATFORM_UNKNOWN;
99
+ if (platform_str == "Ios") {
100
+ platform = PLATFORM_IOS;
101
+ } else if (platform_str == "Android") {
102
+ platform = PLATFORM_ANDROID;
103
+ }
104
+
105
+ ::ditto_init_sdk_version(platform, language, semver);
106
+ return Value();
107
+ });
108
+ }
109
+
75
110
  }
@@ -1,11 +1,10 @@
1
+
1
2
  #include "Utils.h"
2
- #include "RetainableState.h"
3
+ #include "LiveQuery.h"
3
4
 
4
5
  namespace sharedjsi
5
6
  {
6
7
 
7
- // TODO: Bridge int64_t! When we'll actually reach a number as big as int64, it will crash.
8
-
9
8
  Function ditto_live_query_signal_available_next(Runtime &runtime)
10
9
  {
11
10
  return Function::createFromHostFunction(runtime,
@@ -145,9 +145,21 @@ Function ditto_get_sdk_version(Runtime &runtime) {
145
145
  });
146
146
  }
147
147
 
148
+ Function dittoffi_get_sdk_semver(Runtime &runtime) {
149
+ return Function::createFromHostFunction(runtime,
150
+ PropNameID::forAscii(runtime,
151
+ STRINGIFIED_FUNC_NAME()),
152
+ 0,
153
+ [](Runtime &runtime,
154
+ const Value &thisValue,
155
+ const Value *arguments,
156
+ size_t count) -> Value
157
+ {
158
+ return cPointerToJSPointerObject<char>(runtime, ::dittoffi_get_sdk_semver());
159
+ });
160
+ }
148
161
 
149
-
150
- Function verify_license(Runtime &runtime) {
162
+ Function ditto_verify_license(Runtime &runtime) {
151
163
  return Function::createFromHostFunction(runtime,
152
164
  PropNameID::forAscii(runtime,
153
165
  STRINGIFIED_FUNC_NAME()),
@@ -159,7 +171,7 @@ Function verify_license(Runtime &runtime) {
159
171
  {
160
172
  std::string license = arguments[0].toString(runtime).utf8(runtime);
161
173
  char **out_err_msg = NULL;
162
- LicenseVerificationResult_t res = ::verify_license(license.c_str(), out_err_msg);
174
+ LicenseVerificationResult_t res = ::ditto_verify_license(license.c_str(), out_err_msg);
163
175
 
164
176
  std::string result;
165
177
  switch (res) {
@@ -1,19 +1,21 @@
1
1
  #include "Utils.h"
2
- #include "RetainableState.h"
2
+ #include "Arc.hpp"
3
3
 
4
4
  #include <Presence.h>
5
5
 
6
6
  namespace sharedjsi
7
7
  {
8
8
 
9
+ DEFINE_RETAIN_RELEASE_FOR(Function, v_retain, v_release);
9
10
  extern "C"
10
11
  {
11
12
  void v_presence_callback(void *ctx, char const *str)
12
13
  {
13
- boost::intrusive_ptr<RetainableState> const wrapped_state {static_cast<RetainableState *>(ctx), true};
14
- ditto_enqueue_call([=, wrapped_state=std::move(wrapped_state), cpp_string = std::string(str)](Runtime *jsi) {
14
+ Arc<Function> const& borrowedJsCallback = Arc<Function>::borrow_from_raw(ctx);
15
+ // copy ctor / retain so as to keep the ArcPointee<Function> alive until the enqueued_call completes.
16
+ ditto_enqueue_call([=, jsCallback=Arc<Function>(borrowedJsCallback), cpp_string = std::string(str)](Runtime *jsi) {
15
17
  Runtime &runtime = *jsi;
16
- wrapped_state->jsCallback.call(runtime, cPointerToJSPointerObject<char>(runtime, cpp_string.c_str()));
18
+ jsCallback->call(runtime, cPointerToJSPointerObject<char>(runtime, cpp_string.c_str()));
17
19
  });
18
20
  }
19
21
  }
@@ -47,10 +49,10 @@ Function ditto_register_presence_v3_callback(Runtime &runtime)
47
49
  {
48
50
  CDitto_t *ditto = jsPointerObjectToCPointer<CDitto_t>(runtime, arguments[0]);
49
51
  Function presence_callback = arguments[1].getObject(runtime).getFunction(runtime);
50
- auto wrappedStateFfiWrapper = boost::intrusive_ptr<RetainableState>(new RetainableState(std::move(presence_callback)));
52
+ Arc<Function> wrappedStateFfiWrapper /* = */ (std::move(presence_callback));
51
53
 
52
54
  ::ditto_register_presence_callback_v3(ditto,
53
- wrappedStateFfiWrapper.get(),
55
+ Arc<Function>::as_raw(wrappedStateFfiWrapper),
54
56
  v_retain,
55
57
  v_release,
56
58
  v_presence_callback);
@@ -105,4 +105,38 @@ Function ditto_small_peer_info_set_sync_scope(Runtime &runtime) {
105
105
  return Value();
106
106
  });
107
107
  }
108
+
109
+ Function ditto_small_peer_info_get_metadata(Runtime &runtime) {
110
+ return Function::createFromHostFunction(runtime,
111
+ PropNameID::forAscii(runtime,
112
+ STRINGIFIED_FUNC_NAME()),
113
+ 0,
114
+ [](Runtime &runtime,
115
+ const Value &thisValue,
116
+ const Value *arguments,
117
+ size_t count) -> Value
118
+ {
119
+ char *metadata = ::ditto_small_peer_info_get_metadata(jsPointerObjectToCPointer<CDitto_t>(runtime, arguments[0]));
120
+ return String::createFromUtf8(runtime, metadata);
121
+ });
122
+
123
+ }
124
+
125
+ Function ditto_small_peer_info_set_metadata(Runtime &runtime) {
126
+ return Function::createFromHostFunction(runtime,
127
+ PropNameID::forAscii(runtime,
128
+ STRINGIFIED_FUNC_NAME()),
129
+ 0,
130
+ [](Runtime &runtime,
131
+ const Value &thisValue,
132
+ const Value *arguments,
133
+ size_t count) -> Value
134
+ {
135
+ CDitto_t *ditto = jsPointerObjectToCPointer<CDitto_t>(runtime, arguments[0]);
136
+ std::string metadata_str = jsTypedArrayToCString(runtime, arguments[1]);
137
+ const char *metadata = metadata_str.c_str();
138
+
139
+ return ::ditto_small_peer_info_set_metadata(ditto, metadata);
140
+ });
141
+ }
108
142
  }
@@ -3,7 +3,6 @@
3
3
 
4
4
  #include "main.h"
5
5
  #include "Utils.h"
6
- #include "RetainableState.h"
7
6
  #include "DQL.h"
8
7
  #include "Document.h"
9
8
  #include "Authentication.h"
@@ -37,7 +36,8 @@ namespace sharedjsi
37
36
  REGISTER_JS_FUNCTION(ditto_identity_config_make_online_with_authentication);
38
37
 
39
38
  // Lifecycle
40
- REGISTER_JS_FUNCTION(uninitialized_ditto_make);
39
+ REGISTER_JS_FUNCTION(ditto_init_sdk_version);
40
+ REGISTER_JS_FUNCTION(ditto_uninitialized_ditto_make);
41
41
  REGISTER_JS_FUNCTION(ditto_make);
42
42
  REGISTER_JS_FUNCTION(ditto_shutdown);
43
43
  REGISTER_JS_FUNCTION(ditto_free);
@@ -109,6 +109,8 @@ namespace sharedjsi
109
109
  REGISTER_JS_FUNCTION(ditto_small_peer_info_set_enabled);
110
110
  REGISTER_JS_FUNCTION(ditto_small_peer_info_get_sync_scope);
111
111
  REGISTER_JS_FUNCTION(ditto_small_peer_info_set_sync_scope);
112
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_get_metadata);
113
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_set_metadata);
112
114
 
113
115
  // FFI functions
114
116
  REGISTER_JS_FUNCTION(withOutBoxCBytes);
@@ -136,11 +138,12 @@ namespace sharedjsi
136
138
  REGISTER_JS_FUNCTION(ditto_set_connect_retry_interval);
137
139
  REGISTER_JS_FUNCTION(ditto_set_device_name);
138
140
  REGISTER_JS_FUNCTION(ditto_get_sdk_version);
141
+ REGISTER_JS_FUNCTION(dittoffi_get_sdk_semver);
139
142
  REGISTER_JS_FUNCTION(ditto_error_message);
140
143
  REGISTER_JS_FUNCTION(dittoffi_error_code);
141
144
  REGISTER_JS_FUNCTION(dittoffi_error_description);
142
145
  REGISTER_JS_FUNCTION(dittoffi_error_free);
143
- REGISTER_JS_FUNCTION(verify_license);
146
+ REGISTER_JS_FUNCTION(ditto_verify_license);
144
147
  REGISTER_JS_FUNCTION(ditto_run_garbage_collection);
145
148
  REGISTER_JS_FUNCTION(ditto_set_static_websocket_clients);
146
149
  REGISTER_JS_FUNCTION(ditto_set_sync_group);