aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorIlya Gorbunov <ilya.gorbunov@jetbrains.com>2023-02-10 19:30:54 +0100
committerilya-g <ilya.gorbunov@jetbrains.com>2023-02-13 15:52:22 +0100
commit00210fd03e89169615d08449c405e3f710984f47 (patch)
tree8e8e59a9d3a2e42278a98d0e59d659da38704279 /plugins/base
parent5c30c62eba6ab79df147d7f4625a0a928674591a (diff)
downloaddokka-00210fd03e89169615d08449c405e3f710984f47.tar.gz
dokka-00210fd03e89169615d08449c405e3f710984f47.tar.bz2
dokka-00210fd03e89169615d08449c405e3f710984f47.zip
Set default SinceKotlin version for Wasm platform
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt3
-rw-r--r--plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt14
2 files changed, 14 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
index bd09f7b1..75f43324 100644
--- a/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
+++ b/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
@@ -42,7 +42,8 @@ class SinceKotlinTransformer(val context: DokkaContext) : DocumentableTransforme
Platform.common to SinceKotlinVersion("1.0"),
Platform.jvm to SinceKotlinVersion("1.0"),
Platform.js to SinceKotlinVersion("1.1"),
- Platform.native to SinceKotlinVersion("1.3")
+ Platform.native to SinceKotlinVersion("1.3"),
+ Platform.wasm to SinceKotlinVersion("1.8"),
)
override fun invoke(original: DModule, context: DokkaContext) = original.transform() as DModule
diff --git a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
index aec7e540..d658b50b 100644
--- a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
+++ b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
@@ -136,6 +136,10 @@ class SinceKotlinTest : AbstractRenderingTest() {
sourceRoots = listOf("src/")
analysisPlatform = "js"
}
+ sourceSet {
+ sourceRoots = listOf("src/")
+ analysisPlatform = "wasm"
+ }
}
}
testInline(
@@ -156,7 +160,8 @@ class SinceKotlinTest : AbstractRenderingTest() {
Platform.common to SinceKotlinVersion("1.0"),
Platform.jvm to SinceKotlinVersion("1.0"),
Platform.js to SinceKotlinVersion("1.1"),
- Platform.native to SinceKotlinVersion("1.3")
+ Platform.native to SinceKotlinVersion("1.3"),
+ Platform.wasm to SinceKotlinVersion("1.8"),
)
for(i in sinceKotlin) {
@@ -191,6 +196,10 @@ class SinceKotlinTest : AbstractRenderingTest() {
sourceRoots = listOf("src/")
analysisPlatform = "js"
}
+ sourceSet {
+ sourceRoots = listOf("src/")
+ analysisPlatform = "wasm"
+ }
}
}
testInline(
@@ -213,7 +222,8 @@ class SinceKotlinTest : AbstractRenderingTest() {
Platform.common to SinceKotlinVersion("1.3"),
Platform.jvm to SinceKotlinVersion("1.3"),
Platform.js to SinceKotlinVersion("1.3"),
- Platform.native to SinceKotlinVersion("1.3")
+ Platform.native to SinceKotlinVersion("1.3"),
+ Platform.wasm to SinceKotlinVersion("1.8"),
)
for(i in sinceKotlin) {