Skip to content

Commit

Permalink
remove unused KspOptions and KSPCommandLineProcessor from analysis api
Browse files Browse the repository at this point in the history
  • Loading branch information
neetopia committed Sep 12, 2023
1 parent 4d6ae83 commit 0bf74bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 399 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -622,3 +622,17 @@ private fun getDefaultJdkModuleRoots(
result
}
}

fun String?.toKotlinVersion(): KotlinVersion {
if (this == null)
return KotlinVersion.CURRENT

return split('-').first().split('.').map { it.toInt() }.let {
when (it.size) {
1 -> KotlinVersion(it[0], 0, 0)
2 -> KotlinVersion(it[0], it[1], 0)
3 -> KotlinVersion(it[0], it[1], it[2])
else -> KotlinVersion.CURRENT
}
}
}
Loading

0 comments on commit 0bf74bd

Please sign in to comment.