Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions android/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
* Find the latest version of KSP that supports the specified Kotlin version.
*/
static String getKspVersion(String kotlinVersion) {
return [
def availableVersions = [
// Run `scripts/update-ksp-versions.mjs` to update this list
// update-ksp-versions start
"1.9.20-1.0.14",
"1.9.10-1.0.13",
"1.9.0-1.0.13",
"1.8.22-1.0.11",
Expand All @@ -24,7 +25,9 @@ static String getKspVersion(String kotlinVersion) {
"1.5.31-1.0.1",
"1.5.30-1.0.0",
// update-ksp-versions end
].find { it.startsWith(kotlinVersion) }
]
def version = availableVersions.find { it.startsWith(kotlinVersion) }
return version ?: availableVersions[0]
}

ext {
Expand Down