Modify optimize code style in YukiResourcesHookCreator

This commit is contained in:
2022-11-11 21:38:21 +08:00
parent 38c807892d
commit 0e8196d580

View File

@@ -253,17 +253,17 @@ class YukiResourcesHookCreator(@PublishedApi internal val packageParam: PackageP
type = "animator" type = "animator"
} }
/** 设置 Resources 类型为布朗(Boolean) */ /** 设置 Resources 类型为布朗 (Boolean) */
fun bool() { fun bool() {
type = "bool" type = "bool"
} }
/** 设置 Resources 类型为颜色(Color) */ /** 设置 Resources 类型为颜色 (Color) */
fun color() { fun color() {
type = "color" type = "color"
} }
/** 设置 Resources 类型为尺寸(Dimention) */ /** 设置 Resources 类型为尺寸 (Dimention) */
fun dimen() { fun dimen() {
type = "dimen" type = "dimen"
} }
@@ -273,12 +273,12 @@ class YukiResourcesHookCreator(@PublishedApi internal val packageParam: PackageP
type = "drawable" type = "drawable"
} }
/** 设置 Resources 类型为整型(Integer) */ /** 设置 Resources 类型为整型 (Integer) */
fun integer() { fun integer() {
type = "integer" type = "integer"
} }
/** 设置 Resources 类型为布局(Layout) */ /** 设置 Resources 类型为布局 (Layout) */
fun layout() { fun layout() {
type = "layout" type = "layout"
} }
@@ -288,7 +288,7 @@ class YukiResourcesHookCreator(@PublishedApi internal val packageParam: PackageP
type = "plurals" type = "plurals"
} }
/** 设置 Resources 类型为字符串(String) */ /** 设置 Resources 类型为字符串 (String) */
fun string() { fun string() {
type = "string" type = "string"
} }
@@ -298,12 +298,12 @@ class YukiResourcesHookCreator(@PublishedApi internal val packageParam: PackageP
type = "xml" type = "xml"
} }
/** 设置 Resources 类型为位图(Mipmap) */ /** 设置 Resources 类型为位图 (Mipmap) */
fun mipmap() { fun mipmap() {
type = "mipmap" type = "mipmap"
} }
/** 设置 Resources 类型为数组(Array) */ /** 设置 Resources 类型为数组 (Array) */
fun array() { fun array() {
type = "array" type = "array"
} }