klaxon icon indicating copy to clipboard operation
klaxon copied to clipboard

How to remove kotlin-reflect?

Open ppamorim opened this issue 6 years ago • 0 comments

I discovered that Klaxon was including kotlin-reflect (a 11k methods dependency) on my source code. I just realise that I don't need this since I use the Low Level API.

After some research, I managed to solve it doing this:

implementation('com.beust:klaxon:x.x.x') { exclude group: 'org.jetbrains.kotlin', module: 'kotlin-reflect' }

and adding this on proguard-rules.pro:

-dontwarn kotlin.reflect.**

I suggest you to add this on the documentation, could be good no? I know that will make the code dangerous, so be aware to use it.

I managed to solve it by myself + members of kotlinlang Slack. Thanks!

ppamorim avatar May 01 '18 16:05 ppamorim