Browse Source

chore: add a default value to Res.getAsFlow's byteCount

pull/4500/head
Chanjung Kim 9 months ago
parent
commit
32ce0c6c0e
  1. 6
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesSpec.kt

6
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesSpec.kt

@ -176,7 +176,11 @@ internal fun getResFileSpecs(
""".trimIndent()
)
.addParameter("path", String::class)
.addParameter("byteCount", Int::class)
.addParameter(
ParameterSpec.builder("byteCount", Int::class)
.defaultValue("%L", 8192)
.build()
)
.returns(
ClassName("kotlinx.coroutines.flow", "Flow")
.plusParameter(ByteArray::class.asTypeName())

Loading…
Cancel
Save