Skip to content

Commit c316088

Browse files
committed
Version catalogue
1 parent a3224d8 commit c316088

File tree

5 files changed

+38
-13
lines changed

5 files changed

+38
-13
lines changed

.kotlin/sessions/kotlin-compiler-3914190603348086629.salive

Whitespace-only changes.

app/build.gradle.kts

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ android {
3535
}
3636

3737
dependencies {
38-
implementation("androidx.appcompat:appcompat:1.7.0")
38+
implementation(libs.appcompat)
3939
implementation(project(":library"))
40-
implementation("androidx.core:core-ktx:1.15.0")
41-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.0")
40+
implementation(libs.core.ktx)
41+
implementation(libs.kotlin.stdlib.jdk7)
4242

43-
testImplementation("junit:junit:4.13.2")
44-
androidTestImplementation("androidx.test.ext:junit-ktx:1.2.1")
45-
androidTestUtil("androidx.test.services:test-services:1.5.0")
46-
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
43+
testImplementation(libs.junit)
44+
androidTestImplementation(libs.junit.ktx)
45+
androidTestUtil(libs.test.services)
46+
androidTestImplementation(libs.espresso.core)
4747
}

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ buildscript {
44
mavenCentral()
55
}
66
dependencies {
7-
classpath("com.android.tools.build:gradle:8.7.3")
8-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
7+
classpath(libs.gradle)
8+
classpath(libs.kotlin.gradle.plugin)
99
}
1010
}
1111

gradle/libs.versions.toml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[versions]
2+
appcompat = "1.7.0"
3+
coreKtx = "1.15.0"
4+
espressoCore = "3.6.1"
5+
gradle = "8.7.3"
6+
junit = "4.13.2"
7+
junitKtx = "1.2.1"
8+
kotlinGradlePlugin = "2.1.0"
9+
ksp = "2.1.0-1.0.29"
10+
recyclerview = "1.3.2"
11+
testServices = "1.5.0"
12+
13+
[libraries]
14+
appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
15+
core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
16+
espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
17+
gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }
18+
junit = { module = "junit:junit", version.ref = "junit" }
19+
junit-ktx = { module = "androidx.test.ext:junit-ktx", version.ref = "junitKtx" }
20+
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinGradlePlugin" }
21+
kotlin-stdlib-jdk7 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk7", version.ref = "kotlinGradlePlugin" }
22+
recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "recyclerview" }
23+
test-services = { module = "androidx.test.services:test-services", version.ref = "testServices" }
24+
25+
[plugins]
26+
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

library/build.gradle.kts

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ android {
99
defaultConfig {
1010
minSdk = 21
1111
compileSdk = 35
12-
targetSdk = 35
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
}
@@ -26,9 +25,9 @@ android {
2625
}
2726

2827
dependencies {
29-
implementation("androidx.recyclerview:recyclerview:1.3.2")
30-
implementation("androidx.core:core-ktx:1.15.0")
31-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.0")
28+
implementation(libs.recyclerview)
29+
implementation(libs.core.ktx)
30+
implementation(libs.kotlin.stdlib.jdk7)
3231
}
3332

3433
afterEvaluate {

0 commit comments

Comments
 (0)