Skip to content

Commit b354955

Browse files
author
Krzysztof Borowy
committed
ksp selection
1 parent b0706ac commit b354955

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/default-storage/android/config.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ String getKspVersion(String kotlinVersion) {
5151
return overriddenKspVersion
5252
}
5353
// https://github.com/google/ksp/releases
54-
return [
54+
def kspVersions = [
5555
"1.9.20-1.0.14",
5656
"1.9.10-1.0.13",
5757
"1.9.0-1.0.13",
@@ -71,7 +71,9 @@ String getKspVersion(String kotlinVersion) {
7171
"1.6.0-1.0.2",
7272
"1.5.31-1.0.1",
7373
"1.5.30-1.0.0",
74-
].find { it.startsWith(kotlinVersion) }
74+
]
75+
76+
return kspVersions.find { it.startsWith(kotlinVersion) } ?: kspVersions.first()
7577
}
7678

7779
// AsyncStorage has default size of 6MB.

0 commit comments

Comments
 (0)