XDev.Square.OkHttp3.Sse
5.0.0.1
dotnet add package XDev.Square.OkHttp3.Sse --version 5.0.0.1
NuGet\Install-Package XDev.Square.OkHttp3.Sse -Version 5.0.0.1
<PackageReference Include="XDev.Square.OkHttp3.Sse" Version="5.0.0.1" />
<PackageVersion Include="XDev.Square.OkHttp3.Sse" Version="5.0.0.1" />
<PackageReference Include="XDev.Square.OkHttp3.Sse" />
paket add XDev.Square.OkHttp3.Sse --version 5.0.0.1
#r "nuget: XDev.Square.OkHttp3.Sse, 5.0.0.1"
#:package XDev.Square.OkHttp3.Sse@5.0.0.1
#addin nuget:?package=XDev.Square.OkHttp3.Sse&version=5.0.0.1
#tool nuget:?package=XDev.Square.OkHttp3.Sse&version=5.0.0.1
Introduction
Nuget packaging for the okhttp-sse (Server-Sent Events) native java/kotlin dependency. This package is named
XDev.Square.OkHttp3.Sse and rolls up the single native lib com.squareup.okhttp3:okhttp-sse. The "XDev" root in
the package name allows room for Square/Microsoft to publish an official NuGet package in the future, and allows
simple replacement of this one for that one, if that ever occurs.
okhttp-sse is a transitive requirement of ktor-client-okhttp in Ktor 3 (SSE support for the OkHttp engine);
no existing NuGet wrapper carries it, so this package fills that gap.
Latest release <a href="https://www.nuget.org/packages/XDev.Square.OkHttp3.Sse"> <img src="https://img.shields.io/nuget/v/XDev.Square.OkHttp3.Sse"></a>
Latest build <a href="https://www.nuget.org/packages/XDev.Square.OkHttp3.Sse"> <img src="https://img.shields.io/nuget/vpre/XDev.Square.OkHttp3.Sse"></a>
source repo
<br>
The native lib in maven:
native repo: https://github.com/square/okhttp
Getting Started
To use this nuget package, just install the desired version as you normally install nuget packs.
- Note this repo repackages the
okhttp-ssejar intoXDev.Square.OkHttp3.Sse.aarto support android. - It depends on the published
Square.OkHttp3.JVM(native okhttp-jvm) andXamarin.Kotlin.StdLibpackages.
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
- v4.12.0 (the nuget package tracks the native version, sans pre-release)
- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp-sse
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
- Square.OkHttp3.JVM (>= 5.1.0)
- Xamarin.Kotlin.StdLib (>= 2.2.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Uses the published MS package Square.OkHttp3 as a dependency so that we're compatible with Maui-targeted apps.
Note: if MS ever releases an official okhttp-sse package (as they currently do for Square.OkHttp3), it may
collide with this one and cause java-c (Java compile) errors in consuming apps from the same Java class
definition being found twice. The intent at that point is to deprecate this package and defer to the
Xamarin/MS-sourced package.