xxfast
08/31/2022, 5:43 AMkotlinx.parcelize
works differently with R8 optimisations
@Parcelize
data class Data(
val param: String? = null
){
val member: Bool = param?.isNotBlank() == true
}
for Data("someParam")
On debug variant, inspecting this member
property reads true
while on release variants this magically reads out false
.
However, when extracted to a extension with a backing delegate, it behaves the same on both variants
@Parcelize
data class Data(
val param: String? = null
)
val Data.member: Bool get() = param?.isNotBlank() == true
Is this a known issue?