Skip to content

Commit

Permalink
perf: up dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Mar 3, 2024
1 parent f2eb4dd commit fb5933d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
6 changes: 1 addition & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ buildscript {
classpath(libs.android.gradle)
classpath(libs.kotlin.gradle.plugin)
classpath(libs.kotlin.serialization)
// classpath(libs.rikka.gradle)
}
}

// https://youtrack.jetbrains.com/issue/KTIJ-19369
@Suppress(
"DSL_SCOPE_VIOLATION",
) plugins {
plugins {
alias(libs.plugins.google.ksp) apply false
alias(libs.plugins.google.hilt) apply false

Expand Down
13 changes: 2 additions & 11 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ pluginManagement {
}

dependencyResolutionManagement {

// https://youtrack.jetbrains.com/issue/KT-55620
// https://stackoverflow.com/questions/69163511
// repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)

repositories {
mavenLocal()
mavenCentral()
Expand Down Expand Up @@ -144,7 +139,6 @@ dependencyResolutionManagement {
library("junit", "junit:junit:4.13.2")

val ktorVersion = "2.3.8"
// 请注意,当 client 和 server 版本不一致时, 会报错 socket hang up
library("ktor.server.core", "io.ktor:ktor-server-core:$ktorVersion")
library("ktor.server.cio", "io.ktor:ktor-server-cio:$ktorVersion")
library("ktor.server.cors", "io.ktor:ktor-server-cors:$ktorVersion")
Expand Down Expand Up @@ -176,12 +170,9 @@ dependencyResolutionManagement {
"org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.7"
)

// https://developer.android.com/reference/kotlin/org/json/package-summary
library("org.json", "org.json:json:20210307")

plugin("google.ksp", "com.google.devtools.ksp").version("1.9.22-1.0.17")

val hiltVersion = "2.50"
val hiltVersion = "2.51"
plugin("google.hilt", "com.google.dagger.hilt.android").version(hiltVersion)
library("google.hilt.android", "com.google.dagger:hilt-android:$hiltVersion")
library(
Expand All @@ -193,7 +184,7 @@ dependencyResolutionManagement {
)

// https://github.com/raamcosta/compose-destinations
val destinationsVersion = "1.10.0"
val destinationsVersion = "1.10.1"
library(
"destinations.core",
"io.github.raamcosta.compose-destinations:core:$destinationsVersion"
Expand Down

0 comments on commit fb5933d

Please sign in to comment.