Skip to content

Commit

Permalink
Lint for Use TOML Version Catalog Instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsilber committed Dec 21, 2023
1 parent b4850b6 commit 33d370e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
15 changes: 14 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
[versions]
agp = "8.2.0"
kotlin = "1.9.21"
agp = "8.2.0"
appcompat = "1.6.1"
androidx-core = "1.5.0"
androidx-junit = "1.1.5"
androidx-test-runner = "1.5.2"
kover = "0.7.5"
robolectric = "4.11.1"
mockito-kotlin = "5.2.1"

[libraries]
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
androidx-core = { module = "androidx.test:core", version.ref = "androidx-core" }
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-junit" }
androidx-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" }
kotlin-stdlib-jdk7 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk7", version.ref = "kotlin" }
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockito-kotlin" }

[plugins]
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
Expand Down
2 changes: 1 addition & 1 deletion scratchoff-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ android {
dependencies {
implementation project(path: ':scratchoff')

implementation "androidx.appcompat:appcompat:1.6.1"
implementation libs.androidx.appcompat
}
12 changes: 6 additions & 6 deletions scratchoff/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ android {
}

dependencies {
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${libs.versions.kotlin.get()}"
testImplementation "androidx.test.ext:junit:1.1.5"
testImplementation "androidx.test:runner:1.5.2"
testImplementation "androidx.test:core:1.5.0"
testImplementation "org.mockito.kotlin:mockito-kotlin:5.2.1"
testImplementation "org.robolectric:robolectric:4.11.1"
testImplementation libs.kotlin.stdlib.jdk7
testImplementation libs.androidx.junit
testImplementation libs.androidx.runner
testImplementation libs.androidx.core
testImplementation libs.mockito.kotlin
testImplementation libs.robolectric
}

kover {
Expand Down

0 comments on commit 33d370e

Please sign in to comment.