Page MenuHomePhabricator

D4302.id14303.diff
No OneTemporary

D4302.id14303.diff

diff --git a/native/cpp/CommonCpp/_generated/CMakeLists.txt b/native/cpp/CommonCpp/_generated/CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/native/cpp/CommonCpp/_generated/CMakeLists.txt
@@ -0,0 +1,41 @@
+project(comm-generated)
+
+# 3.13+ required for CMP0079 to be set
+cmake_minimum_required(VERSION 3.13)
+
+include(GNUInstallDirs)
+
+add_library(comm-generated
+ "NativeModules.h"
+ "NativeModules.cpp"
+)
+
+target_include_directories(comm-generated
+ PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+ PRIVATE
+ # HACK
+ "../../../node_modules/react-native/ReactCommon/react/nativemodule/core"
+ "../../../node_modules/react-native/ReactCommon/jsi"
+ "../../../node_modules/react-native/ReactCommon/callinvoker"
+)
+
+export(TARGETS comm-generated
+ NAMESPACE comm-generated::
+ FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/comm-generated/comm-generated-targets.cmake
+)
+
+install(TARGETS comm-generated EXPORT comm-generated-export
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT comm-generated
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT comm-generated
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT comm-generated
+)
+
+install(EXPORT comm-generated-export
+ FILE comm-generated-targets.cmake
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/comm-generated
+ NAMESPACE comm-generated::
+)
+
+install(FILES "NativeModules.h" DESTINATION include/_generated)
diff --git a/native/cpp/CommonCpp/_generated/NativeModules.h b/native/cpp/CommonCpp/_generated/NativeModules.h
--- a/native/cpp/CommonCpp/_generated/NativeModules.h
+++ b/native/cpp/CommonCpp/_generated/NativeModules.h
@@ -18,27 +18,41 @@
CommCoreModuleSchemaCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
-virtual jsi::Value getDraft(jsi::Runtime &rt, const jsi::String &key) = 0;
-virtual jsi::Value updateDraft(jsi::Runtime &rt, const jsi::Object &draft) = 0;
-virtual jsi::Value moveDraft(jsi::Runtime &rt, const jsi::String &oldKey, const jsi::String &newKey) = 0;
-virtual jsi::Value getAllDrafts(jsi::Runtime &rt) = 0;
-virtual jsi::Value removeAllDrafts(jsi::Runtime &rt) = 0;
-virtual jsi::Value getAllMessages(jsi::Runtime &rt) = 0;
-virtual jsi::Array getAllMessagesSync(jsi::Runtime &rt) = 0;
-virtual jsi::Value processMessageStoreOperations(jsi::Runtime &rt, const jsi::Array &operations) = 0;
-virtual bool processMessageStoreOperationsSync(jsi::Runtime &rt, const jsi::Array &operations) = 0;
-virtual jsi::Value getAllThreads(jsi::Runtime &rt) = 0;
-virtual jsi::Array getAllThreadsSync(jsi::Runtime &rt) = 0;
-virtual jsi::Value processThreadStoreOperations(jsi::Runtime &rt, const jsi::Array &operations) = 0;
-virtual bool processThreadStoreOperationsSync(jsi::Runtime &rt, const jsi::Array &operations) = 0;
-virtual jsi::Value initializeCryptoAccount(jsi::Runtime &rt, const jsi::String &userId) = 0;
-virtual jsi::Value getUserPublicKey(jsi::Runtime &rt) = 0;
-virtual jsi::Value getUserOneTimeKeys(jsi::Runtime &rt) = 0;
-virtual jsi::Object openSocket(jsi::Runtime &rt, const jsi::String &endpoint) = 0;
-virtual double getCodeVersion(jsi::Runtime &rt) = 0;
-virtual jsi::Value setNotifyToken(jsi::Runtime &rt, const jsi::String &token) = 0;
-virtual jsi::Value clearNotifyToken(jsi::Runtime &rt) = 0;
-
+ virtual jsi::Value getDraft(jsi::Runtime &rt, const jsi::String &key) = 0;
+ virtual jsi::Value
+ updateDraft(jsi::Runtime &rt, const jsi::Object &draft) = 0;
+ virtual jsi::Value moveDraft(
+ jsi::Runtime &rt,
+ const jsi::String &oldKey,
+ const jsi::String &newKey) = 0;
+ virtual jsi::Value getAllDrafts(jsi::Runtime &rt) = 0;
+ virtual jsi::Value removeAllDrafts(jsi::Runtime &rt) = 0;
+ virtual jsi::Value getAllMessages(jsi::Runtime &rt) = 0;
+ virtual jsi::Array getAllMessagesSync(jsi::Runtime &rt) = 0;
+ virtual jsi::Value processMessageStoreOperations(
+ jsi::Runtime &rt,
+ const jsi::Array &operations) = 0;
+ virtual bool processMessageStoreOperationsSync(
+ jsi::Runtime &rt,
+ const jsi::Array &operations) = 0;
+ virtual jsi::Value getAllThreads(jsi::Runtime &rt) = 0;
+ virtual jsi::Array getAllThreadsSync(jsi::Runtime &rt) = 0;
+ virtual jsi::Value processThreadStoreOperations(
+ jsi::Runtime &rt,
+ const jsi::Array &operations) = 0;
+ virtual bool processThreadStoreOperationsSync(
+ jsi::Runtime &rt,
+ const jsi::Array &operations) = 0;
+ virtual jsi::Value
+ initializeCryptoAccount(jsi::Runtime &rt, const jsi::String &userId) = 0;
+ virtual jsi::Value getUserPublicKey(jsi::Runtime &rt) = 0;
+ virtual jsi::Value getUserOneTimeKeys(jsi::Runtime &rt) = 0;
+ virtual jsi::Object
+ openSocket(jsi::Runtime &rt, const jsi::String &endpoint) = 0;
+ virtual double getCodeVersion(jsi::Runtime &rt) = 0;
+ virtual jsi::Value
+ setNotifyToken(jsi::Runtime &rt, const jsi::String &token) = 0;
+ virtual jsi::Value clearNotifyToken(jsi::Runtime &rt) = 0;
};
} // namespace react
diff --git a/native/cpp/CommonCpp/_generated/NativeModules.cpp b/native/cpp/CommonCpp/_generated/NativeModules.cpp
--- a/native/cpp/CommonCpp/_generated/NativeModules.cpp
+++ b/native/cpp/CommonCpp/_generated/NativeModules.cpp
@@ -7,96 +7,232 @@
* @generated by codegen project: GenerateModuleH.js
*/
-#include "NativeModules.h"
+#include <_generated/NativeModules.h>
namespace facebook {
namespace react {
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getDraft(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getDraft(rt, args[0].getString(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_updateDraft(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->updateDraft(rt, args[0].getObject(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_moveDraft(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->moveDraft(rt, args[0].getString(rt), args[1].getString(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllDrafts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getAllDrafts(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_removeAllDrafts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->removeAllDrafts(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessages(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getAllMessages(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessagesSync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getAllMessagesSync(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->processMessageStoreOperations(rt, args[0].getObject(rt).getArray(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperationsSync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->processMessageStoreOperationsSync(rt, args[0].getObject(rt).getArray(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreads(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getAllThreads(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreadsSync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getAllThreadsSync(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperations(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->processThreadStoreOperations(rt, args[0].getObject(rt).getArray(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperationsSync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->processThreadStoreOperationsSync(rt, args[0].getObject(rt).getArray(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_initializeCryptoAccount(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->initializeCryptoAccount(rt, args[0].getString(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserPublicKey(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getUserPublicKey(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserOneTimeKeys(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getUserOneTimeKeys(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_openSocket(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->openSocket(rt, args[0].getString(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getCodeVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->getCodeVersion(rt);
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_setNotifyToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->setNotifyToken(rt, args[0].getString(rt));
-}
-static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_clearNotifyToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
- return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)->clearNotifyToken(rt);
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getDraft(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getDraft(rt, args[0].getString(rt));
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_updateDraft(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->updateDraft(rt, args[0].getObject(rt));
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_moveDraft(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->moveDraft(rt, args[0].getString(rt), args[1].getString(rt));
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllDrafts(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getAllDrafts(rt);
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_removeAllDrafts(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->removeAllDrafts(rt);
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessages(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getAllMessages(rt);
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessagesSync(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getAllMessagesSync(rt);
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperations(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->processMessageStoreOperations(rt, args[0].getObject(rt).getArray(rt));
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperationsSync(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->processMessageStoreOperationsSync(
+ rt, args[0].getObject(rt).getArray(rt));
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreads(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getAllThreads(rt);
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreadsSync(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getAllThreadsSync(rt);
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperations(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->processThreadStoreOperations(rt, args[0].getObject(rt).getArray(rt));
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperationsSync(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->processThreadStoreOperationsSync(
+ rt, args[0].getObject(rt).getArray(rt));
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_initializeCryptoAccount(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->initializeCryptoAccount(rt, args[0].getString(rt));
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserPublicKey(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getUserPublicKey(rt);
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserOneTimeKeys(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getUserOneTimeKeys(rt);
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_openSocket(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->openSocket(rt, args[0].getString(rt));
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getCodeVersion(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->getCodeVersion(rt);
+}
+static jsi::Value __hostFunction_CommCoreModuleSchemaCxxSpecJSI_setNotifyToken(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->setNotifyToken(rt, args[0].getString(rt));
+}
+static jsi::Value
+__hostFunction_CommCoreModuleSchemaCxxSpecJSI_clearNotifyToken(
+ jsi::Runtime &rt,
+ TurboModule &turboModule,
+ const jsi::Value *args,
+ size_t count) {
+ return static_cast<CommCoreModuleSchemaCxxSpecJSI *>(&turboModule)
+ ->clearNotifyToken(rt);
}
-CommCoreModuleSchemaCxxSpecJSI::CommCoreModuleSchemaCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
- : TurboModule("CommTurboModule", jsInvoker) {
- methodMap_["getDraft"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getDraft};
- methodMap_["updateDraft"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_updateDraft};
- methodMap_["moveDraft"] = MethodMetadata {2, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_moveDraft};
- methodMap_["getAllDrafts"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllDrafts};
- methodMap_["removeAllDrafts"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_removeAllDrafts};
- methodMap_["getAllMessages"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessages};
- methodMap_["getAllMessagesSync"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessagesSync};
- methodMap_["processMessageStoreOperations"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperations};
- methodMap_["processMessageStoreOperationsSync"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperationsSync};
- methodMap_["getAllThreads"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreads};
- methodMap_["getAllThreadsSync"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreadsSync};
- methodMap_["processThreadStoreOperations"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperations};
- methodMap_["processThreadStoreOperationsSync"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperationsSync};
- methodMap_["initializeCryptoAccount"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_initializeCryptoAccount};
- methodMap_["getUserPublicKey"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserPublicKey};
- methodMap_["getUserOneTimeKeys"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserOneTimeKeys};
- methodMap_["openSocket"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_openSocket};
- methodMap_["getCodeVersion"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getCodeVersion};
- methodMap_["setNotifyToken"] = MethodMetadata {1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_setNotifyToken};
- methodMap_["clearNotifyToken"] = MethodMetadata {0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_clearNotifyToken};
+CommCoreModuleSchemaCxxSpecJSI::CommCoreModuleSchemaCxxSpecJSI(
+ std::shared_ptr<CallInvoker> jsInvoker)
+ : TurboModule("CommTurboModule", jsInvoker) {
+ methodMap_["getDraft"] =
+ MethodMetadata{1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getDraft};
+ methodMap_["updateDraft"] = MethodMetadata{
+ 1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_updateDraft};
+ methodMap_["moveDraft"] = MethodMetadata{
+ 2, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_moveDraft};
+ methodMap_["getAllDrafts"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllDrafts};
+ methodMap_["removeAllDrafts"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_removeAllDrafts};
+ methodMap_["getAllMessages"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessages};
+ methodMap_["getAllMessagesSync"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllMessagesSync};
+ methodMap_["processMessageStoreOperations"] = MethodMetadata{
+ 1,
+ __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperations};
+ methodMap_["processMessageStoreOperationsSync"] = MethodMetadata{
+ 1,
+ __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processMessageStoreOperationsSync};
+ methodMap_["getAllThreads"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreads};
+ methodMap_["getAllThreadsSync"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getAllThreadsSync};
+ methodMap_["processThreadStoreOperations"] = MethodMetadata{
+ 1,
+ __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperations};
+ methodMap_["processThreadStoreOperationsSync"] = MethodMetadata{
+ 1,
+ __hostFunction_CommCoreModuleSchemaCxxSpecJSI_processThreadStoreOperationsSync};
+ methodMap_["initializeCryptoAccount"] = MethodMetadata{
+ 1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_initializeCryptoAccount};
+ methodMap_["getUserPublicKey"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserPublicKey};
+ methodMap_["getUserOneTimeKeys"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getUserOneTimeKeys};
+ methodMap_["openSocket"] = MethodMetadata{
+ 1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_openSocket};
+ methodMap_["getCodeVersion"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_getCodeVersion};
+ methodMap_["setNotifyToken"] = MethodMetadata{
+ 1, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_setNotifyToken};
+ methodMap_["clearNotifyToken"] = MethodMetadata{
+ 0, __hostFunction_CommCoreModuleSchemaCxxSpecJSI_clearNotifyToken};
}
-
} // namespace react
} // namespace facebook

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 11:09 AM (17 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2569075
Default Alt Text
D4302.id14303.diff (22 KB)

Event Timeline