Skip to content

Commit

Permalink
fix: can't import/export favorites (closes #194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed May 6, 2024
1 parent 2a330f7 commit 79e2c67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/bnyro/wallpaper/db/obj/BackupFile.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.bnyro.wallpaper.db.obj

import kotlinx.serialization.Serializable

@Serializable
data class BackupFile(
val favorites: List<Wallpaper> = emptyList()
)
2 changes: 2 additions & 0 deletions app/src/main/java/com/bnyro/wallpaper/db/obj/Wallpaper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package com.bnyro.wallpaper.db.obj
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.serialization.Serializable

@Entity(tableName = "favorites")
@Serializable
data class Wallpaper(
@PrimaryKey val imgSrc: String = "",
@ColumnInfo val title: String? = null,
Expand Down

0 comments on commit 79e2c67

Please sign in to comment.