You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use an enum with Moshi-kotlin-codegen (1.9.2).
enum class LevelDto {
@Json(name = "low") low,
@Json(name = "high") high
}
This version is not safe for proguard, but I'm not sure if I should add a @Keep (or a proguard rule to preserve all enums) or a @JsonAdapter(generateAdapter = false). The only "documentation" that I found points to use the latter, but it's 2 years old so I'd have a confirmation if possible.
Trying to use an enum with Moshi-kotlin-codegen (1.9.2).
This version is not safe for proguard, but I'm not sure if I should add a
@Keep
(or a proguard rule to preserve all enums) or a@JsonAdapter(generateAdapter = false)
. The only "documentation" that I found points to use the latter, but it's 2 years old so I'd have a confirmation if possible.moshi/moshi/src/main/resources/META-INF/proguard/moshi.pro
Line 12 in 0c85eae
If it's still right, maybe editing the README.md could help future users?
The text was updated successfully, but these errors were encountered: