Facet serialization changed in order to keep compatibility with previous

versions of Kotlin plugin
This commit is contained in:
Andrey Uskov
2019-06-27 19:43:03 +03:00
parent 87e75bd4cc
commit 404ce1a8c1
4 changed files with 7 additions and 4 deletions
@@ -25,10 +25,12 @@ fun <T> TargetPlatform?.has(klass: Class<T>): Boolean = this != null && subplatf
* also provides better description for multiplatforms.
*/
val TargetPlatform.oldFashionedDescription: String
get() = if (this.isCommon()) "Common (experimental) " else this.single().oldFashionedDescription
// the invocation if isCommon is not preferable as it could be governed by separate flag and may
// to appear independently on count of target platforms
get() = this.singleOrNull()?.oldFashionedDescription ?: "Common (experimental) "
/**
/**
* Renders multiplatform in form
* '$PLATFORM_1 / $PLATFORM_2 / ...'
* e.g.