fix: add remote sync capability - fix icon backup import from older versions

This commit is contained in:
Martin Filo 2023-06-11 20:02:09 +02:00
parent 4b28bf9f57
commit 05705b1dec

View file

@ -108,12 +108,21 @@ object BackupUtils {
@JsonProperty("_Float") val _Float: Map<String, Float>?, @JsonProperty("_Float") val _Float: Map<String, Float>?,
@JsonProperty("_Long") val _Long: Map<String, Long>?, @JsonProperty("_Long") val _Long: Map<String, Long>?,
@JsonProperty("_StringSet") val _StringSet: Map<String, Set<String>?>?, @JsonProperty("_StringSet") val _StringSet: Map<String, Set<String>?>?,
) {
constructor() : this(
mapOf(),
mapOf(),
mapOf(),
mapOf(),
mapOf(),
mapOf(),
) )
}
data class BackupFile( data class BackupFile(
@JsonProperty("datastore") val datastore: BackupVars, @JsonProperty("datastore") val datastore: BackupVars,
@JsonProperty("settings") val settings: BackupVars, @JsonProperty("settings") val settings: BackupVars,
@JsonProperty("sync-meta") val syncMeta: BackupVars, @JsonProperty("sync-meta") val syncMeta: BackupVars = BackupVars(),
) { ) {
fun restore( fun restore(
ctx: Context, ctx: Context,