Skip to content

Commit 1885109

Browse files
Merge pull request #15444 from nextcloud/chore/dependencies-toml-2
chore: update dependencies to TOML format
2 parents c2a7ad4 + 6d1830b commit 1885109

3 files changed

Lines changed: 183 additions & 62 deletions

File tree

app/build.gradle

Lines changed: 67 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ configurations.configureEach {
6767
useVersion(checkerVersion)
6868
because("https://github.com/google/ExoPlayer/issues/10007")
6969
}
70+
71+
if (requested.group == "commons-logging" && requested.name == "commons-logging") {
72+
useTarget("org.slf4j:jcl-over-slf4j:1.7.4")
73+
}
7074
}
7175
}
7276

@@ -341,31 +345,31 @@ dependencies {
341345
androidTestImplementation libs.core.ktx
342346
androidTestImplementation libs.core.testing
343347

344-
compileOnly "org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2"
348+
compileOnly libs.org.jbundle.util.osgi.wrapped.org.apache.http.client
345349
// remove after entire switch to lib v2
346-
implementation "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
347-
implementation "org.apache.jackrabbit:jackrabbit-webdav:2.13.5" // remove after entire switch to lib v2
348-
implementation "androidx.constraintlayout:constraintlayout:2.2.1"
349-
implementation "androidx.legacy:legacy-support-v4:1.0.0"
350-
implementation "com.google.android.material:material:1.12.0"
351-
implementation "com.jakewharton:disklrucache:2.0.2"
352-
implementation "com.github.albfernandez:juniversalchardet:2.5.0" // need this version for Android <7
353-
compileOnly "com.google.code.findbugs:annotations:3.0.1u2"
354-
implementation "commons-io:commons-io:2.20.0"
355-
implementation "org.greenrobot:eventbus:3.3.1"
356-
implementation "com.googlecode.ez-vcard:ez-vcard:0.12.1"
357-
implementation "org.lukhnos:nnio:0.3.1"
358-
implementation "org.bouncycastle:bcpkix-jdk18on:1.81"
359-
implementation "com.google.code.gson:gson:2.13.1"
360-
implementation "com.github.nextcloud-deps:sectioned-recyclerview:0.6.1"
361-
implementation "com.github.Baseflow:PhotoView:2.3.0"
362-
implementation "pl.droidsonroids.gif:android-gif-drawable:1.2.29"
363-
implementation "com.github.nextcloud-deps:qrcodescanner:0.1.2.4" // "com.github.blikoon:QRCodeScanner:0.1.2"
364-
implementation "com.google.android.flexbox:flexbox:3.0.0"
365-
366-
implementation "com.caverock:androidsvg:1.4"
367-
implementation "androidx.annotation:annotation:1.9.1"
368-
implementation "com.vanniktech:emoji-google:0.21.0"
350+
implementation libs.commons.httpclient.commons.httpclient // remove after entire switch to lib v2
351+
implementation libs.jackrabbit.webdav // remove after entire switch to lib v2
352+
implementation libs.constraintlayout
353+
implementation libs.legacy.support.v4
354+
implementation libs.material
355+
implementation libs.disklrucache
356+
implementation libs.juniversalchardet // need this version for Android <7
357+
compileOnly libs.annotations
358+
implementation libs.commons.io
359+
implementation libs.eventbus
360+
implementation libs.ez.vcard
361+
implementation libs.nnio
362+
implementation libs.bcpkix.jdk18on
363+
implementation libs.gson
364+
implementation libs.sectioned.recyclerview
365+
implementation libs.photoview
366+
implementation libs.android.gif.drawable
367+
implementation libs.qrcodescanner // "com.github.blikoon:QRCodeScanner:0.1.2"
368+
implementation libs.flexbox
369+
370+
implementation libs.androidsvg
371+
implementation libs.annotation
372+
implementation libs.emoji.google
369373

370374
// document scanner not available on FDroid (generic) due to OpenCV binaries
371375
gplayImplementation project(":appscan")
@@ -375,36 +379,37 @@ dependencies {
375379
spotbugsPlugins "com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0"
376380
spotbugsPlugins "com.mebigfatguy.fb-contrib:fb-contrib:7.6.12"
377381

378-
implementation "com.google.dagger:dagger:$daggerVersion"
379-
implementation "com.google.dagger:dagger-android:$daggerVersion"
380-
implementation "com.google.dagger:dagger-android-support:$daggerVersion"
382+
// dagger
383+
implementation libs.dagger
384+
implementation libs.dagger.android
385+
implementation libs.dagger.android.support
381386
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
382387
kapt "com.google.dagger:dagger-android-processor:$daggerVersion"
383388

384-
implementation "org.conscrypt:conscrypt-android:2.5.3"
389+
implementation libs.conscrypt.android
385390

386-
implementation "me.zhanghai.android.fastscroll:library:1.3.0"
391+
implementation libs.library
387392

388393
// Shimmer animation
389-
implementation "io.github.elye:loaderviewlibrary:3.0.0"
394+
implementation libs.loaderviewlibrary
390395

391396
// dependencies for markdown rendering
392-
implementation "io.noties.markwon:core:$markwonVersion"
393-
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
394-
implementation "io.noties.markwon:ext-tables:$markwonVersion"
395-
implementation "io.noties.markwon:ext-tasklist:$markwonVersion"
396-
implementation "io.noties.markwon:html:$markwonVersion"
397-
398-
implementation "io.noties.markwon:syntax-highlight:$markwonVersion"
399-
implementation "io.noties:prism4j:$prismVersion"
397+
implementation libs.core
398+
implementation libs.ext.strikethrough
399+
implementation libs.ext.tables
400+
implementation libs.ext.tasklist
401+
implementation libs.html
402+
403+
implementation libs.syntax.highlight
404+
implementation libs.prism4j
400405
kapt "io.noties:prism4j-bundler:$prismVersion"
401406

402407
// dependencies for image cropping and rotation
403-
implementation "com.vanniktech:android-image-cropper:4.6.0"
408+
implementation libs.android.image.cropper
404409

405-
implementation "org.osmdroid:osmdroid-android:6.1.20"
410+
implementation libs.osmdroid.android
406411

407-
implementation("org.mnode.ical4j:ical4j:3.2.19") {
412+
implementation(libs.ical4j) {
408413
["org.apache.commons", "commons-logging"].each {
409414
exclude group: "$it"
410415
}
@@ -415,40 +420,40 @@ dependencies {
415420
}
416421

417422
// dependencies for local unit tests
418-
testImplementation "junit:junit:4.13.2"
419-
testImplementation "org.mockito:mockito-core:$mockitoVersion"
420-
testImplementation "androidx.test:core:$androidxTestVersion"
421-
testImplementation "org.json:json:20250517"
422-
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
423-
testImplementation "androidx.arch.core:core-testing:2.2.0"
423+
testImplementation libs.junit.junit
424+
testImplementation libs.mockito.core
425+
testImplementation libs.test.core
426+
testImplementation libs.json
427+
testImplementation libs.mockito.kotlin
428+
testImplementation libs.core.testing
424429
testImplementation "io.mockk:mockk:$mockkVersion"
425-
testImplementation "io.mockk:mockk-android:$mockkVersion"
430+
testImplementation libs.mockk.android
426431

427432
// Mocking support
428-
androidTestImplementation "com.github.tmurakami:dexopener:2.0.5" // required to allow mocking on API 27 and older
429-
androidTestImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
430-
androidTestImplementation "org.mockito:mockito-core:$mockitoVersion"
431-
androidTestImplementation("org.mockito:mockito-android:$mockitoVersion")
432-
androidTestImplementation "io.mockk:mockk-android:$mockkVersion"
433-
androidTestImplementation "com.facebook.testing.screenshot:core:0.15.0"
433+
androidTestImplementation libs.dexopener // required to allow mocking on API 27 and older
434+
androidTestImplementation libs.mockito.kotlin
435+
androidTestImplementation libs.mockito.core
436+
androidTestImplementation(libs.mockito.android)
437+
androidTestImplementation libs.mockk.android
438+
androidTestImplementation libs.screenshot.core
434439

435440
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
436441
// androidTestImplementation "androidx.test.uiautomator:uiautomator:2.2.0"
437442
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details
438443
//androidTestImplementation "com.android.support:support-annotations:${supportLibraryVersion}"
439-
androidTestImplementation "tools.fastlane:screengrab:2.1.1"
440-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
444+
androidTestImplementation libs.screengrab
445+
implementation libs.kotlin.stdlib
441446

442-
implementation "com.github.stateless4j:stateless4j:2.6.0"
447+
implementation libs.stateless4j
443448

444449
// upon each update first test: new registration, receive push
445-
gplayImplementation "com.google.firebase:firebase-messaging:25.0.0"
446-
gplayImplementation "com.google.android.gms:play-services-base:18.7.2"
447-
gplayImplementation "com.google.android.play:review-ktx:2.0.2"
450+
gplayImplementation libs.firebase.messaging
451+
gplayImplementation libs.play.services.base
452+
gplayImplementation libs.review.ktx
448453

449-
implementation "com.github.nextcloud.android-common:ui:$androidCommonLibraryVersion"
454+
implementation libs.ui
450455

451-
implementation "io.coil-kt:coil:2.7.0"
456+
implementation libs.coil
452457
}
453458

454459
configurations.configureEach {

gradle/libs.versions.toml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,130 @@
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33

44
[versions]
5+
androidCommonLibraryVersion = "0.27.2"
6+
androidGifDrawableVersion = "1.2.29"
7+
androidImageCropperVersion = "4.6.0"
8+
androidsvgVersion = "1.4"
59
androidxTestVersion = "1.7.0"
10+
annotationsVersion = "3.0.1u2"
11+
annotationVersion = "1.9.1"
612
appCompatVersion = "1.7.1"
13+
bcpkixJdk18onVersion = "1.81"
714
cardviewVersion = "1.0.0"
15+
coilVersion = "2.7.0"
16+
commonsHttpclient = "3.1"
17+
commonsIoVersion = "2.20.0"
18+
conscryptAndroidVersion = "2.5.3"
19+
constraintlayoutVersion = "2.2.1"
820
coreTestingVersion = "2.2.0"
21+
coreVersion = "0.15.0"
22+
daggerVersion = "2.57.1"
23+
dexopenerVersion = "2.0.5"
24+
disklrucacheVersion = "2.0.2"
25+
emojiGoogleVersion = "0.21.0"
926
espressoVersion = "3.7.0"
27+
eventbusVersion = "3.3.1"
1028
exifinterfaceVersion = "1.4.1"
29+
ezVcardVersion = "0.12.1"
30+
firebaseMessagingVersion = "25.0.0"
31+
flexboxVersion = "3.0.0"
1132
fragmentKtxVersion = "1.8.9"
1233
glide = "4.16.0"
34+
gsonVersion = "2.13.1"
35+
ical4jVersion = "3.2.19"
36+
jackrabbitWebdavVersion = "2.13.5"
37+
jsonVersion = "20250517"
38+
junit = "4.13.2"
1339
junitVersion = "1.3.0"
40+
juniversalchardetVersion = "2.5.0"
41+
kotlinStdlibVersion = "2.2.10"
42+
legacySupportV4Version = "1.0.0"
43+
libraryVersion = "1.3.0"
1444
lifecycleViewmodelKtxVersion = "2.9.2"
45+
loaderviewlibraryVersion = "3.0.0"
46+
markwonVersion = "4.6.2"
47+
materialVersion = "1.12.0"
1548
media3 = "1.8.0"
49+
mockitoKotlinVersion = "4.1.0"
50+
mockitoVersion = "4.11.0"
51+
mockkVersion = "1.14.5"
52+
nnioVersion = "0.3.1"
1653
orchestratorVersion = "1.6.1"
54+
orgJbundleUtilOsgiWrappedOrgApacheHttpClientVersion = "4.1.2"
55+
osmdroidAndroidVersion = "6.1.20"
56+
photoviewVersion = "2.3.0"
57+
playServicesBaseVersion = "18.7.2"
58+
prismVersion = "2.0.0"
59+
qrcodescannerVersion = "0.1.2.4"
60+
reviewKtxVersion = "2.0.2"
1761
roomVersion = "2.7.2"
62+
screengrabVersion = "2.1.1"
63+
sectionedRecyclerviewVersion = "0.6.1"
1864
splash-screen = "1.0.1"
1965
kotlin = "2.2.10"
2066
composeBom = "2025.08.00"
2167
spotbugsGradlePlugin = "6.2.3"
2268
detektGradlePlugin = "1.23.8"
2369
spotless = "7.2.1"
2470
ksp = "2.2.10-2.0.2"
71+
stateless4jVersion = "2.6.0"
2572
webkitVersion = "1.14.0"
2673
workRuntime = "2.10.3"
2774

2875
[libraries]
2976
# Splash Screen
77+
android-gif-drawable = { module = "pl.droidsonroids.gif:android-gif-drawable", version.ref = "androidGifDrawableVersion" }
78+
android-image-cropper = { module = "com.vanniktech:android-image-cropper", version.ref = "androidImageCropperVersion" }
79+
androidsvg = { module = "com.caverock:androidsvg", version.ref = "androidsvgVersion" }
80+
annotation = { module = "androidx.annotation:annotation", version.ref = "annotationVersion" }
81+
annotations = { module = "com.google.code.findbugs:annotations", version.ref = "annotationsVersion" }
82+
bcpkix-jdk18on = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "bcpkixJdk18onVersion" }
83+
coil = { module = "io.coil-kt:coil", version.ref = "coilVersion" }
84+
commons-httpclient-commons-httpclient = { module = "commons-httpclient:commons-httpclient", version.ref = "commonsHttpclient" }
85+
commons-io = { module = "commons-io:commons-io", version.ref = "commonsIoVersion" }
86+
conscrypt-android = { module = "org.conscrypt:conscrypt-android", version.ref = "conscryptAndroidVersion" }
87+
constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayoutVersion" }
88+
core = { module = "io.noties.markwon:core", version.ref = "markwonVersion" }
89+
dagger = { module = "com.google.dagger:dagger", version.ref = "daggerVersion" }
90+
dagger-android = { module = "com.google.dagger:dagger-android", version.ref = "daggerVersion" }
91+
dagger-android-support = { module = "com.google.dagger:dagger-android-support", version.ref = "daggerVersion" }
92+
dexopener = { module = "com.github.tmurakami:dexopener", version.ref = "dexopenerVersion" }
93+
disklrucache = { module = "com.jakewharton:disklrucache", version.ref = "disklrucacheVersion" }
94+
emoji-google = { module = "com.vanniktech:emoji-google", version.ref = "emojiGoogleVersion" }
95+
eventbus = { module = "org.greenrobot:eventbus", version.ref = "eventbusVersion" }
96+
ext-strikethrough = { module = "io.noties.markwon:ext-strikethrough", version.ref = "markwonVersion" }
97+
ext-tables = { module = "io.noties.markwon:ext-tables", version.ref = "markwonVersion" }
98+
ext-tasklist = { module = "io.noties.markwon:ext-tasklist", version.ref = "markwonVersion" }
99+
ez-vcard = { module = "com.googlecode.ez-vcard:ez-vcard", version.ref = "ezVcardVersion" }
100+
firebase-messaging = { module = "com.google.firebase:firebase-messaging", version.ref = "firebaseMessagingVersion" }
101+
flexbox = { module = "com.google.android.flexbox:flexbox", version.ref = "flexboxVersion" }
102+
gson = { module = "com.google.code.gson:gson", version.ref = "gsonVersion" }
103+
html = { module = "io.noties.markwon:html", version.ref = "markwonVersion" }
104+
ical4j = { module = "org.mnode.ical4j:ical4j", version.ref = "ical4jVersion" }
105+
jackrabbit-webdav = { module = "org.apache.jackrabbit:jackrabbit-webdav", version.ref = "jackrabbitWebdavVersion" }
106+
json = { module = "org.json:json", version.ref = "jsonVersion" }
107+
junit-junit = { module = "junit:junit", version.ref = "junit" }
108+
juniversalchardet = { module = "com.github.albfernandez:juniversalchardet", version.ref = "juniversalchardetVersion" }
109+
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlinStdlibVersion" }
110+
legacy-support-v4 = { module = "androidx.legacy:legacy-support-v4", version.ref = "legacySupportV4Version" }
111+
library = { module = "me.zhanghai.android.fastscroll:library", version.ref = "libraryVersion" }
112+
loaderviewlibrary = { module = "io.github.elye:loaderviewlibrary", version.ref = "loaderviewlibraryVersion" }
113+
material = { module = "com.google.android.material:material", version.ref = "materialVersion" }
114+
mockito-android = { module = "org.mockito:mockito-android", version.ref = "mockitoVersion" }
115+
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockitoVersion" }
116+
mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockitoKotlinVersion" }
117+
mockk-android = { module = "io.mockk:mockk-android", version.ref = "mockkVersion" }
118+
nnio = { module = "org.lukhnos:nnio", version.ref = "nnioVersion" }
119+
org-jbundle-util-osgi-wrapped-org-apache-http-client = { module = "org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client", version.ref = "orgJbundleUtilOsgiWrappedOrgApacheHttpClientVersion" }
120+
osmdroid-android = { module = "org.osmdroid:osmdroid-android", version.ref = "osmdroidAndroidVersion" }
121+
photoview = { module = "com.github.Baseflow:PhotoView", version.ref = "photoviewVersion" }
122+
play-services-base = { module = "com.google.android.gms:play-services-base", version.ref = "playServicesBaseVersion" }
123+
prism4j = { module = "io.noties:prism4j", version.ref = "prismVersion" }
124+
qrcodescanner = { module = "com.github.nextcloud-deps:qrcodescanner", version.ref = "qrcodescannerVersion" }
125+
review-ktx = { module = "com.google.android.play:review-ktx", version.ref = "reviewKtxVersion" }
126+
screengrab = { module = "tools.fastlane:screengrab", version.ref = "screengrabVersion" }
127+
screenshot-core = { module = "com.facebook.testing.screenshot:core", version.ref = "coreVersion" }
128+
sectioned-recyclerview = { module = "com.github.nextcloud-deps:sectioned-recyclerview", version.ref = "sectionedRecyclerviewVersion" }
30129
splashscreen = { module = "androidx.core:core-splashscreen", version.ref = "splash-screen" }
31130

32131
# UI
@@ -82,6 +181,10 @@ runner = { module = "androidx.test:runner", version.ref = "androidxTestVersion"
82181
spotbugs-gradle-plugin = { module = "com.github.spotbugs.snom:spotbugs-gradle-plugin", version.ref = "spotbugsGradlePlugin" }
83182
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
84183
detekt-gradle-plugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detektGradlePlugin" }
184+
stateless4j = { module = "com.github.stateless4j:stateless4j", version.ref = "stateless4jVersion" }
185+
syntax-highlight = { module = "io.noties.markwon:syntax-highlight", version.ref = "markwonVersion" }
186+
test-core = { module = "androidx.test:core", version.ref = "androidxTestVersion" }
187+
ui = { module = "com.github.nextcloud.android-common:ui", version.ref = "androidCommonLibraryVersion" }
85188
webkit = { module = "androidx.webkit:webkit", version.ref = "webkitVersion" }
86189
work-runtime = { module = "androidx.work:work-runtime", version.ref = "workRuntime" }
87190
work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workRuntime" }

gradle/verification-metadata.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20261,6 +20261,11 @@
2026120261
<sha256 value="c01c4cda5e408f41ed1d83e4a0a170cf53801b6338aba49f0f904786bc1214fc" origin="Generated by Gradle"/>
2026220262
</artifact>
2026320263
</component>
20264+
<component group="commons-codec" name="commons-codec" version="1.2">
20265+
<artifact name="commons-codec-1.2.pom">
20266+
<sha256 value="28d6c089355487fd2e973e091a152727ac27ad2b2c1ec9cbcf916a10fc863148" origin="Generated by Gradle" reason="Artifact is not signed"/>
20267+
</artifact>
20268+
</component>
2026420269
<component group="commons-collections" name="commons-collections" version="3.2.2">
2026520270
<artifact name="commons-collections-3.2.2.jar">
2026620271
<sha256 value="eeeae917917144a68a741d4c0dff66aa5c5c5fd85593ff217bced3fc8ca783b8" origin="Generated by Gradle"/>
@@ -20350,6 +20355,14 @@
2035020355
<sha256 value="0c23863893a2291f5a7afdbd8d15923b3948afd87e563fa341cdcf6eae338a60" origin="Generated by Gradle"/>
2035120356
</artifact>
2035220357
</component>
20358+
<component group="commons-logging" name="commons-logging" version="1.0.4">
20359+
<artifact name="commons-logging-1.0.4.jar">
20360+
<sha256 value="e94af49749384c11f5aa50e8d0f5fe679be771295b52030338d32843c980351e" origin="Generated by Gradle" reason="Artifact is not signed"/>
20361+
</artifact>
20362+
<artifact name="commons-logging-1.0.4.pom">
20363+
<sha256 value="65d310509352b5425118225ee600a01f83ba72142d035014b5d164bc04b2d284" origin="Generated by Gradle" reason="Artifact is not signed"/>
20364+
</artifact>
20365+
</component>
2035320366
<component group="commons-logging" name="commons-logging" version="1.2">
2035420367
<artifact name="commons-logging-1.2.jar">
2035520368
<sha256 value="daddea1ea0be0f56978ab3006b8ac92834afeefbd9b7e4e6316fca57df0fa636" origin="Generated by Gradle"/>

0 commit comments

Comments
 (0)