From 684d6d57003a35734d404e3673cfdf1b6609cf1d Mon Sep 17 00:00:00 2001 From: Kittinun Vantasin Date: Mon, 28 Oct 2024 22:16:03 +0900 Subject: [PATCH] [New version] Release alpha04 (#964) --- README.md | 17 ++++++++++++----- gradle.properties | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 96bbd4ed..cdff4cac 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,15 @@ The easiest HTTP networking library for Kotlin backed by Kotlinx Coroutines. ## Migration + From 3.x onwards, we are using [main](https://github.com/kittinunf/fuel/tree/main) as our new base branch. If you are finding the old version [2.x](https://github.com/kittinunf/fuel/tree/2.x), please take a look at our old branch. ## Download ### For release version + ```kotlin -implementation("com.github.kittinunf.fuel:fuel:3.0.0-alpha03") +implementation("com.github.kittinunf.fuel:fuel:3.0.0-alpha04") ``` ## Quick Start @@ -42,13 +44,16 @@ runBlocking { ``` ## Custom Configuration + JVM uses [OkHttpClient](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/) configurations + ```kotlin val fuel = FuelBuilder().config(OKHttpClient()).build() val string = fuel.get(request = { url = "https://publicobject.com/helloworld.txt" }).body.string() ``` Apple uses [NSURLSessionConfiguration](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration) + ```kotlin val fuel = FuelBuilder().config(NSURLSessionConfiguration.defaultSessionConfiguration).build() val string = fuel.get(request = { url = "https://publicobject.com/helloworld.txt" }).body.string() @@ -59,6 +64,7 @@ Please note it will throw Exceptions. Make sure you catch it on the production a Fuel requires Java 8 byte code. ## Requirements + - If you are using Android, It needs to be Android 5+. - Java 8+ @@ -75,10 +81,11 @@ If you use the fuel-moshi modules, you may need to add rules for [Moshi](https:/ ## Other libraries If you like Fuel, you might also like other libraries of mine; -* [Result](https://github.com/kittinunf/Result) - The modelling for success/failure of operations in Kotlin -* [Fuse](https://github.com/kittinunf/Fuse) - A simple generic LRU memory/disk cache for Android written in Kotlin -* [Forge](https://github.com/kittinunf/Forge) - Functional style JSON parsing written in Kotlin -* [ReactiveAndroid](https://github.com/kittinunf/ReactiveAndroid) - Reactive events and properties with RxJava for Android SDK + +- [Result](https://github.com/kittinunf/Result) - The modelling for success/failure of operations in Kotlin +- [Fuse](https://github.com/kittinunf/Fuse) - A simple generic LRU memory/disk cache for Android written in Kotlin +- [Forge](https://github.com/kittinunf/Forge) - Functional style JSON parsing written in Kotlin +- [ReactiveAndroid](https://github.com/kittinunf/ReactiveAndroid) - Reactive events and properties with RxJava for Android SDK ## Credits diff --git a/gradle.properties b/gradle.properties index fcc6da0f..f87f1034 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,5 +11,5 @@ artifactUrl=https://github.com/kittinunf/fuel artifactScm=git@github.com:kittinunf/fuel.git artifactLicenseName=MIT License artifactLicenseUrl=http://www.opensource.org/licenses/mit-license.php -artifactPublishVersion=3.0.0-alpha03 +artifactPublishVersion=3.0.0-alpha04 artifactGroupId=com.github.kittinunf.fuel