kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
654a32c01c
Uses Hilt to get the database initialization off of the main thread. The initial introduction always has a disproportionate fan-out of boilerplate. In this case, all entry points which were using UIViewModel needed to be annotated in order to let the code gen know that they needed to support it. The PacketRepository is injected into things via the main thread (e.g., the MeshService) but due to the lazy declaration, the database isn't hydrated until the DAO is access while on an IO thread. |
||
---|---|---|
.. | ||
.settings | ||
special | ||
src | ||
.classpath | ||
.gitignore | ||
.project | ||
build.gradle | ||
google-services-example.json | ||
google-services.json | ||
proguard-rules.pro |