Skip to content

MinifyEnabled = true strips away Serializable objects #2861

@mahmed1987

Description

@mahmed1987

I am attaching a working project in which the issue can be observed.

As per the documentation of this library , we are not to change add or modify the proguard files (if we are not using named companion objects).

That hasn't been my observation .

I am attaching a code sample to demonstrate the issue i obtain with minifyEnabled true. The project zip file is uploaded here.

Just open this project in android studio and run the android app on a device or simulator. The app would crash with the following stacktrace .

image

Adding -keep @kotlinx.serialization.Serializable class * {*;} to the proguard file would fix this situation , but this is against what the docs say

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions