Skip to content

Commit

Permalink
directly compile cbor
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Aug 10, 2023
1 parent 2102a2a commit 4b419e9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion kotlinx.serialization
Submodule kotlinx.serialization updated 85 files
+32 −0 CHANGELOG.md
+4 −4 CONTRIBUTING.md
+13 −13 README.md
+131 −40 buildSrc/src/main/kotlin/Java9Modularity.kt
+4 −0 core/api/kotlinx-serialization-core.api
+0 −6 core/build.gradle
+1 −1 core/commonMain/src/kotlinx/serialization/builtins/BuiltinSerializers.kt
+15 −0 core/commonMain/src/kotlinx/serialization/internal/NamedCompanion.kt
+5 −5 core/commonTest/src/kotlinx/serialization/CachedSerializersTest.kt
+0 −2 core/commonTest/src/kotlinx/serialization/InheritableSerialInfoTest.kt
+3 −3 core/commonTest/src/kotlinx/serialization/MetaSerializableTest.kt
+0 −2 core/commonTest/src/kotlinx/serialization/SerialDescriptorAnnotationsTest.kt
+3 −15 core/commonTest/src/kotlinx/serialization/SerializersLookupEnumTest.kt
+1 −2 core/commonTest/src/kotlinx/serialization/SerializersLookupInterfaceTest.kt
+100 −0 core/commonTest/src/kotlinx/serialization/SerializersLookupNamedCompanionTest.kt
+3 −10 core/commonTest/src/kotlinx/serialization/SerializersLookupObjectTest.kt
+25 −1 core/commonTest/src/kotlinx/serialization/SerializersModuleTest.kt
+1 −1 core/commonTest/src/kotlinx/serialization/features/SealedInterfacesSerializationTest.kt
+180 −0 core/commonTest/src/kotlinx/serialization/test/CompilerVersions.kt
+2 −4 core/commonTest/src/kotlinx/serialization/test/CurrentPlatform.common.kt
+0 −4 core/commonTest/src/kotlinx/serialization/test/TestHelpers.kt
+5 −2 core/jsMain/src/kotlinx/serialization/internal/Platform.kt
+1 −6 core/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt
+34 −12 core/jvmMain/src/kotlinx/serialization/internal/Platform.kt
+1 −1 docs/building.md
+4 −4 docs/value-classes.md
+12 −2 dokka/moduledoc.md
+8 −7 formats/README.md
+15 −0 formats/json-okio/build.gradle.kts
+550 −0 formats/json-okio/dokka/okio.package.list
+0 −1 formats/json-okio/gradle.properties
+0 −8 formats/json-tests/build.gradle.kts
+1 −2 formats/json-tests/commonTest/src/kotlinx/serialization/SerializableOnPropertyTypeAndTypealiasTest.kt
+0 −4 formats/json-tests/commonTest/src/kotlinx/serialization/SerializerForNullableTypeTest.kt
+9 −11 formats/json-tests/commonTest/src/kotlinx/serialization/SerializersLookupTest.kt
+8 −5 formats/json-tests/commonTest/src/kotlinx/serialization/features/JsonClassDiscriminatorTest.kt
+10 −11 formats/json-tests/commonTest/src/kotlinx/serialization/features/JsonEnumsCaseInsensitiveTest.kt
+4 −4 formats/json-tests/commonTest/src/kotlinx/serialization/features/JsonNamesTest.kt
+3 −3 formats/json-tests/commonTest/src/kotlinx/serialization/features/JsonNamingStrategyTest.kt
+11 −22 formats/json-tests/commonTest/src/kotlinx/serialization/features/LocalClassesTest.kt
+1 −1 formats/json-tests/commonTest/src/kotlinx/serialization/features/PolymorphicOnClassesTest.kt
+38 −0 formats/json-tests/commonTest/src/kotlinx/serialization/features/PolymorphismTest.kt
+1 −2 formats/json-tests/commonTest/src/kotlinx/serialization/features/SkipDefaults.kt
+2 −2 formats/json-tests/commonTest/src/kotlinx/serialization/features/inline/EncodeInlineElementTest.kt
+9 −9 formats/json-tests/commonTest/src/kotlinx/serialization/features/inline/InlineClassesCompleteTest.kt
+10 −10 formats/json-tests/commonTest/src/kotlinx/serialization/features/inline/InlineClassesTest.kt
+2 −2 formats/json-tests/commonTest/src/kotlinx/serialization/features/inline/InlineMapQuotedTest.kt
+8 −4 formats/json-tests/commonTest/src/kotlinx/serialization/features/inline/ValueClassesInSealedHierarchyTest.kt
+1 −1 ...ts/json-tests/commonTest/src/kotlinx/serialization/features/sealed/SealedInterfacesJsonSerializationTest.kt
+5 −7 formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonMapKeysTest.kt
+4 −6 formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonModesTest.kt
+0 −43 formats/json-tests/commonTest/src/kotlinx/serialization/test/CompilerVersions.kt
+2 −3 formats/json-tests/commonTest/src/kotlinx/serialization/test/CurrentPlatform.common.kt
+0 −4 formats/json-tests/commonTest/src/kotlinx/serialization/test/TestHelpers.kt
+1 −2 formats/json-tests/jsTest/src/kotlinx/serialization/json/DynamicPolymorphismTest.kt
+4 −4 formats/json-tests/jsTest/src/kotlinx/serialization/json/JsonNamesDynamicTest.kt
+1 −6 formats/json-tests/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt
+1 −0 formats/json/api/kotlinx-serialization-json.api
+1 −1 formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonDecoder.kt
+5 −1 formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt
+1 −1 formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/JsonLexer.kt
+9 −10 formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/StringJsonLexer.kt
+0 −10 formats/json/jsMain/src/kotlinx/serialization/json/internal/FormatLanguage.kt
+25 −0 formats/json/jsMain/src/kotlinx/serialization/json/internal/FormatLanguageJs.kt
+0 −35 formats/json/jsMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt
+0 −0 formats/json/jsMain/src/kotlinx/serialization/json/internal/JsonToStringWriterJs.kt
+2 −15 formats/json/jvmMain/src/kotlinx/serialization/json/internal/CharsetReader.kt
+2 −0 formats/json/nativeMain/src/kotlinx/serialization/json/JsonSchemaCache.kt
+16 −1 formats/json/nativeMain/src/kotlinx/serialization/json/internal/FormatLanguage.kt
+0 −35 formats/json/nativeMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt
+1 −0 formats/protobuf/api/kotlinx-serialization-protobuf.api
+24 −17 formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/ProtoBuf.kt
+4 −5 formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/ProtoTypes.kt
+29 −0 formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/ProtobufNothingTest.kt
+0 −3 formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/ProtobufNullAndDefaultTest.kt
+3 −3 formats/protobuf/commonTest/src/kotlinx/serialization/test/CurrentPlatform.common.kt
+1 −6 formats/protobuf/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt
+2 −8 gradle.properties
+12 −6 gradle/configure-source-sets.gradle
+7 −0 gradle/dokka.gradle
+1 −1 gradle/teamcity.gradle
+2 −2 integration-test/gradle.properties
+13 −423 integration-test/kotlin-js-store/yarn.lock
+12 −429 kotlin-js-store/yarn.lock
+4 −0 settings.gradle
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rootProject.name = "vclibrary"
include(":vclib")
include(":vclib-aries")
include(":vclib-openid")

/*
includeBuild("kotlinx.serialization") {
dependencySubstitution {
listOf("", "-jvm", "-iosx64", "-iosarm64", "-iossimulatorarm64").forEach { target ->
Expand All @@ -16,4 +16,4 @@ includeBuild("kotlinx.serialization") {
}
}
}
}
}*/
15 changes: 13 additions & 2 deletions vclib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,28 @@ tasks.withType<PublishToMavenRepository>().configureEach {
exportIosFramework("VcLibKmm", *commonIosExports())
kotlin {


sourceSets {

val cbor by creating {
this.kotlin.srcDir("${project.rootProject.projectDir.path}/kotlinx.serialization/formats/cbor/commonMain/src")
dependencies{
commonImplementationDependencies()
}
}

val commonMain by getting {
dependencies {
commonImplementationDependencies()
api(datetime())
api("at.asitplus:kmmresult:${VcLibVersions.resultlib}")
api("io.matthewnelson.kotlin-components:encoding-base16:${VcLibVersions.encoding}")
api("io.matthewnelson.kotlin-components:encoding-base64:${VcLibVersions.encoding}")
api(serialization("cbor"))
}
dependsOn(cbor)
}



val commonTest by getting

val iosMain by getting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@file:OptIn(ExperimentalSerializationApi::class)
@file:OptIn(ExperimentalUnsignedTypes::class)

package at.asitplus.wallet.lib.iso

Expand All @@ -18,7 +18,7 @@ import kotlinx.serialization.encodeToByteArray
*/
@OptIn(ExperimentalSerializationApi::class)
@Serializable
data class DrivingPrivilege(
data class DrivingPrivilege (
@SerialName("vehicle_category_code")
val vehicleCategoryCode: String,
@ValueTags(1004u)
Expand Down

0 comments on commit 4b419e9

Please sign in to comment.