Skip to content

Commit 2e0f795

Browse files
committed
Mark release 0.90.2
2 parents 02a9bd1 + 803497a commit 2e0f795

File tree

63 files changed

+3435
-1578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+3435
-1578
lines changed

Changelog.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
# 0.90.2 Mooor Rocketpower!
2+
Changes:
3+
- Update to Kotlin 2.0.21 / Kotlinx.serialization 1.7.3
4+
- Add support for Android native targets (@whyoleg in #242)
5+
16
# 0.90.2-beta1 Rocketpower!
27
Changes:
8+
- Update to Kotlin 2.0.20 / kotlinx.serialization 1.7.2
39
- Extensive optimization of decoding (serialization), parsing
410
(KtXmlReader) including the creation of the xmlDescriptors.
511
- Add a new preset `fast` for a config/policy that chooses speed over
@@ -18,8 +24,19 @@ Changes:
1824
children as value child), when an unknown tag is encountered, allow
1925
this to be matched against a single! `XmlSerializer` from the module.
2026
This aids #225.
27+
- Capture format parsing errors in XmlParsingException #228
2128

2229
Fixes:
30+
- Fix siblingsToFragment for native/js so that it terminates on end of
31+
stream, even if this doesn't include DocumentEnd event.
32+
- Make `@XmlValue` work with regular types (to support generic parsing
33+
of element content of variable type, some including mixed/text content)
34+
– probably also fixes #238.
35+
- Better support `@XmlSerialName` where value (localname) is defaulted.
36+
Change this behaviour to actually use the same algorithm as normally
37+
(not using the FQCN).
38+
- More reluctant caching of extended type descriptors such that type
39+
parameters work correctly with caching.
2340
- Fix NodeSerializer in the serialization module to properly forward
2441
to the actual implementation.
2542
- Don't make the companion of `XmlDeclMode` internal (#219). This is a
@@ -28,6 +45,7 @@ Fixes:
2845
- Fix deserialization with contextual serializer #220
2946
- Fix `NamespaceHolder.namespacesAtCurrentDepth` for nested
3047
declarations.
48+
- Fix infinite recursion issue with xmlStreaming.newWriter / newReader
3149

3250
# 0.90.1 Fix Android
3351
- Fix android plugin dependency.

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,19 @@ package. The `JVM` and `Android` packages provide the native
8585
implementations and depend on (publishing) the `jvmCommon` package.
8686
#### multiplatform (will default to multiplatform implementation for JVM/Android)
8787
```
88-
implementation("io.github.pdvrieze.xmlutil:core:0.90.1")
88+
implementation("io.github.pdvrieze.xmlutil:core:0.90.2")
8989
```
9090
#### **Optional** JVM – uses the stax API _not available_ on Android
9191
```
92-
implementation("io.github.pdvrieze.xmlutil:core-jvm:0.90.1")
92+
implementation("io.github.pdvrieze.xmlutil:core-jvm:0.90.2")
9393
```
9494
#### **Optional** Android – Uses the android streaming library
9595
```
96-
implementation("io.github.pdvrieze.xmlutil:core-android:0.90.1")
96+
implementation("io.github.pdvrieze.xmlutil:core-android:0.90.2")
9797
```
9898
#### JS – Wraps DOM
9999
```
100-
implementation("io.github.pdvrieze.xmlutil:core-js:0.90.1")
100+
implementation("io.github.pdvrieze.xmlutil:core-js:0.90.2")
101101
```
102102

103103
#### Native
@@ -108,19 +108,19 @@ that mirrors the Java API)
108108
### Serialization
109109
#### multiplatform
110110
```
111-
implementation("io.github.pdvrieze.xmlutil:serialization:0.90.1")
111+
implementation("io.github.pdvrieze.xmlutil:serialization:0.90.2")
112112
```
113113
#### JVM
114114
```
115-
implementation("io.github.pdvrieze.xmlutil:serialization-jvm:0.90.1")
115+
implementation("io.github.pdvrieze.xmlutil:serialization-jvm:0.90.2")
116116
```
117117
#### Android
118118
```
119-
implementation("io.github.pdvrieze.xmlutil:serialization-android:0.90.1")
119+
implementation("io.github.pdvrieze.xmlutil:serialization-android:0.90.2")
120120
```
121121
#### js
122122
```
123-
implementation("io.github.pdvrieze.xmlutil:serialization-js:0.90.1")
123+
implementation("io.github.pdvrieze.xmlutil:serialization-js:0.90.2")
124124
```
125125

126126
### -Ktor- (Deprecated)

benchmark/build.gradle.kts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import net.devrieze.gradle.ext.addNativeTargets
2-
31
/*
42
* Copyright (c) 2024.
53
*
@@ -26,7 +24,7 @@ plugins {
2624
id("projectPlugin")
2725
alias(libs.plugins.kotlinSerialization)
2826
alias(libs.plugins.allopen)
29-
alias(libs.plugins.dokka)
27+
// alias(libs.plugins.dokka)
3028
// alias(libs.plugins.jmh)
3129
signing
3230
}

benchmark/src/jvmTest/kotlin/nl/adaptivity/xmlutil/benchmark/test/DeserializationTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ open class DeserializationTest: Deserialization() {
4040
override fun setup() {
4141
super.setup()
4242
}
43+
4344
@Test
4445
fun testDeserializeGenericSpeedImpl() {
4546
measure("Deserialize with fresh configuration",5) { testDeserializeGenericSpeedImpl(DummyBlackHole) }

build.gradle.kts

+3-10
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,11 @@
1818
* under the License.
1919
*/
2020

21-
import net.devrieze.gradle.ext.configureDokka
22-
import net.devrieze.gradle.ext.envAndroid
23-
import net.devrieze.gradle.ext.envJvm
2421
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel
2522
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
26-
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
27-
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
28-
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
2923
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
3024
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
3125
import org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask
32-
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
33-
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
34-
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget
35-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3626

3727
buildscript {
3828
repositories {
@@ -114,3 +104,6 @@ idea {
114104
contentRoot = projectDir
115105
}
116106
}
107+
108+
tasks.withType<DokkaMultiModuleTask>().configureEach {
109+
}

core/android/build.gradle.kts

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ base {
3737
archivesName = "core-android"
3838
}
3939

40+
config {
41+
dokkaModuleName = "core-android"
42+
dokkaOverrideTarget = "Android"
43+
}
44+
4045
val autoModuleName = "net.devrieze.xmlutil.core.android"
4146

4247
kotlin {
@@ -89,7 +94,7 @@ publishing {
8994
create<MavenPublication>("mavenKotlin") {
9095
artifactId = "core-android"
9196
from(components["java"])
92-
artifact(tasks["kotlinSourcesJar"])
97+
artifact(tasks.named("kotlinSourcesJar"))
9398
}
9499
}
95100
}

core/android/src/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Module coreAndroid
2+
Module providing Android specific parsing implementations. As the
3+
generic implementations are based on the Android implementations, this
4+
module is deprecated except for those cases that require:
5+
- compatibility
6+
- integration with the native pull parser implementation (reading only)
7+
8+
# Package nl.adaptivity.xmlutil.core
9+
Core package for a wrapper that provides XML pull parsing access. Note
10+
that the implementations may do some adjustments beyond what is provided
11+
by the underlying implementation to improve compatibility across platforms.
12+
The access point to the package/module is (XmlStreaming)[nl.adaptivity.xml.XmlStreaming].

0 commit comments

Comments
 (0)