|
|
|
@ -34,6 +34,7 @@ object Backup { |
|
|
|
|
"replaceRule.json", |
|
|
|
|
"readRecord.json", |
|
|
|
|
"searchHistory.json", |
|
|
|
|
"sourceSub.json", |
|
|
|
|
DefaultData.txtTocRuleFileName, |
|
|
|
|
DefaultData.httpTtsFileName, |
|
|
|
|
ReadBookConfig.configFileName, |
|
|
|
@ -66,6 +67,7 @@ object Backup { |
|
|
|
|
writeListToJson(App.db.replaceRuleDao().all, "replaceRule.json", backupPath) |
|
|
|
|
writeListToJson(App.db.readRecordDao().all, "readRecord.json", backupPath) |
|
|
|
|
writeListToJson(App.db.searchKeywordDao().all, "searchHistory.json", backupPath) |
|
|
|
|
writeListToJson(App.db.sourceSubDao().all, "sourceSub.json", backupPath) |
|
|
|
|
writeListToJson(App.db.txtTocRule().all, DefaultData.txtTocRuleFileName, backupPath) |
|
|
|
|
writeListToJson(App.db.httpTTSDao().all, DefaultData.httpTtsFileName, backupPath) |
|
|
|
|
GSON.toJson(ReadBookConfig.configList).let { |
|
|
|
|