Reducing size of kotlin-runtime


#1

I’m building an light weight game engine with kotlin, but the kotlin-runtime.jar is about 736kb.
A friend of mine says the size of it is too large(my engine with runtime is only 871kb), and we’re wondering a way to reduce this size.
Of cource I didn’t use every class in the runtime, so the unused can be cut.
Can the compiler do this job? or build an external tool?


#2

The compiler does not have any support for that. The most commonly used tool for this purpose is ProGuard.


#3

Great appreciate! thx! :smile: