HomePhabricator
Diffusion Comm 62c362d0a861

[lib][native] add useVersionSupportedByIdentity hook and use it on native

Description

[lib][native] add useVersionSupportedByIdentity hook and use it on native

Summary:
we should avoid calling commRustModule directly from VersionSupportedChecker

Depends on 12405

Test Plan:
ran the iOS simulator and confirmed that the VERSION_SUPPORTED_BY_IDENTITY_STARTED and VERSION_SUPPORTED_BY_IDENTITY_SUCCESS actions were dispatched.

modified staging identity to set the min supported version to 1000, confirmed that the alert was displayed on simulator

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D12406

Details