Character was deleted from the local DB both right after sendCharacterToWatch
and again in WritingScreen's completion callback. The second deletion failed
because the character no longer existed, causing the reported random crash
when sending back to the watch. Deletion is now handled only once, in
WritingScreen.
- Removed all the warnings during building
- Upgraded all the libraries
- Upgraded grandle and the SDK version
- Fix japanese strings
- Added vibration permission
When launching the scan screen from the home button, characterId is
loaded asynchronously from the active character. The previous key
(storageRepository) never re-triggered the effect, so characterToNfc
(which sets pendingExportCharacterId) was skipped if characterId was
null on first composition, making the HCE delete unreachable.
When sending a character to the VitalWear watch via HCE, the transfer
is atomic (single NFC interaction). The character was being left in the
app after transfer, allowing it to be cloned indefinitely.
Delete the character from the database immediately after sendCharacterToWatch
succeeds, matching the behavior of physical bracelet transfers which delete
the character once both write phases complete.
- Fix crash when tapping a completed special mission: onClickCollect
was ignoring the missionId passed by SpecialMissionsEntry and using
selectedSpecialMissionId (-1 by default), causing Room to query id=-1
on a non-nullable Flow which throws when no row exists.
- Fix NaN% in current phase win rate: the guard was checking
totalBattlesLost==0 but dividing by currentPhaseBattles, producing
0/0=NaN when total>0 but current phase has no battles yet.
- Guard against empty items list in clearSpecialMission to avoid
NoSuchElementException from random() on an empty collection.
Got tired of having to reinstall all three apps so i ported the companion apps features to vitalwear, now you only need VBH and Vitalwear.
I've also added emblems to items in icons so user isnt confused.
Now they should behave a bit better, and it will not allow the watch to have multiple missions of the same type, plus you can now delete special missions.