pachli-android/core
Nik Clayton 362cdfeb27
fix: Prevent crash when Pachli is a share target (#659)
Crash was occuring because the instance info hadn't been fetched, trying
to take the last item of an empty list.

To fix:

- Expose the instance info as a state flow, with a default. New instance
info is fetched whenever the active account changes.

- Do the same for the emojis supported by the server.

- Update call sites as appropriate.

- Mark `InstanceInfoRepository` as `@Singleton` so it isn't repeatedly
created causing fresh content fetches.

The tests needed updating to get this to work.

- Extract the network fake modules in to a network-test module so
multiple other modules can use them.

- Rewrite `InstanceInfoRepositoryTest` to use Hilt and use Turbine to
test the new flows.

Checking this showed cosmetic bugs in the About layout when instance
info is missing, clean those up.
2024-04-28 18:19:13 +02:00
..
accounts fix: Ensure logging out accounts completes (#515) 2024-03-10 12:25:12 +01:00
activity feat: Update activity transitions, prepare for predictive-back (#650) 2024-04-26 23:18:30 +02:00
common refactor: Simplify and optimize viewBinding delegate (#544) 2024-03-19 16:42:08 +01:00
data fix: Prevent crash when Pachli is a share target (#659) 2024-04-28 18:19:13 +02:00
database refactor: Remove `TabData` type (#576) 2024-03-30 23:27:25 +01:00
designsystem feat: Update activity transitions, prepare for predictive-back (#650) 2024-04-26 23:18:30 +02:00
model refactor: Remove `TabData` type (#576) 2024-03-30 23:27:25 +01:00
navigation ci: Simplify and improve CI speed (#615) 2024-04-15 15:24:07 +02:00
network fix: Prevent crash when Pachli is a share target (#659) 2024-04-28 18:19:13 +02:00
network-test fix: Prevent crash when Pachli is a share target (#659) 2024-04-28 18:19:13 +02:00
preferences feat: Allow the user to trigger update checks (#458) 2024-02-20 14:50:59 +01:00
testing ci: Simplify and improve CI speed (#615) 2024-04-15 15:24:07 +02:00
ui fix(l10n): Update Spanish translations 2024-04-23 22:25:56 +02:00
AndroidManifest.xml