0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-19 19:42:29 +02:00

Migrate test dependencies to version catalog + sort dependencies

This commit is contained in:
conorsmith 2023-09-03 17:31:11 +02:00 committed by Arne Schwabe
parent dee17f6977
commit 715112cd9f
3 changed files with 43 additions and 31 deletions

View File

@ -1,39 +1,51 @@
[versions]
kotlin = "1.9.0"
constraintlayout = "2.1.4"
cardview = "1.0.0"
recyclerview = "1.3.0"
appcompat = "1.6.1"
mpandroidchart = "v3.1.0"
okhttp = "4.10.0"
core-ktx = "1.10.1"
fragment-ktx = "1.6.0"
preference-ktx = "1.2.0"
material = "1.7.0"
android-gradle-plugin = "8.1.1"
androidx-annotation = "1.6.0"
androidx-appcompat = "1.6.1"
android-view-material = "1.7.0"
androidx-core-ktx = "1.10.1"
androidx-fragment-ktx = "1.6.0"
androidx-preference-ktx = "1.2.0"
androidx-webkit = "1.7.0"
androidx-lifecycle-viewmodel-ktx = "2.6.1"
androidx-lifecycle-runtime-ktx = "2.6.1"
androidx-security-crypto = "1.1.0-alpha06"
androidx-annotation = "1.6.0"
android-gradle-plugin = "8.1.1"
androidx-constraintlayout = "2.1.4"
androidx-cardview = "1.0.0"
androidx-recyclerview = "1.3.0"
mpandroidchart = "v3.1.0"
kotlin = "1.9.0"
square-okhttp = "4.10.0"
# Test
androidx-test-core = "1.4.0"
junit = "4.13.2"
mockito-core = "3.9.0"
robolectric = "4.10.2"
[libraries]
kotlin = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
androidx-cardview = { group = "androidx.cardview", name = "cardview", version.ref = "cardview" }
androidx-recyclerview = { group = "androidx.recyclerview", name = "recyclerview", version.ref = "recyclerview" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
mpandroidchart = { group = "com.github.PhilJay", name = "MPAndroidChart", version.ref = "mpandroidchart" }
square-okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp" }
androidx-core-ktx = { group = "androidx.core", name = "core", version.ref = "core-ktx" }
androidx-fragment-ktx = { group = "androidx.fragment", name = "fragment-ktx", version.ref = "fragment-ktx" }
androidx-preference-ktx = { group = "androidx.preference", name = "preference-ktx", version.ref = "preference-ktx" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
android-view-material = { group = "com.google.android.material", name = "material", version.ref = "android-view-material" }
androidx-annotation = { group = "androidx.annotation", name = "annotation", version.ref = "androidx-annotation" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "androidx-appcompat" }
androidx-cardview = { group = "androidx.cardview", name = "cardview", version.ref = "androidx-cardview" }
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "androidx-constraintlayout" }
androidx-core-ktx = { group = "androidx.core", name = "core", version.ref = "androidx-core-ktx" }
androidx-fragment-ktx = { group = "androidx.fragment", name = "fragment-ktx", version.ref = "androidx-fragment-ktx" }
androidx-preference-ktx = { group = "androidx.preference", name = "preference-ktx", version.ref = "androidx-preference-ktx" }
androidx-webkit = { group = "androidx.webkit", name = "webkit", version.ref = "androidx-webkit" }
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle-viewmodel-ktx" }
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "androidx-lifecycle-runtime-ktx" }
androidx-recyclerview = { group = "androidx.recyclerview", name = "recyclerview", version.ref = "androidx-recyclerview" }
androidx-security-crypto = { group = "androidx.security", name = "security-crypto", version.ref = "androidx-security-crypto" }
androidx-annotation = { group = "androidx.annotation", name = "annotation", version.ref = "androidx-annotation" }
mpandroidchart = { group = "com.github.PhilJay", name = "MPAndroidChart", version.ref = "mpandroidchart" }
kotlin = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
square-okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "square-okhttp" }
# Test
androidx-test-core = { group = "androidx.test", name = "core", version.ref = "androidx-test-core" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
mockito-core = { group = "org.mockito", name = "mockito-core", version.ref = "mockito-core" }
robolectric = { group = "org.robolectric:robolectric:4.10.2", name = "robolectric", version.ref = "robolectric" }
[plugins]
android-application = { id = "com.android.application", version.ref = "android-gradle-plugin" }

View File

@ -233,6 +233,7 @@ dependencies {
// https://maven.google.com/web/index.html
implementation(libs.androidx.annotation)
uiImplementation(libs.android.view.material)
uiImplementation(libs.androidx.appcompat)
uiImplementation(libs.androidx.cardview)
uiImplementation(libs.androidx.constraintlayout)
@ -245,15 +246,14 @@ dependencies {
uiImplementation(libs.androidx.security.crypto)
uiImplementation(libs.androidx.webkit)
uiImplementation(libs.kotlin)
uiImplementation(libs.material)
uiImplementation(libs.mpandroidchart)
uiImplementation(libs.square.okhttp)
testImplementation("androidx.test:core:1.4.0")
testImplementation("junit:junit:4.13.2")
testImplementation(libs.androidx.test.core)
testImplementation(libs.junit)
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21")
testImplementation("org.mockito:mockito-core:3.9.0")
testImplementation("org.robolectric:robolectric:4.10.2")
testImplementation(libs.mockito.core)
testImplementation(libs.robolectric)
}
fun DependencyHandler.uiImplementation(dependencyNotation: Any): Dependency? =

View File

@ -58,5 +58,5 @@ dependencies {
//'org.bouncycastle:bcpg-jdk15on:' + bouncycastleVersion
)
testImplementation 'junit:junit:4.12'
testImplementation(libs.junit)
}