Page MenuHomePhabricator

Add NotificationsBridgeQueue module
ClosedPublic

Authored by marcin on Dec 28 2022, 3:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 3:18 PM
Unknown Object (File)
Sat, Dec 14, 4:14 AM
Unknown Object (File)
Sat, Dec 14, 4:14 AM
Unknown Object (File)
Sat, Dec 14, 4:14 AM
Unknown Object (File)
Sat, Dec 14, 4:14 AM
Unknown Object (File)
Sat, Dec 14, 4:14 AM
Unknown Object (File)
Sat, Dec 14, 4:14 AM
Unknown Object (File)
Sat, Dec 14, 4:14 AM
Subscribers

Details

Summary

This differential defines and implements NotificationsBridgeQueue module that will be used in CommIOSNotifications implementation to store JS-related events and actions before JS thread is ready. Code is copy-pasted from Ashoat's RNNotifications fork.
Ashoat's fork: https://github.com/Ashoat/react-native-notifications

Test Plan

Build the app.

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-2334
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

It might be a good idea to add a link to the fork in the summary.

This revision is now accepted and ready to land.Dec 29 2022, 6:03 AM

Copy pasted code will be refactored.

Refactor CommIOSNotificationsBridgeQueue module. Not react-native-notifications fork copy paste any more.

This revision is now accepted and ready to land.Jan 9 2023, 7:04 AM
marcin retitled this revision from Add NotificationsBridgeQueue module - copy pasted from RNNotifications Ashoat fork to Add NotificationsBridgeQueue module.Jan 9 2023, 7:05 AM

Please make sure you've rewritten every single line in your style. It's concerning seeing two styles of conditionals in this diff (seems like an artifact of copy-paste). Conditionals with curly braces are something we generally avoid

native/ios/Comm/CommIOSNotifications/CommIOSNotificationsBridgeQueue.mm
26–27 ↗(On Diff #20686)

Let's avoid this style – please put the curly braces back, like below

42–43 ↗(On Diff #20686)

Here too

ashoat requested changes to this revision.Jan 9 2023, 9:52 AM
This revision now requires changes to proceed.Jan 9 2023, 9:52 AM

Remove actions queue and relevant methods. They were not used in our code.

This revision is now accepted and ready to land.Jan 17 2023, 7:13 AM
This comment was removed by marcin.

Remove methods related to actions since they are not used anywhere in the code. I introduced this change earlier this week, but forgot to update phabricator

This revision was automatically updated to reflect the committed changes.