File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
buildSrc/src/main/java/com/google/firebase/gradle/plugins Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,12 @@ class FirebaseLibraryPlugin : Plugin<Project> {
8686 private fun setupApiInformationAnalysis (project : Project , android : LibraryExtension ) {
8787 val srcDirs = android.sourceSets.getByName(" main" ).java.srcDirs
8888
89- val apiInfo = getApiInfo(project, srcDirs)
90- val generateApiTxt = getGenerateApiTxt(project, srcDirs)
89+ val mainSourceSets = android.sourceSets.getByName(" main" )
90+ val getKotlinDirectories = mainSourceSets::class .java.getDeclaredMethod(" getKotlinDirectories" )
91+ val kotlinSrcDirs = getKotlinDirectories.invoke(mainSourceSets)
92+
93+ val apiInfo = getApiInfo(project, kotlinSrcDirs as Set <File >)
94+ val generateApiTxt = getGenerateApiTxt(project, kotlinSrcDirs as Set <File >)
9195 val docStubs = getDocStubs(project, srcDirs)
9296
9397 project.tasks.getByName(" check" ).dependsOn(docStubs)
You can’t perform that action at this time.
0 commit comments