From ab3bd2840cf2ddf705a30772a6cfd974c989968a Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 26 Jan 2023 23:46:27 +0100 Subject: [PATCH] Set default SinceKotlin version for Common to 1.0 Avoids the confusion when original 1.0 declarations can be thought of having since kotlin version 1.2 because their common documentation is shown on the first tab. Common declaration are removed from documentation versions < 1.2 with a different approach - by not configuring a common source set. --- .../transformers/pages/annotations/SinceKotlinTransformer.kt | 2 +- .../base/src/test/kotlin/content/annotations/SinceKotlinTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 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 d81cca8938..bd09f7b1c0 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt @@ -39,7 +39,7 @@ class SinceKotlinVersion constructor(str: String) : Comparable with(funcs) { val sinceKotlin = mapOf( - Platform.common to SinceKotlinVersion("1.2"), + Platform.common to SinceKotlinVersion("1.0"), Platform.jvm to SinceKotlinVersion("1.0"), Platform.js to SinceKotlinVersion("1.1"), Platform.native to SinceKotlinVersion("1.3")