52191905463490bdf2cd4c788f04759db436e55c
This commit introduces several improvements to the automatic synchronization feature: - **Recipe Synchronization:** Recipes are now included in the automatic JSON export and import process, ensuring all user data is synchronized. - **Separated Sync Logic:** The automatic synchronization process has been refactored to separate import and export operations. Data is now imported on app startup (ON_START) and exported on app shutdown (ON_STOP), preventing conflicts and crashes that occurred due to simultaneous read/write operations. - **Upsert for Imports:** JSON import functions for notes, shopping lists, and recipes now use an "upsert" strategy. This means existing items are updated, and new items are inserted, preventing primary key violations and app crashes during import. - **JSON Parsing Error Handling:** Added try-catch blocks around JSON deserialization to gracefully handle malformed JSON data in sync files, improving app stability. - **Build Fix:** Corrected a compilation error related to the return type of upsertShoppingList in the NoteshopRepository interface.
Description
Noteshop is a versatile and privacy-focused application for managing your notes, shopping lists, and recipes all in one place. It is designed to be simple, efficient, and fully under your control
Languages
Kotlin
98%
Python
2%