HomePhabricator
Diffusion Comm c7ea09fab8ba

[native][android] Move database and MMKV initialization to…

Description

[native][android] Move database and MMKV initialization to CommCoreJSIModulePackage

Summary: This diff prevents the Android app from getting into a state that causes a crash loop, described in ENG-7696. It however does not resolve the crash loop if it already occurring.

Test Plan:

  1. Deleted the app off the simulator and redeployed, and the problem was gone (app stopped crash looping after being closed/reopened)
  2. Deployed this fix to production and confirmed it fixed the issue for all 3 users that were affected

Reviewers: marcin, tomek

Reviewed By: tomek

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

Details