DevSrSouza / svg-to-compose

Converts SVG and Android Vector Drawable in Compose Multiplatform source code
MIT License
431 stars 36 forks source link

Large SVG causing MethodTooLargeException #16

Open gustavo-invoicex opened 1 year ago

gustavo-invoicex commented 1 year ago

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;

DevSrSouza commented 11 months ago

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