diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesSpec.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesSpec.kt index e4d35becf9..75e85165b3 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesSpec.kt +++ b/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())