Merge pull request #22 from nacabaro/database/items
Add items functionality
Added missing icons, ready to merge!
Slowdowns and UI
- Current item can be seen from a character when clicked on it, you can also see how much time left does that item have on that character.
- Fixed slowdown issue in the items screen. Also fixed this issue in the storage screen as it'd also affect it if there are a lot of characters in the storage.
Working items
- Click on use item > then choose the mon you want to apply the item to
Forgot to push the updated db
Here comes the train (with more things)
- Updated available items
- Created ItemsScreenController
- Moved the ItemsScreen to keep code organized
Things
- Added items store and a way to switch between the store and your items
- Added an items dialog, click on it to see details of the item (description, amount) and use it
- Added items store, it lists all the items available
Things items related
- Added a MyItems screen
- Added an ItemElement placeholder
- Included database with all the items in the app (not final)
- Also included some demo items
As of now items don't do anything, i'm still making the UI
Merge pull request #21 from nacabaro/db/data_export
Forgot to include the settingsscreencontroller interface my bad
Forgot to include the settingsscreencontroller interface my bad
Merge pull request #20 from nacabaro/db/data_export
Added data importing/exporting
Finished refactoring the old SettingsScreenController.kt
Forgot to close DB before importing process
This will clear the database lock file before closing the application, ensuring that during the second startup the application does not see anything weird with the data. Not closing the database before import can lead to weird behavior.
Data export working
During export the database will be closed, otherwise the WAL will ruin the export. data will be saved as a .vbhelper file, then the app will be closed to avoid making any changes to the DB
For import, we check if the extension is .vbhelper, otherwise we can corrupt the database, IMPORTANT. Next we delete everything related to RoomDB and we swap it with the new files. Finally the app will be closed to ensure RoomDB is running on the new DB.
Finally, I still have to reintegrate the importApk functionality with the NewSettingsScreenController and get rid of the old one.
Merge pull request #19 from nacabaro/dex/functionality
Dex stuff
Dex stuff
- Added dex domain model, and rearranged class
- Added dex functionality to the dex screen, and updated the corresponding controller
Merge pull request #18 from nacabaro/ui/home_screen
A lot more things
Merge branch 'main' into ui/home_screen
Merge pull request #17 from cfogrady/ObscuredDex
Algorithm to obscure undiscovered digimon
A lot more things
- Moved scan button to inside the home screen
- Added items screen
- Scanning functionality updated to work with BEms
- Different home screen layouts depending on the configuration (BE with BEm, BE with DIm, since they don't have the same data, looking at you, special training)
- It is now possible to import BEms
- Character size is now more accurate, (no more big babies)
- Once sent to the watch, characters are deleted from the app, and it shouldn't fail
- Updated domain model to support evolution history.
TODO:
- Reorganize some of the code, mostly SQL queries and reorganize the scan screen functionality
- Create home layout for the VB watch
- Start figuring out reading data from the VB
- Also create VB data domain model
- Also start figuring out writing to the VB (it's 3 steps)
- Block off scan button until secrets are imported
- Start working with the dex
- Update domain model
- Use cfogrady's blank character when not seen
- Cancel character upload in case the app database does not contain the card for it (otherwise, the watch will delete the character)
- Export character data (in case of any app issues or changing phones)
(Also added some more icons)
Woo