DevSrSouza / svg-to-compose

Converts SVG and Android Vector Drawable in Compose Multiplatform source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Large SVG causing MethodTooLargeException

gustavo-invoicex opened this issue · comments

when the vector is big, it has given MethodTooLargeException

example: Caused by: org.jetbrains.org.objectweb.asm.MethodTooLargeException: Method too large: ./assets/vectors/AppMonetizationKt.getAppMonetization (./assets/VectorsGroup;)Landroidx/compose/ui/graphics/vector/ImageVector;

I think we should validate how much draw calls will be exported and then, split in multiple functions if to large