bug fix
This commit is contained in:
@@ -1 +1 @@
|
|||||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":30,"versionName":"4.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":31,"versionName":"4.2-beta1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||||
@@ -98,7 +98,10 @@ fun updateOldReaderGalleries(context: Context) {
|
|||||||
val json = Json(JsonConfiguration.Stable)
|
val json = Json(JsonConfiguration.Stable)
|
||||||
|
|
||||||
getOldReaderGalleries(context).forEach { gallery ->
|
getOldReaderGalleries(context).forEach { gallery ->
|
||||||
val reader = json.parseJson(File(gallery, "reader.json").readText())
|
val reader = json.parseJson(File(gallery, "reader.json").apply {
|
||||||
|
if (!exists())
|
||||||
|
return@forEach
|
||||||
|
}.readText())
|
||||||
.jsonObject.toMutableMap()
|
.jsonObject.toMutableMap()
|
||||||
|
|
||||||
val codeSerializer = EnumSerializer(Reader.Code::class)
|
val codeSerializer = EnumSerializer(Reader.Code::class)
|
||||||
|
|||||||
Reference in New Issue
Block a user