fix(AppUpdate): prevent githubApi response data class to be obfuscated
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
package io.legado.app.help.update
|
package io.legado.app.help.update
|
||||||
|
|
||||||
|
import androidx.annotation.Keep
|
||||||
import com.google.gson.annotations.SerializedName
|
import com.google.gson.annotations.SerializedName
|
||||||
import io.legado.app.exception.NoStackTraceException
|
import io.legado.app.exception.NoStackTraceException
|
||||||
import java.time.Instant
|
import java.time.Instant
|
||||||
|
|
||||||
|
@Keep
|
||||||
data class AppReleaseInfo(
|
data class AppReleaseInfo(
|
||||||
val appVariant: AppVariant,
|
val appVariant: AppVariant,
|
||||||
val createdAt: Long,
|
val createdAt: Long,
|
||||||
@@ -27,6 +29,7 @@ enum class AppVariant {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
data class GithubRelease(
|
data class GithubRelease(
|
||||||
val assets: List<Asset>?,
|
val assets: List<Asset>?,
|
||||||
val body: String,
|
val body: String,
|
||||||
@@ -41,6 +44,7 @@ data class GithubRelease(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
data class Asset(
|
data class Asset(
|
||||||
@SerializedName("browser_download_url")
|
@SerializedName("browser_download_url")
|
||||||
val apkUrl: String,
|
val apkUrl: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user