Skip to content

Commit

Permalink
feat: update kotlin serialization library version
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmonDantes committed Sep 7, 2023
1 parent a1962b9 commit 794ffea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import io.github.edmondantes.simple.kotlin.multiplatform.gradle.plugin.util.property.gradleProperty

/*
* Copyright (c) 2023. Ilia Loginov
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -22,10 +20,9 @@ group = "io.github.edmondantes"

kotlin {
sourceSets {
val kotlinSerializationVersion: String by gradleProperty { }
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinSerializationVersion")
implementation(libs.kotlin.serialization)
}
}
val commonTest by getting {
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
kotlin.serialization.version=1.5.1

org.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=512m

simple.kmm.kotlin.configuration.enabled=true
Expand Down
3 changes: 3 additions & 0 deletions gradle/libs.version.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[versions]
simplekmm = "0.6.3"
kotlin_serialization_version = "1.6.0"

[libraries]
kotlin_serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "kotlin_serialization_version" }

[plugins]
simple_kotlin_gradle = { id = "io.github.edmondantes.simple.kmm.gradle.plugin", version.ref = "simplekmm" }
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import kotlinx.serialization.descriptors.SerialDescriptor
/**
* Get all annotation from element
*/
@OptIn(ExperimentalSerializationApi::class)
public fun SerialDescriptor.getElementAllAnnotation(index: Int): List<Annotation> =
getElementAnnotations(index) + getElementDescriptor(index).annotations

0 comments on commit 794ffea

Please sign in to comment.