From 683f6bb418bada9c90d2ffbd5040b3968e1c3522 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 26 Jan 2023 23:46:27 +0100 Subject: 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. --- .../kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt | 2 +- plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/base/src') 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 d81cca89..bd09f7b1 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") -- cgit