mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 02:13:13 -05:00
Remove support for backup v1
This commit is contained in:
parent
477aedbffa
commit
88aea311f8
1 changed files with 1 additions and 2 deletions
|
@ -84,7 +84,6 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initParser(): Gson = when (version) {
|
private fun initParser(): Gson = when (version) {
|
||||||
1 -> GsonBuilder().create()
|
|
||||||
2 ->
|
2 ->
|
||||||
GsonBuilder()
|
GsonBuilder()
|
||||||
.registerTypeAdapter<MangaImpl>(MangaTypeAdapter.build())
|
.registerTypeAdapter<MangaImpl>(MangaTypeAdapter.build())
|
||||||
|
@ -93,7 +92,7 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
|
||||||
.registerTypeAdapter<DHistory>(HistoryTypeAdapter.build())
|
.registerTypeAdapter<DHistory>(HistoryTypeAdapter.build())
|
||||||
.registerTypeHierarchyAdapter<TrackImpl>(TrackTypeAdapter.build())
|
.registerTypeHierarchyAdapter<TrackImpl>(TrackTypeAdapter.build())
|
||||||
.create()
|
.create()
|
||||||
else -> throw Exception("Json version unknown")
|
else -> throw Exception("Unknown backup version")
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue