XDev.KotlinX.IO
0.8.0.1
dotnet add package XDev.KotlinX.IO --version 0.8.0.1
NuGet\Install-Package XDev.KotlinX.IO -Version 0.8.0.1
<PackageReference Include="XDev.KotlinX.IO" Version="0.8.0.1" />
<PackageVersion Include="XDev.KotlinX.IO" Version="0.8.0.1" />
<PackageReference Include="XDev.KotlinX.IO" />
paket add XDev.KotlinX.IO --version 0.8.0.1
#r "nuget: XDev.KotlinX.IO, 0.8.0.1"
#:package XDev.KotlinX.IO@0.8.0.1
#addin nuget:?package=XDev.KotlinX.IO&version=0.8.0.1
#tool nuget:?package=XDev.KotlinX.IO&version=0.8.0.1
Introduction
Nuget packaging for the kotlinx-io native kotlin libraries. This package is named
XDev.KotlinX.IO and rolls up the kotlinx-io family — org.jetbrains.kotlinx:kotlinx-io-core and its
dependency org.jetbrains.kotlinx:kotlinx-io-bytestring (both the common and -jvm Kotlin-multiplatform
variants). These two artifacts share a single release train (identical versions, published together), so they
are packaged as one NuGet for simplicity. The "XDev" root in the package name allows room for
JetBrains/Microsoft to publish an official NuGet package in the future, and allows simple replacement of this
one for that one, if that ever occurs.
kotlinx-io-core is a transitive requirement of ktor-io in Ktor 3 (the new IO refactor); no existing NuGet
wrapper carries it, so this package fills that gap.
Latest release <a href="https://www.nuget.org/packages/XDev.KotlinX.IO"> <img src="https://img.shields.io/nuget/v/XDev.KotlinX.IO"></a>
Latest build <a href="https://www.nuget.org/packages/XDev.KotlinX.IO"> <img src="https://img.shields.io/nuget/vpre/XDev.KotlinX.IO"></a>
source repo
<br>
The native libs in maven:
- https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-io-core
- https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-io-bytestring
native repo: https://github.com/Kotlin/kotlinx-io
Getting Started
To use this nuget package, just install the desired version as you normally install nuget packs.
- Note this repo repackages the
kotlinx-io-coreandkotlinx-io-bytestringjars into.aarfiles to support android. - It depends on the published
Xamarin.Kotlin.StdLibpackage.
Build and Test
- VS 2022 or higher.
- .Net8 SDK required to build.
- This project uses XDev.Android.MavenBinding.Tasks to aid pulling in the native jar-libs directly from maven. See here for more info: https://github.com/jpobst/Prototype.Android.MavenBindings
https://learn.microsoft.com/en-us/dotnet/android/features/maven/android-maven-library
Versions
- v0.5.4 (the nuget package tracks the native version, sans pre-release)
- https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-io-core
Contribute
If you need a different/newer version, PR, or open an issue in the .Net repo! https://dev.azure.com/xdevapps/Android%20bindings/_git/XDev.Jetbrains.InteropLibs
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-android34.0 is compatible. net9.0-android was computed. net10.0-android was computed. |
-
net8.0-android34.0
- Xamarin.Kotlin.StdLib (>= 2.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on XDev.KotlinX.IO:
| Package | Downloads |
|---|---|
|
XDev.IO.Ktor
Ktor is an asynchronous framework for creating microservices, web applications and more. Written in Kotlin from the ground up. |
|
|
XDev.KotlinX.Serialization.Json.Io
A Kotlin multiplatform library bridging kotlinx-serialization JSON and kotlinx-io (encode/decode JSON directly to/from kotlinx-io Sources and Sinks). Repackages org.jetbrains.kotlinx:kotlinx-serialization-json-io as .aar files for use by native Android libraries (e.g. ktor-serialization-kotlinx-json) consumed from Xamarin/MAUI. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Rolls up the kotlinx-io family (kotlinx-io-core + kotlinx-io-bytestring) into a single package; these two
Maven artifacts share one release train and always move together. Uses the published Xamarin.Kotlin.StdLib
package as a dependency so that we're compatible with Maui-targeted apps.