Releases: Foso/Ktorfit
2.7.4
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
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
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
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@HiddenFromObjCon Ktorfit interfaces - Decorating suspend func with @throws breaks some gradle tasks #995
Deprecated
-
The
kotlinVersionproperty in the Ktorfit Gradle plugin extension is now deprecated in favor ofcompilerPluginVersion.Reason:
The newcompilerPluginVersionproperty 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
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
2.6.3
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!