Skip to content

Commit

Permalink
Release 1.10.0 (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso authored Nov 7, 2023
1 parent 562f79c commit 3bb9997
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,30 @@ build.gradle.kts:

```kotlin
plugins {
id("de.jensklingenberg.ktorfit") version "1.9.1"
id("de.jensklingenberg.ktorfit") version "1.10.0"
}
```

build.gradle

```kotlin
plugins {
id("de.jensklingenberg.ktorfit") version "1.9.1"
id("de.jensklingenberg.ktorfit") version "1.10.0"
}
```

KSP:

```kotlin
de.jensklingenberg.ktorfit:ktorfit-ksp:1.9.1
de.jensklingenberg.ktorfit:ktorfit-ksp:1.10.0
```

Ktorfit-lib/-light:

```kotlin
implementation("de.jensklingenberg.ktorfit:ktorfit-lib:1.9.1")
implementation("de.jensklingenberg.ktorfit:ktorfit-lib:1.10.0")
or
implementation("de.jensklingenberg.ktorfit:ktorfit-lib-light:1.9.1")
implementation("de.jensklingenberg.ktorfit:ktorfit-lib-light:1.10.0")
```

## 👷 Project Structure
Expand Down
5 changes: 4 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ and this project orients towards [Semantic Versioning](http://semver.org/spec/v2
Note: This project needs KSP to work and every new Ktorfit with an update of the KSP version is technically a breaking change.
But there is no intent to bump the Ktorfit major version for every KSP update.

Unreleased
1.10.0 - 2023-11-06
========================================
Compatible with KSP 1.0.14 and Kotlin 1.9.20

### Added
- LinuxArm64 support [#475](https://github.com/Foso/Ktorfit/issues/475)

### Changed
- KSP 1.0.14 required
- Optimized code generation

1.9.1 - 2023-10-22
========================================
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ inspired by [Retrofit](https://square.github.io/retrofit/)

| Ktorfit-version | Kotlin | KSP | Ktor |
|--------------------------|:-------------------------:|:-----------------------:|:---------:|
| **_1.10.0_** | **1.9.20** | **1.0.14** | **2.3.4** |
| **_1.9.1_** | **1.9.10 / 1.9.20-RC** | **1.0.13** | **2.3.4** |
| **_1.8.1_** | **1.9.10 / 1.9.20-Beta2** | **1.0.13** | **2.3.4** |
| **_1.7.0-1.9.20-Beta2_** | **1.9.20-Beta2** | **1.9.20-Beta2-1.0.13** | **2.3.4** |
Expand Down
6 changes: 3 additions & 3 deletions example/AndroidOnlyExample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.google.devtools.ksp") version "1.9.10-1.0.13"
id("com.google.devtools.ksp") version "1.9.20-1.0.14"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10"
id("de.jensklingenberg.ktorfit") version "1.9.1"
id("de.jensklingenberg.ktorfit") version "1.10.0"
}


Expand Down Expand Up @@ -51,7 +51,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
}
}

val ktorfit = "1.9.1"
val ktorfit = "1.10.0"
val ktor = "2.3.4"
val compose_ui_version = "1.5.1"
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion example/MultiplatformExample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
classpath("com.android.tools.build:gradle:7.3.1")
classpath("org.jetbrains.kotlin:kotlin-serialization:1.9.10")
classpath("org.jetbrains.kotlin:kotlin-serialization:1.9.20")

}
}
Expand Down
8 changes: 4 additions & 4 deletions example/MultiplatformExample/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
id("com.android.library")
id("com.google.devtools.ksp") version "1.9.10-1.0.13"
id("com.google.devtools.ksp") version "1.9.20-1.0.14"
id("kotlinx-serialization")
id("de.jensklingenberg.ktorfit") version "1.9.1"
id("de.jensklingenberg.ktorfit") version "1.10.0"
}

version = "1.0"
val ktorVersion = "2.3.4"
val ktorfitVersion = "1.9.1"
val ktorfitVersion = "1.10.0"

kotlin {
jvmToolchain(8)
Expand Down Expand Up @@ -93,7 +93,7 @@ dependencies {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = true
allWarningsAsErrors = false
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ kctfork = "0.3.2"
kotlin = "1.9.20"
kotlinPoet = "1.14.2"
kspVersion = "1.9.20-1.0.14"
ktorfit = "KTORFIT-SNAPSHOT"
ktorfit = "1.10.0"
ktorfitGradlePlugin = "1.8.1"
ktorVersion = "2.3.4"
mockk = "1.13.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ open class KtorfitGradleConfiguration {
* version number of the compiler plugin
*/
@Deprecated("Update the Gradle plugin instead of updating this version")
var version: String = "KTORFIT-SNAPSHOT" // remember to bump this version before any release!
var version: String = "1.10.0" // remember to bump this version before any release!

/**
* used to get debug information from the compiler plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ fun ClassData.getImplClassFileSource(resolver: Resolver): String {
val converterProperty =
PropertySpec.builder(converterHelper.objectName, converterHelper.toClassName())
.initializer("%T(${ktorfitClass.objectName})", converterHelper.toClassName())
.addModifiers(KModifier.PRIVATE)
.build()

val implClassSpec = TypeSpec.classBuilder(implClassName)
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extra:
site:
images: '../../images'
ktorfit:
release: "1.9.1"
release: "1.10.0"
ktor:
release: "2.3.4"
social:
Expand Down

0 comments on commit 3bb9997

Please sign in to comment.