Skip to content

Commit

Permalink
Adds $project/resources folder for KR generation (#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz authored Aug 27, 2024
1 parent 06b26eb commit 4b98143
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ open class GenerateTypedResourcesTask : DefaultTask() {
}

private val Project.krDir: File get() = File(project.buildDir, "KR")
private val Project.resourceFileCollection: FileCollection get() = project.files("src/commonMain/resources")
private val Project.resourceFileCollection: FileCollection get() = project.files(
"resources",
"src/commonMain/resources",
)

private fun generateTypedResources(krDir: File, resourcesFolders: List<File>) {
val file = File(krDir, "KR.kt").ensureParents()
Expand Down

0 comments on commit 4b98143

Please sign in to comment.