Skip to content

Commit

Permalink
use version catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
dead8309 committed Jul 29, 2023
1 parent 2f0559a commit 8a55dd2
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[versions]
# project level
appcompat = "1.6.1"
constraintlayout = "2.1.4"
core-ktx = "1.10.1"
gradle = "8.1.0"
kotlin = "1.8.21"

# app level
ktor = "2.3.0"
kotlinx-coroutine = "1.6.4"
material = "1.9.0"

[libraries]
# gradle plugins
android-gradle-plugin = { module = "com.android.tools.build:gradle", version.ref = "gradle" }
appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
core-ktx = { module = "androidx.core:core-ktx", version.ref = "core-ktx" }
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }

# Ktor
ktor-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
ktor-websockets = { module = "io.ktor:ktor-client-websockets", version.ref = "ktor" }
ktor-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
ktor-kotlinx-serialization = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }
ktor-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor"}

# KotlinX
kotlinx-coroutine = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx-coroutine" }
material = { module = "com.google.android.material:material", version.ref = "material" }

[plugins]
android-application = { id = "com.android.application", version.ref = "gradle" }
android-library = { id = "com.android.library", version.ref = "gradle" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

[bundles]
network-ktor = ["ktor-core", "ktor-client-cio", "ktor-kotlinx-serialization"]

0 comments on commit 8a55dd2

Please sign in to comment.