Skip to content

Commit

Permalink
Fix class name
Browse files Browse the repository at this point in the history
  • Loading branch information
cupertank committed Jul 11, 2024
1 parent 6fa0b87 commit 804636a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ abstract class PrimitivesTask : DefaultTask() {
val sourcesWithMppInfo = inputFiles
.filterNot { it.absolutePath.startsWith(generationPath.get().asFile.absolutePath) }
.map { source ->
val isMpp = findSourceSetName(source) == "commonMain"
val isCommon = findSourceSetName(source) == "commonMain"

FileWithMpp(source, isMpp)
FileWithCommon(source, isCommon)
}

val analyzeFun = when(compilation.get().platformType) {
Expand All @@ -74,7 +74,7 @@ abstract class PrimitivesTask : DefaultTask() {
val compilerConfig = Analyze.createCompilerConfig(isMpp)

for (source in sourcesWithMppInfo) {
compilerConfig.addKotlinSourceRoot(source.file.path, source.isMpp)
compilerConfig.addKotlinSourceRoot(source.file.path, source.isCommon)
}

compilerConfig.addJvmClasspathRoots(libraries.files.filterNotNull())
Expand All @@ -98,5 +98,5 @@ abstract class PrimitivesTask : DefaultTask() {
}


data class FileWithMpp(val file: File, val isMpp: Boolean)
data class FileWithCommon(val file: File, val isCommon: Boolean)
}

0 comments on commit 804636a

Please sign in to comment.