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
F2905545: D5574.diff
Sun, Oct 6, 6:29 AM
Unknown Object (File)
Thu, Sep 26, 9:28 PM
Unknown Object (File)
Wed, Sep 11, 2:34 AM
Unknown Object (File)
Wed, Sep 11, 2:34 AM
Unknown Object (File)
Wed, Sep 11, 2:34 AM
Unknown Object (File)
Wed, Sep 11, 2:34 AM
Unknown Object (File)
Wed, Sep 11, 2:32 AM
Unknown Object (File)
Wed, Sep 11, 2:28 AM

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
Branch
clear-db-queue
Lint
No Lint Coverage
Unit
No Test Coverage

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