Proguard rules for kotlin object

I have a kotlin object (singleton) in my code as :

object Constants {
** …**
}

proguard removes this , however I have tried to skip it with :
-keep MyPackage.Constants

but still proguard remove this class.

How to make proguard skip kotlin object ?

1 Like