summaryrefslogtreecommitdiff
path: root/sw-common-model
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-10 17:14:27 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-10 17:14:27 +0100
commitdf9ac938d7f101ffe077751fe2b59a65be940fa8 (patch)
tree29841267710b73b0e74d675cb9f4da8443047f4a /sw-common-model
parentBetter connection logs (diff)
downloadseven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.gz
seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.bz2
seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.zip
Cleanup experimental annotations
Diffstat (limited to 'sw-common-model')
-rw-r--r--sw-common-model/build.gradle.kts4
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt2
2 files changed, 4 insertions, 2 deletions
diff --git a/sw-common-model/build.gradle.kts b/sw-common-model/build.gradle.kts
index dd7b5327..dc95d608 100644
--- a/sw-common-model/build.gradle.kts
+++ b/sw-common-model/build.gradle.kts
@@ -11,6 +11,10 @@ kotlin {
browser() // necessary for local dependency from JS UI module
}
sourceSets {
+ all {
+ languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
+ languageSettings.useExperimentalAnnotation("kotlin.time.ExperimentalTime")
+ }
val commonMain by getting {
dependencies {
api("org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinSerialization")
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt
index 48b26aa4..7b9a3d60 100644
--- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt
+++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/actions/Actions.kt
@@ -4,7 +4,6 @@ import kotlinx.serialization.Serializable
import org.luxons.sevenwonders.model.PlayerMove
import org.luxons.sevenwonders.model.Settings
import org.luxons.sevenwonders.model.wonders.AssignedWonder
-import kotlin.time.ExperimentalTime
import kotlin.time.hours
/**
@@ -103,7 +102,6 @@ class UpdateSettingsAction(
* The action to add a bot to the game. Can only be called in the lobby by the owner of the game.
*/
@Serializable
-@OptIn(ExperimentalTime::class)
class AddBotAction(
/**
* The display name for the bot to add.
bgstack15