Skip to content

Commit

Permalink
Fix adding non-directory to resources for Android source set
Browse files Browse the repository at this point in the history
#KTIJ-17113 Fixed
  • Loading branch information
Yaroslav Chernyshev authored and Space committed Jun 18, 2021
1 parent 6b8cae2 commit 679e768
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,6 @@ class NewMultiplatformProjectImportingTest : MultiplePluginVersionGradleImportin
checkProjectStructure(exhaustiveModuleList = false, exhaustiveDependencyList = false, exhaustiveSourceSourceRootList = false) {
module("multiplatformb") {
sourceFolder("multiplatformb/src/androidMain/kotlin", JavaSourceRootType.SOURCE)


}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private fun syncKotlinAndAndroidResources(

val project = target.project

androidSourceSet.resources.srcDirs(*kotlinSourceSet.resources.toList().toTypedArray())
androidSourceSet.resources.srcDirs(*kotlinSourceSet.resources.srcDirs.toList().toTypedArray())
if (androidSourceSet.resources.srcDirs.isNotEmpty()) {
androidSourceSet.resources.srcDir(defaultSourceFolder(project, kotlinSourceSet.name, "resources"))
kotlinSourceSet.resources.srcDirs(androidSourceSet.resources.srcDirs)
Expand Down

0 comments on commit 679e768

Please sign in to comment.