Page MenuHomePhabricator

[native] replace `folly::Optional` with `std::optional`
ClosedPublic

Authored by kamil on Jul 12 2023, 6:15 AM.
Tags
None
Referenced Files
F2157610: D8487.id28887.diff
Mon, Jul 1, 2:11 AM
F2157609: D8487.id28886.diff
Mon, Jul 1, 2:11 AM
F2157608: D8487.id28633.diff
Mon, Jul 1, 2:11 AM
F2157586: D8487.diff
Mon, Jul 1, 2:08 AM
Unknown Object (File)
Thu, Jun 27, 4:38 PM
Unknown Object (File)
Tue, Jun 25, 3:44 AM
Unknown Object (File)
Tue, Jun 25, 2:15 AM
Unknown Object (File)
Tue, Jun 25, 2:03 AM
Subscribers

Details

Summary

The point is to avoid adding folly dependency on web.

Emscripten C++17 compatibility will be handled in subsequent diff.

Depends on D8472

Test Plan
  1. Log out
  2. Call getOlmPersistAccountData() -> should return nullopt`
  3. Log in
  4. Call getOlmPersistAccountData()` -> should return string
  5. Tested on both iOS and Android.

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 12 2023, 7:36 AM
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
944–946 ↗(On Diff #28633)

I think this didn't need to be changed (std::optional also has ->), but I haven't used it personally, so maybe there is some difference, and it doesn't really matter anyway.

This revision is now accepted and ready to land.Jul 14 2023, 2:21 AM
This revision now requires review to proceed.Jul 17 2023, 2:25 AM
This revision is now accepted and ready to land.Jul 18 2023, 1:43 AM