@ -1,5 +1,8 @@
package io.legado.app.help.storage
import io.legado.app.App
import io.legado.app.utils.GSON
object Backup {
fun backup() {
@ -9,4 +12,10 @@ object Backup {
fun autoBackup() {
}
private fun backupBookshelf() {
val books = App.db.bookDao().allBooks
val json = GSON.toJson(books)
@ -1,7 +1,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".view.activity.MainActivity">
tools:context=".ui.main.MainActivity">
<group android:id="@+id/menuOnLine">
<item