From 974ef95e4e6df6870587c976eacaa245c519fbc3 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 25 Jan 2026 03:38:41 +0000
Subject: [PATCH 1/2] chore(deps): update plugin com.diffplug.spotless to
v8.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
build.gradle | 2 +-
gradle/verification-metadata.xml | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index 55cf1095..5e985ffa 100644
--- a/build.gradle
+++ b/build.gradle
@@ -24,7 +24,7 @@ plugins {
id 'com.android.library' version '9.0.0' apply false
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false
id 'com.android.legacy-kapt' version '9.0.0' apply false
- id 'com.diffplug.spotless' version '8.1.0' apply false
+ id 'com.diffplug.spotless' version '8.2.0' apply false
id 'io.gitlab.arturbosch.detekt' version '1.23.8' apply false
id 'com.android.application' version '9.0.0' apply false
}
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index a06c901e..0620f64e 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -203,6 +203,7 @@
+
@@ -13014,6 +13015,11 @@
+
+
+
+
+
From 26ef80f5814b60ab4163f90d1e5ea72982ec3441 Mon Sep 17 00:00:00 2001
From: Andy Scherzinger
Date: Sun, 25 Jan 2026 21:06:07 +0100
Subject: [PATCH 2/2] ci(spotless): reformat code and adds meta data
Signed-off-by: Andy Scherzinger
---
.../common/core/utils/DateFormatter.kt | 27 +-
gradle/verification-metadata.xml | 408 ++++++++++++++++++
2 files changed, 427 insertions(+), 8 deletions(-)
diff --git a/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt b/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt
index 873efb9f..4d947aca 100644
--- a/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt
+++ b/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt
@@ -25,9 +25,6 @@ class DateFormatter(
private val sdfMonths: SimpleDateFormat
private val sdfYears: SimpleDateFormat
- /**
- * constructor.
- */
init {
val locale =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
@@ -59,13 +56,18 @@ class DateFormatter(
val span = System.currentTimeMillis() - calendar.getTimeInMillis()
return when {
// less than 1m
- span < ONE_MINUTE_IN_MILLIS -> context.getString(R.string.date_formatting_now)
+ span < ONE_MINUTE_IN_MILLIS -> {
+ context.getString(R.string.date_formatting_now)
+ }
+
// less than 1h
- span < ONE_HOUR_IN_MILLIS ->
+ span < ONE_HOUR_IN_MILLIS -> {
context.getString(
R.string.date_formatting_relative_minutes,
span / ONE_MINUTE_IN_MILLIS
)
+ }
+
// less than 1d
span < ONE_DAY_IN_MILLIS -> {
val hours: Int = span.toInt() / ONE_HOUR_IN_MILLIS
@@ -73,12 +75,21 @@ class DateFormatter(
.resources
.getQuantityString(R.plurals.date_formatting_relative_hours, hours, hours)
}
+
// less than 1w
- span <= SIX_DAYS_IN_MILLIS -> sdfDays.format(calendar.getTime())
+ span <= SIX_DAYS_IN_MILLIS -> {
+ sdfDays.format(calendar.getTime())
+ }
+
// less than 1y -> up to 364 days
- span <= YEAR_IN_MILLIS -> sdfMonths.format(calendar.getTime())
+ span <= YEAR_IN_MILLIS -> {
+ sdfMonths.format(calendar.getTime())
+ }
+
// more than 1y -> more than 364 days
- else -> sdfYears.format(calendar.getTime())
+ else -> {
+ sdfYears.format(calendar.getTime())
+ }
}
}
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index 0620f64e..63646a6b 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -5793,6 +5793,14 @@
+
+
+
+
+
+
+
+
@@ -5809,6 +5817,14 @@
+
+
+
+
+
+
+
+
@@ -5819,6 +5835,11 @@
+
+
+
+
+
@@ -13092,6 +13113,14 @@
+
+
+
+
+
+
+
+
@@ -13164,6 +13193,14 @@
+
+
+
+
+
+
+
+
@@ -13236,6 +13273,14 @@
+
+
+
+
+
+
+
+
@@ -13610,6 +13655,14 @@
+
+
+
+
+
+
+
+
@@ -13658,6 +13711,14 @@
+
+
+
+
+
+
+
+
@@ -13706,6 +13767,14 @@
+
+
+
+
+
+
+
+
@@ -14341,6 +14410,14 @@
+
+
+
+
+
+
+
+
@@ -14357,6 +14434,14 @@
+
+
+
+
+
+
+
+
@@ -14373,6 +14458,14 @@
+
+
+
+
+
+
+
+
@@ -14389,6 +14482,14 @@
+
+
+
+
+
+
+
+
@@ -14405,6 +14506,14 @@
+
+
+
+
+
+
+
+
@@ -14421,6 +14530,14 @@
+
+
+
+
+
+
+
+
@@ -14437,6 +14554,14 @@
+
+
+
+
+
+
+
+
@@ -14453,6 +14578,14 @@
+
+
+
+
+
+
+
+
@@ -14469,6 +14602,14 @@
+
+
+
+
+
+
+
+
@@ -14485,6 +14626,14 @@
+
+
+
+
+
+
+
+
@@ -14501,6 +14650,14 @@
+
+
+
+
+
+
+
+
@@ -14517,6 +14674,14 @@
+
+
+
+
+
+
+
+
@@ -14533,6 +14698,14 @@
+
+
+
+
+
+
+
+
@@ -14549,6 +14722,14 @@
+
+
+
+
+
+
+
+
@@ -14565,6 +14746,14 @@
+
+
+
+
+
+
+
+
@@ -14755,6 +14944,14 @@
+
+
+
+
+
+
+
+
@@ -14799,6 +14996,11 @@
+
+
+
+
+
@@ -14831,6 +15033,14 @@
+
+
+
+
+
+
+
+
@@ -14881,6 +15091,14 @@
+
+
+
+
+
+
+
+
@@ -16287,6 +16505,11 @@
+
+
+
+
+
@@ -16620,6 +16843,14 @@
+
+
+
+
+
+
+
+
@@ -16640,6 +16871,11 @@
+
+
+
+
+
@@ -16672,6 +16908,14 @@
+
+
+
+
+
+
+
+
@@ -17242,6 +17486,14 @@
+
+
+
+
+
+
+
+
@@ -17565,6 +17817,14 @@
+
+
+
+
+
+
+
+
@@ -18236,6 +18496,14 @@
+
+
+
+
+
+
+
+
@@ -18542,6 +18810,14 @@
+
+
+
+
+
+
+
+
@@ -18639,6 +18915,11 @@
+
+
+
+
+
@@ -19639,6 +19920,11 @@
+
+
+
+
+
@@ -19782,6 +20068,14 @@
+
+
+
+
+
+
+
+
@@ -19992,6 +20286,14 @@
+
+
+
+
+
+
+
+
@@ -20000,6 +20302,14 @@
+
+
+
+
+
+
+
+
@@ -20008,6 +20318,14 @@
+
+
+
+
+
+
+
+
@@ -20024,6 +20342,14 @@
+
+
+
+
+
+
+
+
@@ -20032,6 +20358,14 @@
+
+
+
+
+
+
+
+
@@ -20040,6 +20374,14 @@
+
+
+
+
+
+
+
+
@@ -20048,6 +20390,14 @@
+
+
+
+
+
+
+
+
@@ -20056,6 +20406,14 @@
+
+
+
+
+
+
+
+
@@ -20064,6 +20422,14 @@
+
+
+
+
+
+
+
+
@@ -20072,6 +20438,14 @@
+
+
+
+
+
+
+
+
@@ -20080,6 +20454,14 @@
+
+
+
+
+
+
+
+
@@ -20088,6 +20470,14 @@
+
+
+
+
+
+
+
+
@@ -20101,6 +20491,14 @@
+
+
+
+
+
+
+
+
@@ -20109,6 +20507,11 @@
+
+
+
+
+
@@ -20119,6 +20522,11 @@
+
+
+
+
+