Skip to content

Commit c087f8e

Browse files
committed
wip
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent c9b9f3d commit c087f8e

4 files changed

Lines changed: 30 additions & 14 deletions

File tree

app/build.gradle.kts

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,24 @@ configurations.configureEach {
4646
force(libs.objenesis)
4747

4848
eachDependency {
49-
if (requested.group == "org.checkerframework" && requested.name != "checker-compat-qual") {
50-
useVersion(libs.versions.checker.get())
51-
because("https://github.com/google/ExoPlayer/issues/10007")
52-
} else if (requested.group == "org.jacoco") {
53-
useVersion(libs.versions.jacoco.get())
54-
} else if (requested.group == "commons-logging" && requested.name == "commons-logging") {
55-
useTarget(libs.slfj)
56-
} else if (requested.group == "org.hamcrest") {
57-
useVersion("2.2")
58-
because(
59-
"Align hamcrest on compile and runtime. 1.3 (via junit) exposes fixed-arity " +
60-
"anyOf/allOf overloads that 2.2 (via androidx.test) removed, causing NoSuchMethodError."
61-
)
49+
when (requested.group) {
50+
"org.checkerframework" if requested.name != "checker-compat-qual" -> {
51+
useVersion(libs.versions.checker.get())
52+
because("https://github.com/google/ExoPlayer/issues/10007")
53+
}
54+
"org.jacoco" -> {
55+
useVersion(libs.versions.jacoco.get())
56+
}
57+
"commons-logging" if requested.name == "commons-logging" -> {
58+
useTarget(libs.slfj)
59+
}
60+
"org.hamcrest" -> {
61+
useVersion("2.2")
62+
because(
63+
"Align hamcrest on compile and runtime. 1.3 (via junit) exposes fixed-arity " +
64+
"anyOf/allOf overloads that 2.2 (via androidx.test) removed, causing NoSuchMethodError."
65+
)
66+
}
6267
}
6368
}
6469
}
@@ -272,6 +277,7 @@ spotbugs {
272277
}
273278

274279
tasks.register<Checkstyle>("checkstyle") {
280+
description = "checks style"
275281
configFile = file("${rootProject.projectDir}/checkstyle.xml")
276282
setConfigProperties(
277283
"checkstyleSuppressionsPath" to file("${rootProject.rootDir}/suppressions.xml").absolutePath
@@ -283,6 +289,7 @@ tasks.register<Checkstyle>("checkstyle") {
283289
}
284290

285291
tasks.register<Pmd>("pmd") {
292+
description = "pmd"
286293
ruleSetFiles = files("${rootProject.rootDir}/ruleset.xml")
287294
ignoreFailures = true // should continue checking
288295
ruleSets = emptyList()

app/src/androidTest/java/com/nextcloud/test/GrantTestPermissionRule.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ object GrantTestPermissionRule {
3030
add(Manifest.permission.POST_NOTIFICATIONS)
3131
}
3232
}
33+
@Suppress("SpreadOperator")
3334
return GrantPermissionRule.grant(*permissions.toTypedArray())
3435
}
3536
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
androidCommonLibraryVersion = "0.33.2"
66
androidGifDrawableVersion = "1.2.32"
77
androidImageCropperVersion = "4.7.0"
8-
androidLibraryVersion ="f785399541c09778d95268c4cfea6ff6289beca8"
8+
androidLibraryVersion ="4b16ffab94e087925e6390aee889c47cd1f5b2c0"
99
androidOpensslVersion = "3.5.6"
1010
androidPluginVersion = "9.2.1"
1111
androidsvgVersion = "1.4"

gradle/verification-metadata.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21362,6 +21362,14 @@
2136221362
<sha256 value="08d98a9ef4d6eb7e96909e586f47d64230e560a0d8329ce656d3a2caeb0c66b4" origin="Generated by Gradle" reason="Artifact is not signed"/>
2136321363
</artifact>
2136421364
</component>
21365+
<component group="com.github.nextcloud" name="android-library" version="4b16ffab94e087925e6390aee889c47cd1f5b2c0">
21366+
<artifact name="android-library-4b16ffab94e087925e6390aee889c47cd1f5b2c0.aar">
21367+
<sha256 value="d6d068b63ef4ce77e12f46bce95e77a6ffecaa4de6ea3177e3e14ebcdcf8dc61" origin="Generated by Gradle" reason="Artifact is not signed"/>
21368+
</artifact>
21369+
<artifact name="android-library-4b16ffab94e087925e6390aee889c47cd1f5b2c0.module">
21370+
<sha256 value="8110876bd15ab1d8daa472abaaa6696e663f1eda89535820c7d7b4fa350dfb01" origin="Generated by Gradle" reason="Artifact is not signed"/>
21371+
</artifact>
21372+
</component>
2136521373
<component group="com.github.nextcloud" name="android-library" version="4c07e6a69e8a8bab43ca9406ea546613e90d934b">
2136621374
<artifact name="android-library-4c07e6a69e8a8bab43ca9406ea546613e90d934b.aar">
2136721375
<sha256 value="93cbe04624899eda7d1ac40cfd067ae9ce206521af987f2d63a6867f8db08bfa" origin="Generated by Gradle" reason="Artifact is not signed"/>

0 commit comments

Comments
 (0)