Page MenuHomePhabricator

[CommCoreModule] update `setDeviceID` to return JSI Promise instead of value
ClosedPublic

Authored by kamil on Nov 9 2022, 2:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 11:27 PM
Unknown Object (File)
Sun, Nov 3, 11:23 PM
Unknown Object (File)
Sun, Nov 3, 11:20 PM
Unknown Object (File)
Sun, Nov 3, 11:10 PM
Unknown Object (File)
Oct 25 2024, 5:17 PM
Unknown Object (File)
Oct 25 2024, 5:17 PM
Unknown Object (File)
Oct 25 2024, 5:17 PM
Unknown Object (File)
Oct 25 2024, 5:17 PM

Details

Summary

context: ENG-2184

Use JSI promise to await operation execution instead of scheduling operation and returning result immediately.

Test Plan
  1. Build app
  2. Logout
  3. Log returned value and check in the database if the value was set correctly

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil edited the test plan for this revision. (Show Details)
kamil added reviewers: inka, atul.
kamil published this revision for review.Nov 9 2022, 5:29 AM
marcin added a reviewer: tomek.
marcin added inline comments.
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
1003 ↗(On Diff #18252)

I think deviceIDGenerationError suits better here.

rename error to deviceIDGenerationError

This revision is now accepted and ready to land.Nov 14 2022, 8:50 AM