Skip to content

Releases: Foso/Ktorfit

2.7.4

03 Jun 18:02
Immutable release. Only release title and notes can be modified.
bcf19dc

Choose a tag to compare

2.7.4

2.7.4 - 2026-06-03

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.5.0

Changed

  • Update Kotlin to 2.4.0
  • Update KSP to 2.3.9
  • Update Ktor to 3.5.0

Fixed

  • The compilerPluginVersion will now get correctly set to 2.3.5 by the Gradle plugin to support using Kotlin 2.4.0+.

Thanks to @eygraber for contributing to this release!

2.7.3

26 Apr 03:24
Immutable release. Only release title and notes can be modified.
0b54550

Choose a tag to compare

2.7.3

2.7.3 - 2026-04-20

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.4.1

Changed

  • Update KSP to 2.3.6

Fixed

  • The compilerPluginVersion will now get correctly set to 2.3.4 by the Gradle plugin to support using Kotlin 2.3.0+.
  • Fixed an error when using AGP 9 related to multiple modules using the same namespace

Thanks to @eygraber and @xiaoyvyv for contributing to this release!

2.7.2

11 Jan 17:54
Immutable release. Only release title and notes can be modified.
8ce62a8

Choose a tag to compare

2.7.2 - 2026-01-11

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.3.3

Changed

  • Update KSP to 2.3.4
  • When you use Kotlin 2.3.0 the Gradle plugin will now automatically set the kotlinVersion/compilerPluginVersion to 2.3.3 if not set manually.

Fixed

  • Unable to retrieve annotations in client plugin #1009

Thanks to @eygraber and @bmoliveira for contributing to this release!

2.7.1

11 Dec 22:20
Immutable release. Only release title and notes can be modified.
461faa1

Choose a tag to compare

2.7.1

2.7.1 - 2025-12-11

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.3.3

When you use Kotlin 2.3.0 you need to set the compilerPluginVersion to 2.3.3. See compatibility table below: https://github.com/Foso/Ktorfit/tree/master/ktorfit-compiler-plugin#compatibility-table

Changed

  • Update Ktor to 3.3.3

Fixed

  • Class-level annotations (e.g., @HiddenFromObjC, @ObjCName, @Deprecated) are now properly propagated to generated implementation classes. This resolves compilation errors when using annotations like @HiddenFromObjC on Ktorfit interfaces
  • Decorating suspend func with @throws breaks some gradle tasks #995

Deprecated

  • The kotlinVersion property in the Ktorfit Gradle plugin extension is now deprecated in favor of compilerPluginVersion.

    Reason:
    The new compilerPluginVersion property provides a clearer and more accurate description of its purpose, which is to specify the version of the Ktorfit compiler plugin, not the Kotlin language version. This change improves configuration clarity and reduces confusion.

When you use Kotlin 2.3.0 you need to set the compilerPluginVersion to 2.3.3. See compatibility table below:
https://github.com/Foso/Ktorfit/tree/master/ktorfit-compiler-plugin#compatibility-table

Migration:
Replace any usage of kotlinVersion in your Gradle build scripts with compilerPluginVersion. The kotlinVersion property will continue to work for now, but will be removed in a future release.

Example migration:

// Old (deprecated)
ktorfit {
    kotlinVersion.set("2.3.3")
}
// New (recommended)
ktorfit {
    compilerPluginVersion.set("2.3.3")
}

Thanks to @eygraber for contributing to this release!

2.6.5

02 Dec 18:42
Immutable release. Only release title and notes can be modified.
9c4aa15

Choose a tag to compare

2.6.5 - 2025-12-01

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.2.1

When you use Kotlin 2.3.0 you need to set the kotlinVersion in Gradle Ktorfit config to 2.3.3. See compatibility table below: https://github.com/Foso/Ktorfit/tree/master/ktorfit-compiler-plugin#compatibility-table

Fixed

  • Fix Kotlin 2.2.21 compatibility: update IrClass.defaultType usage
  • Cant find generated code in KMP project with only Android target #965
  • Add typealias support to KSP processor #944
  • Fix KSP version extraction logic in the Gradle plugin #931
  • Composed annotations lead to invalid generated code #875

Thanks to @eygraber, @martinbirn, @rsicarelli and @haruue for contributing to this release!

2.6.4

29 Jul 07:50
51dfeed

Choose a tag to compare

2.6.4 - 2025-07-29

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.2.1

Fixed

  • ClassCastException in compiler plugin

2.6.3

28 Jul 07:53
01e8431

Choose a tag to compare

2.6.3 - 2025-07-27

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.2.1

Fixed

  • Can't deserialize List on iOS #887
  • Java 21 requirement after update to 2.6.0 #883
  • Build failed when use parameter with name method #865

Thanks to @Link184 and @King22 for contributing to this release!

2.6.1

06 Jul 11:42
f5049f6

Choose a tag to compare

2.6.1 - 2025-07-06

  • Supported KSP version: >=2.0.2
  • Supported Kotlin version: >=2.2.0
  • Ktor version: 3.2.1

Changed

  • Update Ktor to 3.2.1
  • Update Kotlin to 2.2.0

Special thanks to @eygraber for contributing to this release!

2.6.0

05 Jul 09:38

Choose a tag to compare

2.6.0 - 2025-07-04

SKIP THIS VERSION, it was released with a old Kotlin compiler plugin version.

2.5.2

13 May 17:42
44397f3

Choose a tag to compare

2.5.2 - 2025-05-12

  • Supported KSP version: >=1.0.28
  • Supported Kotlin version: >=2.1.10
  • Ktor version: 3.1.2

Fixed

  • Resolve KSP version if set with ksp extension #851

Thanks to @sydden1337 for contributing to this release!