-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added different types of fill * Added new testing script * The parser detects now gradient tags * The parser reads now Linear and Radial gradient tags * The parser reads now gradient color stops * The parser correctly parses now linear gradients * Parser now parses radial gradients * Fixed issues with the parsing arguments * The parser now supports linear and radial gradients * Adjusted the gradient imports
- Loading branch information
1 parent
1a67b5b
commit 7e1323e
Showing
6 changed files
with
205 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package br.com.devsrsouza.svg2compose | ||
|
||
import java.io.File | ||
|
||
|
||
fun main(){ | ||
val iconTest = File("/Users/marioferreiravilanova/Documents/Workspace/kotlin/svg-to-compose/src/test/icons") | ||
val src = File("/Users/marioferreiravilanova/Documents/Workspace/kotlin/svg-to-compose/src/test/results").apply { mkdirs() } | ||
|
||
Svg2Compose.parse( | ||
applicationIconPackage = "com.test", | ||
accessorName = "Icons", | ||
outputSourceDirectory = src, | ||
vectorsDirectory = iconTest, | ||
type = VectorType.SVG, | ||
iconNameTransformer = { name, group -> | ||
name.split("-").joinToString(separator = "").removePrefix(group) | ||
}, | ||
allAssetsPropertyName = "AllIcons" | ||
) | ||
} |