Skip to content

Commit

Permalink
release 1.0.0-beta17 (#103)
Browse files Browse the repository at this point in the history
* prepare release 1.0.0-beta17
  • Loading branch information
Foso authored Jan 21, 2023
1 parent de637a8 commit 11565eb
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 25 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,16 @@ Now we can use exampleApi to make the request.
(You can also look how it's done in the [examples](https://github.com/Foso/Ktorfit/tree/master/example))


#### KSP
When you are not using KSP already you need to apply the plugin in your build.gradle
#### Gradle Plugins
You need to add KSP and the [Ktorfit Gradle plugin](https://plugins.gradle.org/plugin/de.jensklingenberg.ktorfit)
```kotlin

plugins {
id("com.google.devtools.ksp") version "1.7.20-1.0.8"
id("de.jensklingenberg.ktorfit") version "1.0.0"

}
```

```kotlin

Expand Down
6 changes: 4 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,14 @@ Then you can use the extension function to set additional configuration. The Req
## Setup
(You can also look how it's done in the [examples](https://github.com/Foso/Ktorfit/tree/master/example))

#### KSP
When you are not using KSP already you need to apply the plugin in your build.gradle
#### Gradle Plugins
You need to add KSP and the [Ktorfit Gradle plugin](https://plugins.gradle.org/plugin/de.jensklingenberg.ktorfit)
```kotlin

plugins {
id("com.google.devtools.ksp") version "1.7.20-1.0.8"
id("de.jensklingenberg.ktorfit") version "1.0.0"

}
```

Expand Down
7 changes: 4 additions & 3 deletions example/AndroidOnlyExample/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id ("org.jetbrains.kotlin.android")
id ("com.google.devtools.ksp") version "1.7.20-1.0.8"
id ("org.jetbrains.kotlin.plugin.serialization") version "1.7.21"
id ("de.jensklingenberg.ktorfit") version "1.0.0"

}

Expand Down Expand Up @@ -48,7 +49,7 @@ android {
}
}
}
val ktorfit = "1.0.0-beta16"
val ktorfit = "1.0.0-beta17"
val ktor = "2.2.2"
val compose_ui_version = "1.3.2"
dependencies {
Expand All @@ -61,8 +62,8 @@ dependencies {
implementation ("androidx.compose.ui:ui-tooling-preview:$compose_ui_version")
implementation ("androidx.compose.material:material:1.3.1")
testImplementation ("junit:junit:4.13.2")
androidTestImplementation ("androidx.test.ext:junit:1.1.4")
androidTestImplementation ("androidx.test.espresso:espresso-core:3.5.0")
androidTestImplementation ("androidx.test.ext:junit:1.1.5")
androidTestImplementation ("androidx.test.espresso:espresso-core:3.5.1")
androidTestImplementation ("androidx.compose.ui:ui-test-junit4:$compose_ui_version")
debugImplementation ("androidx.compose.ui:ui-tooling:$compose_ui_version")
debugImplementation ("androidx.compose.ui:ui-test-manifest:$compose_ui_version")
Expand Down
4 changes: 2 additions & 2 deletions example/AndroidOnlyExample/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenLocal()
// mavenLocal()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenLocal()
// mavenLocal()
mavenCentral()
}
}
Expand Down
1 change: 1 addition & 0 deletions example/MultiplatformExample/Readme.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# KtorfitMultiplatformExample
The Http Response will be printed to the logcat
4 changes: 2 additions & 2 deletions example/MultiplatformExample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ buildscript {
repositories {
gradlePluginPortal()
google()
mavenLocal()
// mavenLocal()
mavenCentral()
}
dependencies {
Expand All @@ -16,7 +16,7 @@ buildscript {
allprojects {
repositories {
google()
mavenLocal()
// mavenLocal()
mavenCentral()
}
}
2 changes: 1 addition & 1 deletion example/MultiplatformExample/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pluginManagement {
google()
gradlePluginPortal()
mavenCentral()
mavenLocal()
// mavenLocal()
}
}

Expand Down
10 changes: 2 additions & 8 deletions example/MultiplatformExample/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
id("com.android.library")
id("com.google.devtools.ksp") version "1.8.0-1.0.8"
id("kotlinx-serialization")

id("de.jensklingenberg.ktorfit") version "1.0.0"
}

version = "1.0"
val ktorVersion = "2.2.2"
val ktorfitVersion = "1.0.0-beta16"
val ktorfitVersion = "1.0.0-beta17"

kotlin {
android()
Expand Down Expand Up @@ -106,9 +106,3 @@ dependencies {
add("kspIosSimulatorArm64", "de.jensklingenberg.ktorfit:ktorfit-ksp:$ktorfitVersion")
}

configurations.all {
resolutionStrategy {
force("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
}
}

2 changes: 2 additions & 0 deletions ktorfit-annotations/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Annotations
The annotations for Ktorfit
2 changes: 2 additions & 0 deletions ktorfit-ksp/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ktorfit KSP
The KSP plugin will generate the implemenations of interfaces that are annotated
4 changes: 2 additions & 2 deletions ktorfit-lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ android {

publishing {
publications {
create<MavenPublication>("ktorfit-lib") {
create<MavenPublication>("default") {
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
// artifact(tasks["javadocJar"])

pom {
name.set(project.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ class KtorfitClient(val ktorfit: Ktorfit) {
fun append(encoded: Boolean, key: String, value: String) {
/**
* This is a workaround.
* Ktor encodes parameters by default and i dont know
* Ktor encodes parameters by default and I don't know
* how to deactivate this.
* When the value is not encoding it will be given to Ktor unchanged.
* If it is encoded, it gets decode, so Ktor can encode it again.
* When the value is not encoded it will be given to Ktor unchanged.
* If it is encoded, it gets decoded, so Ktor can encode it again.
*/

if (encoded) {
Expand Down

0 comments on commit 11565eb

Please sign in to comment.