Page MenuHomePhabricator

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

Authored by kamil on Jul 12 2023, 6:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 5:08 AM
Unknown Object (File)
Sat, Dec 14, 5:08 AM
Unknown Object (File)
Sat, Dec 14, 5:08 AM
Unknown Object (File)
Sat, Dec 14, 5:08 AM
Unknown Object (File)
Sat, Dec 14, 5:02 AM
Unknown Object (File)
Tue, Nov 26, 8:00 AM
Unknown Object (File)
Tue, Nov 26, 1:01 AM
Unknown Object (File)
Sun, Nov 24, 5:49 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