kgp_1.9.20..2.0.0__Main.co.touchlab.skie.analytics.compiler.specific.SpecificCompilerConfigurationAnalytics.kgp_1.9.20.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-linker-plugin-kgp_1.9.20 Show documentation
Show all versions of kotlin-compiler-linker-plugin-kgp_1.9.20 Show documentation
Kotlin compiler plugin that improves Swift interface of a Kotlin Multiplatform framework.
The newest version!
package co.touchlab.skie.analytics.compiler.specific
import co.touchlab.skie.util.toPrettyJson
import kotlinx.serialization.Serializable
import org.jetbrains.kotlin.backend.konan.BinaryOptions
import org.jetbrains.kotlin.backend.konan.KonanConfig
actual fun KonanConfig.getSpecificCompilerConfigurationAnalytics(): String =
AnalyticsData(
objcExportDisableSwiftMemberNameMangling = configuration.get(BinaryOptions.objcExportDisableSwiftMemberNameMangling),
).toPrettyJson()
@Serializable
private data class AnalyticsData(
val objcExportDisableSwiftMemberNameMangling: Boolean?,
)