Fixed repo not being correctly marked as jsonclass hence it crashed when fetching obfuscated

This commit is contained in:
Viktor De Pasquale 2019-05-24 15:51:18 +02:00
parent cc74593ddd
commit 4fd0fe3194

View File

@ -1,10 +1,12 @@
package com.topjohnwu.magisk.model.entity package com.topjohnwu.magisk.model.entity
import com.squareup.moshi.Json import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import com.topjohnwu.magisk.utils.timeFormatStandard import com.topjohnwu.magisk.utils.timeFormatStandard
import com.topjohnwu.magisk.utils.toTime import com.topjohnwu.magisk.utils.toTime
import timber.log.Timber import timber.log.Timber
@JsonClass(generateAdapter = true)
data class GithubRepo( data class GithubRepo(
@Json(name = "name") val name: String, @Json(name = "name") val name: String,
@Json(name = "updated_at") val updatedAt: String @Json(name = "updated_at") val updatedAt: String