|
|
@ -42,6 +42,7 @@ object Backup { |
|
|
|
withContext(IO) { |
|
|
|
withContext(IO) { |
|
|
|
synchronized(this@Backup) { |
|
|
|
synchronized(this@Backup) { |
|
|
|
writeListToJson(App.db.bookDao().all, "bookshelf.json", backupPath) |
|
|
|
writeListToJson(App.db.bookDao().all, "bookshelf.json", backupPath) |
|
|
|
|
|
|
|
writeListToJson(App.db.bookmarkDao().all, "bookmark.json", backupPath) |
|
|
|
writeListToJson(App.db.bookGroupDao().all, "bookGroup.json", backupPath) |
|
|
|
writeListToJson(App.db.bookGroupDao().all, "bookGroup.json", backupPath) |
|
|
|
writeListToJson(App.db.bookSourceDao().all, "bookSource.json", backupPath) |
|
|
|
writeListToJson(App.db.bookSourceDao().all, "bookSource.json", backupPath) |
|
|
|
writeListToJson(App.db.rssSourceDao().all, "rssSource.json", backupPath) |
|
|
|
writeListToJson(App.db.rssSourceDao().all, "rssSource.json", backupPath) |
|
|
|