I can successfully build executables (compose 1.5.1 and KMP 1.9.0) with Moko, but when I include an svg file in commonMain images it fails to build an executable. Is there such a thing as a wrong type of svg?
Running the Moko build tasks (common and android) there's no problem (it does give a warning after build is complete for both) but when I try to build an Android executable it complains
Failed to parse resource file <project>/shared/build/generated/moko/androidMain/res/drawable/rightsmall.xml
at com.android.builder.png.VectorDrawableRenderer.getReasonForPreprocessing(VectorDrawableRenderer.java:236)
The Moko build warning is
[org.jetbrains.compose.ComposeMultiplatformBuildService$Inject] WARNING: Usage of the Custom Compose Compiler plugin ('androidx.compose.compiler')
with non-JVM targets (Kotlin/Native, Kotlin/JS, Kotlin/WASM) is not supported.
it's not moko-resources issue - you can see that it's android gradle plugin issue. we convert svg to xml by tools from AGP. so this svg not valid for android i see
I can successfully build executables (compose 1.5.1 and KMP 1.9.0) with Moko, but when I include an svg file in commonMain images it fails to build an executable. Is there such a thing as a wrong type of svg?
Running the Moko build tasks (common and android) there's no problem (it does give a warning after build is complete for both) but when I try to build an Android executable it complains
The Moko build warning is
The svg file is