Skip to content

Commit

Permalink
Apply -Xconsistent-data-class-copy-visibility for v11 common module
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Oct 17, 2024
1 parent 4b0cf35 commit 1bf2203
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import love.forte.gradle.common.kotlin.multiplatform.applyTier1
import love.forte.gradle.common.kotlin.multiplatform.applyTier123
import love.forte.gradle.common.kotlin.multiplatform.applyTier2
import love.forte.gradle.common.kotlin.multiplatform.applyTier3
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi

plugins {
kotlin("multiplatform")
Expand All @@ -36,6 +37,13 @@ kotlin {
explicitApi()
applyDefaultHierarchyTemplate()

@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.addAll(
"-Xconsistent-data-class-copy-visibility"
)
}

configKotlinJvm()

js(IR) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import love.forte.simbot.component.onebot.common.annotations.SourceEventConstruc
public data class StatusResult
@ApiResultConstructor
@SourceEventConstructor
constructor(
internal constructor(
public val online: Boolean? = null,
public val good: Boolean = false,
)

0 comments on commit 1bf2203

Please sign in to comment.