gradle-plugin-0.2.0
What's Changed
Full documentation and samples: https://github.com/ComposeGears/Valkyrie/tree/gradle-plugin-0.2.0?tab=readme-ov-file#gradle-plugin
🐘✨ Gradle plugin features
- [Gradle] Introduce separate code style configuration for generated code by @egorikftp in https://github.com/ComposeGears/Valkyrie/pull/740
⚠️ Breaking changes:
useExplicitMode and indentSize moved from imageVector into codeStyle block due to it will reused for icon pack generation as well
valkyrie {
// Optional: Code style configuration for generated code
codeStyle {
// Add explicit `public` modifier to generated declarations (default: false)
useExplicitMode = false
// Number of spaces used for each level of indentation in generated code (default: 4)
indentSize = 4
}
}
- [Gradle] Introduce iconpack generation and configuration by @egorikftp in https://github.com/ComposeGears/Valkyrie/pull/750
⚠️ Breaking changes:
iconPackNameandnestedPackNameoptions and replaced them with a dedicatediconPackandnestedblocksuseFlatPackagemoved intoiconPackblock
For simple icon pack generation, you can use the following configuration:
valkyrie {
packageName = "com.example.app.icons"
iconPack {
name = "ValkyrieIcons"
targetSourceSet = "commonMain" // icon pack object will be generated in commonMain source set
}
}
For nested icon packs, you can define multiple nested icon packs within the iconPack block:
valkyrie {
packageName = "com.example.app.icons"
iconPack {
name = "ValkyrieIcons"
targetSourceSet = "commonMain" // icon pack object will be generated in commonMain source set
nested {
name = "Outlined"
sourceFolder = "outlined"
}
nested {
name = "Filled"
sourceFolder = "filled"
}
}
}
🧹 Housekeeping
- Add Gradle plugin badge by @egorikftp in https://github.com/ComposeGears/Valkyrie/pull/737
⬆️ Dependencies
- chore(deps): update plugin shadow to v9.3.0 by @renovate[bot] in https://github.com/ComposeGears/Valkyrie/pull/746
Full Changelog: https://github.com/ComposeGears/Valkyrie/compare/gradle-plugin-0.1.0...gradle-plugin-0.2.0