To make the answer above more accesible, define some extension functions:
fun VectorAsset.resize(size: Int) = this.resize(size.dp)fun VectorAsset.resize(size: Dp) = this.resize(size, size)fun VectorAsset.resize(width: Int, height: Int) = this.resize(width.dp, height.dp)fun VectorAsset.resize(width: Dp, height: Dp) = this.copy(defaultWidth = width, defaultHeight = height)