Just found out that `kotlinx.parcelize` works diff...
# android
x
Just found out that
kotlinx.parcelize
works differently with R8 optimisations
Copy code
@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
Copy code
@Parcelize
data class Data(
  val param: String? = null
)

val Data.member: Bool get() = param?.isNotBlank() == true
Is this a known issue?