Switch to Material Symbols and use Valkyrie for ImageVector generation (#3873)
* Add material symbols icon module Assisted-by: Claude:claude-opus-5 * Replace material icons with material symbols Assisted-by: Claude:claude-opus-5 * Add simple icons module and migrate CustomIcons Assisted-by: Claude:claude-opus-5
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
plugins {
|
||||
alias(mihonx.plugins.android.library)
|
||||
alias(mihonx.plugins.compose)
|
||||
|
||||
alias(mihonx.plugins.spotless)
|
||||
|
||||
alias(libs.plugins.valkyrie)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "mihon.icons.materialsymbols"
|
||||
}
|
||||
|
||||
spotless {
|
||||
format("svg") {
|
||||
target("src/**/*.svg")
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
}
|
||||
|
||||
valkyrie {
|
||||
packageName = "mihon.icons.materialsymbols"
|
||||
generateAtSync = true
|
||||
|
||||
imageVector {
|
||||
suppressUnusedReceiverWarning = true
|
||||
}
|
||||
|
||||
iconPack {
|
||||
name = "MaterialSymbols"
|
||||
targetSourceSet = "main"
|
||||
|
||||
nested {
|
||||
name = "Rounded"
|
||||
sourceFolder = "rounded"
|
||||
autoMirror = false
|
||||
}
|
||||
|
||||
nested {
|
||||
name = "RoundedFilled"
|
||||
sourceFolder = "roundedFilled"
|
||||
autoMirror = false
|
||||
}
|
||||
|
||||
// https://github.com/ComposeGears/Valkyrie/pull/1019
|
||||
nested {
|
||||
name = "AutoMirroredRounded"
|
||||
sourceFolder = "autoMirroredRounded"
|
||||
autoMirror = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(libs.androidx.compose.ui)
|
||||
}
|
||||
Reference in New Issue
Block a user