From 1dd0ef6f000c635abdc3b80b2a6564fb1c876655 Mon Sep 17 00:00:00 2001 From: Sergej Shafarenka Date: Thu, 23 Jan 2025 10:09:11 +0100 Subject: [PATCH] Release 0.15 --- README.md | 17 +++++++++-------- build.gradle.kts | 7 +++++-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1a0433a..992897b 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ Small, fast and convenient multiplatform CSV parser and builder written for one # Usage -There is no documentation for the API which consists of just three methods: +Here is what you can do with the library: ```kotlin -// Build CSV object using simple DSL +// (1) Build a CSV file using simple DSL val csv = buildCsv { row { value("Code") @@ -30,18 +30,18 @@ val csv = buildCsv { } } -// Export CSV object to CSV text +// (2) Export a CSV object to a CSV string val csvText = csv.toCsvText() -// Parse CSV text to get a CSV object +// (3) Parse a CSV string to get a CSV object val csv2 = Csv.parseText(csvText) -// Data structure +// There are the data structures supported by the library val allRows: List = csv2.rows val header: HeaderRow = csv2.header val data: List = csv2.data -// Transform CSV +// (4) Transform CSV data val codes = data.map { it.value("Code") } // ["DE", "BY"] val names = data.map { it.value("Name") } // ["Germany", "Belarus"] ``` @@ -52,7 +52,7 @@ In `gradle/libs.versions.toml` ```toml [versions] kotlin = "2.0.21" -csv = "0.14" +csv = "0.15" [libraries] csv = { module = "de.halfbit:csv", version.ref = "csv" } @@ -83,6 +83,7 @@ kotlin { # Release Notes +- 0.15 Add macosArm64 target - 0.14 Add linuxArm64 target, update to Kotlin 2.0.21 - 0.13 Some API changes and DataRow.replaceValue(), see PR #13 for details - 0.12 Add HeaderRow and DataRow types, enabling easier data transformations @@ -99,7 +100,7 @@ kotlin { # License ``` -Copyright 2023-2024 Sergej Shafarenka, www.halfbit.de +Copyright 2023-2025 Sergej Shafarenka, www.halfbit.de Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/build.gradle.kts b/build.gradle.kts index ff7ab40..25947fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "de.halfbit" -version = "0.14" +version = "0.15" repositories { mavenCentral() @@ -88,7 +88,7 @@ if (canPublishToMaven) { pom { name.set(rootProject.name) - description.set("Tiny Kotlin Multiplatform library for building and exporting CSV files") + description.set("Tiny Kotlin Multiplatform library for parsing, building and exporting CSV files") url.set("https://www.halfbit.de") licenses { license { @@ -140,6 +140,9 @@ if (canPublishToMaven) { "compileTestKotlinMacosX64" { mustRunAfter("signMacosX64Publication") } + "compileTestKotlinMacosArm64" { + mustRunAfter("signMacosArm64Publication") + } "compileTestKotlinMingwX64" { mustRunAfter("signMingwX64Publication") }