Skip to content

Commit

Permalink
updated ktorfit
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Jul 22, 2024
1 parent f32d751 commit 4fbd291
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
alias(libs.plugins.compose)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.konfig)
alias(libs.plugins.ksp)
alias(libs.plugins.ktorfit)
alias(libs.plugins.moko.resources)
alias(libs.plugins.osdetector)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import dev.datlag.burningseries.BuildKonfig
import dev.datlag.burningseries.Sekret
import dev.datlag.burningseries.common.nullableFirebaseInstance
import dev.datlag.burningseries.github.GitHub
import dev.datlag.burningseries.github.createGitHub
import dev.datlag.burningseries.network.EpisodeStateMachine
import dev.datlag.burningseries.network.HomeStateMachine
import dev.datlag.burningseries.network.SaveStateMachine
Expand Down Expand Up @@ -113,7 +114,7 @@ data object NetworkModule {
httpClient(instance<HttpClient>())
baseUrl("https://api.github.com/")
}
ktorfit.create<GitHub>()
ktorfit.createGitHub()
}
bindSingleton<OpenIdConnectClient> {
OpenIdConnectClient {
Expand Down
10 changes: 1 addition & 9 deletions github/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
alias(libs.plugins.apollo)
alias(libs.plugins.serialization)
alias(libs.plugins.ksp)
alias(libs.plugins.ktorfit)
}

val artifact = "dev.datlag.burningseries.github"
Expand Down Expand Up @@ -43,15 +44,6 @@ kotlin {
}
}

dependencies {
add("kspCommonMainMetadata", libs.ktorfit.ksp)
add("kspAndroid", libs.ktorfit.ksp)
add("kspJvm", libs.ktorfit.ksp)
add("kspIosX64", libs.ktorfit.ksp)
add("kspIosArm64", libs.ktorfit.ksp)
add("kspIosSimulatorArm64", libs.ktorfit.ksp)
}

android {
compileSdk = 34
namespace = artifact
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ kolor = "1.7.0"
konfig = "0.15.1"
kotlin = "2.0.0"
ksoup = "0.1.2"
ksp = "2.0.0-1.0.22"
ksp = "2.0.0-1.0.23"
ktor = "2.3.12"
ktorfit = "1.14.0"
ktorfit = "2.0.0"
media3 = "1.4.0-rc01"
moko-resources = "0.24.1"
multidex = "2.0.1"
Expand Down

0 comments on commit 4fbd291

Please sign in to comment.