Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
jsi::Value CommCoreModule::processIntegrityStoreOperations( | jsi::Value CommCoreModule::processIntegrityStoreOperations( | ||||
jsi::Runtime &rt, | jsi::Runtime &rt, | ||||
jsi::Array operations) { | jsi::Array operations) { | ||||
return this->integrityStore.processStoreOperations(rt, std::move(operations)); | return this->integrityStore.processStoreOperations(rt, std::move(operations)); | ||||
} | } | ||||
jsi::Value CommCoreModule::processSyncedMetadataStoreOperations( | |||||
jsi::Runtime &rt, | |||||
jsi::Array operations) { | |||||
return this->syncedMetadataStore.processStoreOperations( | |||||
rt, std::move(operations)); | |||||
} | |||||
void CommCoreModule::terminate(jsi::Runtime &rt) { | void CommCoreModule::terminate(jsi::Runtime &rt) { | ||||
TerminateApp::terminate(); | TerminateApp::terminate(); | ||||
} | } | ||||
void CommCoreModule::persistCryptoModules( | void CommCoreModule::persistCryptoModules( | ||||
bool persistContentModule, | bool persistContentModule, | ||||
bool persistNotifsModule) { | bool persistNotifsModule) { | ||||
folly::Optional<std::string> storedSecretKey = | folly::Optional<std::string> storedSecretKey = | ||||
▲ Show 20 Lines • Show All 963 Lines • ▼ Show 20 Lines | : facebook::react::CommCoreModuleSchemaCxxSpecJSI(jsInvoker), | ||||
cryptoThread(std::make_unique<WorkerThread>("crypto")), | cryptoThread(std::make_unique<WorkerThread>("crypto")), | ||||
draftStore(jsInvoker), | draftStore(jsInvoker), | ||||
threadStore(jsInvoker), | threadStore(jsInvoker), | ||||
messageStore(jsInvoker), | messageStore(jsInvoker), | ||||
reportStore(jsInvoker), | reportStore(jsInvoker), | ||||
userStore(jsInvoker), | userStore(jsInvoker), | ||||
keyserverStore(jsInvoker), | keyserverStore(jsInvoker), | ||||
communityStore(jsInvoker), | communityStore(jsInvoker), | ||||
integrityStore(jsInvoker) { | integrityStore(jsInvoker), | ||||
syncedMetadataStore(jsInvoker) { | |||||
GlobalDBSingleton::instance.enableMultithreading(); | GlobalDBSingleton::instance.enableMultithreading(); | ||||
} | } | ||||
double CommCoreModule::getCodeVersion(jsi::Runtime &rt) { | double CommCoreModule::getCodeVersion(jsi::Runtime &rt) { | ||||
return this->codeVersion; | return this->codeVersion; | ||||
} | } | ||||
jsi::Value CommCoreModule::setNotifyToken(jsi::Runtime &rt, jsi::String token) { | jsi::Value CommCoreModule::setNotifyToken(jsi::Runtime &rt, jsi::String token) { | ||||
▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines |