Skip to content

deps(deps): update dependency de.jensklingenberg.ktorfit:ktorfit-lib to v1.4.1

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
de.jensklingenberg.ktorfit:ktorfit-lib 1.1.0 -> 1.4.1 age adoption passing confidence

Release Notes

Foso/Ktorfit

v1.4.1

1.4.1 - 2023-06-03

Added
Changed
  • Upgrade dependencies: Ktor 2.3.1
Deprecated
Removed
Fixed

#​236 Parsing error for list/array

Security

v1.4.0

1.4.0 - 2023-05-27

Added
  • #​85 Added a Response class that can be used as a wrapper around the API Response, the converter for it is automatically applied. thx to @​vovahost, @​DATL4G

e.g.

interface ExampleApi{
  suspend fun getUser(): Response<User>
}

val user = userKtorfit.create<ExampleApi>().getUser()
    
if(user.isSuccessful){
  user.body()
}else{
  user.errorBody()
}
  • Ktorfit is now using converters factories to apply the converters, similar to Retrofit see more here https://foso.github.io/Ktorfit/converters/converters/

  • TypeData now has a field "typeInfo" can be used to convert the Ktor HttpResponse body to the wanted type

  • CallConverterFactory for replacement of CallResponseConverter

  • FlowConverterFactory for replacement of FlowResponseConverter

  • Added support for targets: macosArm64, tvosArm64, tvosX64, tvosSimulatorArm64, watchosSimulatorArm64 #​315

Changed
  • Upgrade dependencies: Kotlin 1.8.21
Deprecated
  • ResponseConverter, use Converter.ResponseConverter instead
  • SuspendResponseConverter, use Converter.SuspendResponseConverter instead
  • RequestConverter, use Converter.RequestParameterConverter instead
  • See also: https://foso.github.io/Ktorfit/converters/migration/
Removed
Fixed
Security

v1.3.0

1.3.0 - 2023-05-14

Added
Changed
  • Optimized generated code, the generated code that is used for a request will now directly set the Ktor code instead of delegating it to a Ktorfit class. This will make the code easier to understand.

  • KSP version 1.0.11 is now needed

Deprecated
Removed
Fixed

[Bug]: IllegalArgumentException with Custom Http Annotation #​274

Security
Bumped

KSP version to 1.0.11

v1.2.0

1.2.0 - 2023-05-05

Added
Changed
Deprecated
Removed
Fixed
Security
Bumped
  • Now using on Ktor 2.3.0

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports