Yahor
11/12/2024, 1:41 PMefemoney
11/12/2024, 3:44 PMYahor
11/12/2024, 3:52 PMefemoney
11/12/2024, 5:41 PMStefan Oltmann
11/13/2024, 3:08 PMYahor
11/13/2024, 3:18 PMefemoney
11/24/2024, 6:59 PMYahor
11/24/2024, 7:02 PMYahor
11/25/2024, 9:46 AMefemoney
11/25/2024, 1:01 PMdependencies {
implementation("valkyrie:cli:X.X.X")
}
// In code
Valkyrie.run(
inputDir = File("/my/svgs/etc"),
... other valkyrie options available on the command line
)
OR if published dependency jar is not possible, normal cli jar/zip will still work ๐๐พ
// download valkyrie-cli and unzip
./valkyrie --input-dir="/my/svgs/etc" ...other valkyrie options
If packaged jar then it should have the same entry point as on the CLI, supporting the same optionsYahor
11/25/2024, 2:44 PMefemoney
11/25/2024, 3:12 PMefemoney
04/17/2025, 2:06 PMGreat! Asking bc the androidx one does an intermediate svg -> vd xml -> ivJust cloned the project (amazing) and found out it also uses androidx under the hood so
SVG -> VectorDrawable -> IR -> ImageVector
just correcting my statement as earlier I thought you did the parsing manually from svg.
Also, sharing my use case:
Since there isnt a Gradle Plugin or JVM lib yet & I need access to IR (so I can do some transformations eg add autoMirror
to specifc icons), I am cloning & publishing to local folder in my project.
I am planning to run SvgXmlParser.toIrImageVector(...)
, do some custom logic on the IR, then eventually convert that to image vector that I will write out. Looking good so far ๐efemoney
04/18/2025, 7:15 PMYahor
04/25/2025, 6:23 PM