diff options
author | Ilya Gorbunov <ilya.gorbunov@jetbrains.com> | 2023-02-10 19:30:54 +0100 |
---|---|---|
committer | ilya-g <ilya.gorbunov@jetbrains.com> | 2023-02-13 15:52:22 +0100 |
commit | 00210fd03e89169615d08449c405e3f710984f47 (patch) | |
tree | 8e8e59a9d3a2e42278a98d0e59d659da38704279 /plugins/base | |
parent | 5c30c62eba6ab79df147d7f4625a0a928674591a (diff) | |
download | dokka-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.kt | 3 | ||||
-rw-r--r-- | plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt | 14 |
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) { |