Remove support for backup v1
Cette révision appartient à :
Parent
477aedbffa
révision
88aea311f8
1 fichiers modifiés avec 1 ajouts et 2 suppressions
|
@ -84,7 +84,6 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
|
|||
}
|
||||
|
||||
private fun initParser(): Gson = when (version) {
|
||||
1 -> GsonBuilder().create()
|
||||
2 ->
|
||||
GsonBuilder()
|
||||
.registerTypeAdapter<MangaImpl>(MangaTypeAdapter.build())
|
||||
|
@ -93,7 +92,7 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
|
|||
.registerTypeAdapter<DHistory>(HistoryTypeAdapter.build())
|
||||
.registerTypeHierarchyAdapter<TrackImpl>(TrackTypeAdapter.build())
|
||||
.create()
|
||||
else -> throw Exception("Json version unknown")
|
||||
else -> throw Exception("Unknown backup version")
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Référencer dans un nouveau ticket