Is there a way to compile a kotlin class without i...
# getting-started
n
Is there a way to compile a kotlin class without including the kotlin.Metadata annotation, because its value still exposes class information after obfuscation. (The code i’m compiling will not be used as a library, and doesn’t use kotlin-reflect)
m
What are you using for obfuscation, with which parameters?
n
I’m using proguard, but i have to use the option
-keepattributes *Annotation*
because i’m also using google guice. (which uses the @Inject annotation)
m
Just keep
@Inject
, not every annotation.
n
I thought it wasn’t possible with proguard, or is it? https://www.guardsquare.com/en/proguard/manual/examples#annotations
m
You're right...
n
So I guess that there isn’t a compiler option to disable the metadata generation?
😞 1