Skip to content

Commit 192a3a6

Browse files
committed
rename fun
1 parent 7d45a7c commit 192a3a6

File tree

1 file changed

+5
-2
lines changed
  • build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid

1 file changed

+5
-2
lines changed

build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid/Jacoco.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ internal fun Project.configureJacoco(
9191
}
9292

9393
// Collect all java and kotlin source directories from the variant's source sets
94-
fun SourceDirectories.Flat.paths(): Provider<List<String>> = this
94+
fun SourceDirectories.Flat.toFilePaths(): Provider<List<String>> = this
9595
.all
9696
.map { directories -> directories.map { it.asFile.path } }
9797
sourceDirectories.setFrom(
98-
files(variant.sources.java?.paths(), variant.sources.kotlin?.paths())
98+
files(
99+
variant.sources.java?.toFilePaths(),
100+
variant.sources.kotlin?.toFilePaths()
101+
)
99102
)
100103

101104
executionData.setFrom(

0 commit comments

Comments
 (0)