Commit Graph

2 Commits

Author SHA1 Message Date
Eric Seidel c59205d079 Make updater library thread safe
This was needed so that it could be called from Dart as well as flutter_main/C++.

It turns out flutter_main does not run on the "ui thread", so when Dart was calling
into the updater it would panic due to thinking the updater (which was using a thread local) was not yet initialized.

Also added the log-panics crate on Android so that panics appear in adb logcat.
2023-03-08 13:03:13 -08:00
Eric Seidel dcf5f080ad refactor: split updater library into layers (#47) 2023-03-08 11:11:10 -06:00