From 6db9bd0cd2d10d39ced8d7c6c7f9dd2977d8dd82 Mon Sep 17 00:00:00 2001 From: "Wei Zhang (Devinfra)" Date: Wed, 18 Sep 2024 19:06:07 -0700 Subject: [PATCH] DoNotStripAny on DataClassSuper Summary: ## Context The no arg constructor on the `DataClassSuper` class is inlined into subclasses and later removed. This is causing the Deserialization error on IG4A reported on this [post](https://fb.workplace.com/groups/redex.feedback/posts/8137723819630664). ## The Change This is a temp fix that addresses this particular data class deserialization issue. We should follow up on the underlying issue that avoid inlining ctor from super class into a Serializable subclass. Differential Revision: D62903858 fbshipit-source-id: 5a507440fbb032b5809c30ca14b1d045a2fd963c --- .../dataclassgenerate/superclass/DataClassSuper.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superclass/src/commonMain/kotlin/com/facebook/kotlin/compilerplugins/dataclassgenerate/superclass/DataClassSuper.kt b/superclass/src/commonMain/kotlin/com/facebook/kotlin/compilerplugins/dataclassgenerate/superclass/DataClassSuper.kt index ab77c51..6eb3336 100644 --- a/superclass/src/commonMain/kotlin/com/facebook/kotlin/compilerplugins/dataclassgenerate/superclass/DataClassSuper.kt +++ b/superclass/src/commonMain/kotlin/com/facebook/kotlin/compilerplugins/dataclassgenerate/superclass/DataClassSuper.kt @@ -7,4 +7,6 @@ package com.facebook.kotlin.compilerplugins.dataclassgenerate.superclass -open class DataClassSuper +import com.facebook.proguard.annotations.DoNotStripAny + +@DoNotStripAny open class DataClassSuper