Page MenuHomePhabricator

[CommCoreModule] implement C++ DraftStore
ClosedPublic

Authored by kamil on Jul 24 2023, 6:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 16, 6:46 AM
Unknown Object (File)
Thu, Jan 16, 6:46 AM
Unknown Object (File)
Thu, Jan 16, 6:46 AM
Unknown Object (File)
Thu, Jan 16, 6:42 AM
Unknown Object (File)
Mon, Jan 13, 2:08 PM
Unknown Object (File)
Fri, Jan 10, 8:47 AM
Unknown Object (File)
Fri, Jan 10, 8:47 AM
Unknown Object (File)
Fri, Jan 10, 8:47 AM
Subscribers

Details

Summary

Grouping logic in one class to make it cleaner and reuse some code.

NOTE: I will wait with creating diffs for the rest of the stores until this is accepted because rest will be very similar to this one.

Depends on: D8603

Test Plan

Build iOS and Android and play with drafts to make sure functionality still works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Jul 24 2023, 6:25 AM
atul added a subscriber: marcin.

Would be good to get signoff from @tomek or @marcin before landing

This revision is now accepted and ready to land.Jul 24 2023, 11:10 PM
kamil added a reviewer: marcin. kamil added 1 blocking reviewer(s): tomek.Jul 25 2023, 1:52 AM
In D8604#253487, @atul wrote:

Would be good to get signoff from @tomek or @marcin before landing

Thanks @atul

This revision now requires review to proceed.Jul 25 2023, 1:52 AM
tomek added inline comments.
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/DraftStore.cpp
14–17 ↗(On Diff #28962)

Why do we need these?

This revision is now accepted and ready to land.Jul 25 2023, 3:17 AM
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/DraftStore.cpp
14–17 ↗(On Diff #28962)

Thanks for pointing this out.

The constructor will be updated because we want to pass std::shared_ptr<facebook::react::CallInvoker> jsInvoker via constructor.

The default destructor is not needed because is not doing anything and this class is not virtual.