Skip to content

Commit 00210fd

Browse files
committed
Set default SinceKotlin version for Wasm platform
1 parent 5c30c62 commit 00210fd

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class SinceKotlinTransformer(val context: DokkaContext) : DocumentableTransforme
4242
Platform.common to SinceKotlinVersion("1.0"),
4343
Platform.jvm to SinceKotlinVersion("1.0"),
4444
Platform.js to SinceKotlinVersion("1.1"),
45-
Platform.native to SinceKotlinVersion("1.3")
45+
Platform.native to SinceKotlinVersion("1.3"),
46+
Platform.wasm to SinceKotlinVersion("1.8"),
4647
)
4748

4849
override fun invoke(original: DModule, context: DokkaContext) = original.transform() as DModule

plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ class SinceKotlinTest : AbstractRenderingTest() {
136136
sourceRoots = listOf("src/")
137137
analysisPlatform = "js"
138138
}
139+
sourceSet {
140+
sourceRoots = listOf("src/")
141+
analysisPlatform = "wasm"
142+
}
139143
}
140144
}
141145
testInline(
@@ -156,7 +160,8 @@ class SinceKotlinTest : AbstractRenderingTest() {
156160
Platform.common to SinceKotlinVersion("1.0"),
157161
Platform.jvm to SinceKotlinVersion("1.0"),
158162
Platform.js to SinceKotlinVersion("1.1"),
159-
Platform.native to SinceKotlinVersion("1.3")
163+
Platform.native to SinceKotlinVersion("1.3"),
164+
Platform.wasm to SinceKotlinVersion("1.8"),
160165
)
161166

162167
for(i in sinceKotlin) {
@@ -191,6 +196,10 @@ class SinceKotlinTest : AbstractRenderingTest() {
191196
sourceRoots = listOf("src/")
192197
analysisPlatform = "js"
193198
}
199+
sourceSet {
200+
sourceRoots = listOf("src/")
201+
analysisPlatform = "wasm"
202+
}
194203
}
195204
}
196205
testInline(
@@ -213,7 +222,8 @@ class SinceKotlinTest : AbstractRenderingTest() {
213222
Platform.common to SinceKotlinVersion("1.3"),
214223
Platform.jvm to SinceKotlinVersion("1.3"),
215224
Platform.js to SinceKotlinVersion("1.3"),
216-
Platform.native to SinceKotlinVersion("1.3")
225+
Platform.native to SinceKotlinVersion("1.3"),
226+
Platform.wasm to SinceKotlinVersion("1.8"),
217227
)
218228

219229
for(i in sinceKotlin) {

0 commit comments

Comments
 (0)