Compare commits

..
Author SHA1 Message Date
tobiasKaminsky 4f852195ac local videos cannot be used for preview
Signed-off-by: tobiasKaminsky <[email protected]>
2025-11-04 07:56:07 +01:00
Andy Scherzinger 90ebd53227 Merge pull request #15893 from nextcloud/renovate/github-codeql-action-4.x
chore(deps): update github/codeql-action action to v4.31.2
2025-11-03 23:09:39 +01:00
renovate[bot] 04bd74ac09 chore(deps): update github/codeql-action action to v4.31.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-03 09:25:47 +00:00
Alper Öztürk 104d1e6663 Merge pull request #15873 from nextcloud/fix/yml-files
fix: yml files
2025-11-03 10:24:46 +01:00
Alper Öztürk 04aec3f7c8 Merge branch 'master' into fix/yml-files
Signed-off-by: Alper Öztürk <[email protected]>
2025-11-03 09:33:53 +01:00
Alper Öztürk f5814b9822 Merge pull request #15890 from nextcloud/rakekniven-patch-2
chore(i18n): Removed quotation mark
2025-11-03 09:32:23 +01:00
Alper Öztürk 0710c82101 Merge pull request #15756 from nextcloud/fix/handle-slow-internet-connection-better-for-fetching-shares
fix: handle slow internet connection better for fetching shares
2025-11-03 09:20:25 +01:00
alperozturk e8b0d378f3 fix github actions
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:15:59 +01:00
alperozturk cd4c43ce82 fix github actions
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:15:59 +01:00
alperozturk d384dc5a43 fix yml file
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:15:59 +01:00
alperozturk f7c1f921bb fix: yml files
Signed-off-by: alperozturk <[email protected]>

# Conflicts:
#	scripts/buildDev
2025-11-03 09:15:59 +01:00
alperozturk d31db26d00 fix git conflict
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:14:12 +01:00
alperozturk dff8ee60a3 add: new no internet icon
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:14:12 +01:00
alperozturk 9be50ef142 fix: codacy
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:14:12 +01:00
alperozturk 3a8bbd0ebb fix: showFederatedShareAvatar
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:14:12 +01:00
alperozturk 0dbaf81dbb add: task timeout
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:14:12 +01:00
alperozturk d9d0f88bce add: task timeout
Signed-off-by: alperozturk <[email protected]>
2025-11-03 09:14:12 +01:00
alperozturk 0f7ce1e33f add: new empty list type
Signed-off-by: alperozturk <[email protected]>

# Conflicts:
#	app/src/main/res/values/strings.xml
2025-11-03 09:14:12 +01:00
alperozturk 4c80d1c5c3 fix: handle slow internet connection better for fetching shares
Signed-off-by: alperozturk <[email protected]>

# Conflicts:
#	build.gradle
2025-11-03 09:14:12 +01:00
Tobias Kaminsky ed4b7addff Merge pull request #15847 from nextcloud/renovate/playservicesbaseversion
fix(deps): update dependency com.google.android.gms:play-services-base to v18.9.0
2025-11-03 09:08:53 +01:00
renovate[bot] 300b499a10 fix(deps): update dependency com.google.android.gms:play-services-base to v18.9.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-03 07:13:44 +00:00
Tobias Kaminsky 6fa1ed5c3d Merge pull request #15892 from nextcloud/adjustBuildDev
adjust buildDev script to .kts syntax
2025-11-03 08:00:48 +01:00
tobiasKaminsky dfddbf0e07 adjust buildDev script to .kts syntax
Signed-off-by: tobiasKaminsky <[email protected]>
2025-11-03 07:58:46 +01:00
Nextcloud bot 24053b5bd9 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-11-03 02:44:59 +00:00
rakekniven bc3b4218a1 chore(i18n): Removed quotation mark
Signed-off-by: rakekniven <[email protected]>
2025-11-02 17:14:44 +01:00
Nextcloud bot 9a2a313b8f fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-11-01 02:39:53 +00:00
Alper Öztürk b5a3e6be29 Merge pull request #15879 from nextcloud/fix/set-current-file
fix: set current file
2025-10-31 15:48:09 +01:00
Alper Öztürk a5c7b87bf1 Merge pull request #15818 from nextcloud/add/idle-empty-list-state
fix: folder picker activity empty list state
2025-10-31 15:20:27 +01:00
alperozturk e89141a714 fix: set current file
Signed-off-by: alperozturk <[email protected]>
2025-10-31 09:38:03 +01:00
Alper Öztürk dc3b8c6918 Merge pull request #15876 from nextcloud/style/noid/mimetypeIconForWhiteboard
Add mimetype icon for Nextcloud whiteboard files
2025-10-31 08:20:32 +01:00
Nextcloud bot 54dd53c6ff fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-10-31 02:42:32 +00:00
Andy Scherzinger 96f6cc3a43 Merge pull request #15875 from nextcloud/fix/empty-list-loading-text-color
fix: empty list loading text color
2025-10-30 22:31:50 +01:00
Andy Scherzinger 9d0740294c style(icons): Add mimetype icon for Nextcloud whiteboard files
Signed-off-by: Andy Scherzinger <[email protected]>
2025-10-30 18:57:20 +01:00
Alper Öztürk 4fe9328b4c Merge pull request #15714 from eltos/eltos-remove-share-button
Hide share button in portrait mode to save space
2025-10-30 16:15:18 +01:00
alperozturk 349c1bc919 fix: empty list loading text color
Signed-off-by: alperozturk <[email protected]>
2025-10-30 16:08:35 +01:00
Philipp Niedermayer e69f2976a0 Hide share button in portrait mode to save space
Signed-off-by: Philipp Niedermayer <[email protected]>
2025-10-30 15:52:56 +01:00
Alper Öztürk dd87b213d7 Merge pull request #15859 from jimlyas/chore/gradle-new
Chore: Improve Gradle Configuration
2025-10-30 08:53:31 +01:00
Jimly Asshiddiqy 96debdd3a5 chore(gradle): update libraries
Signed-off-by: Jimly Asshiddiqy <[email protected]>
2025-10-30 13:36:14 +07:00
Jimly Asshiddiqy bdc9bb1829 chore(gradle): update header
Signed-off-by: Jimly Asshiddiqy <[email protected]>
2025-10-30 13:36:14 +07:00
Jimly Asshiddiqy 07c09e1e99 chore(gradle): Resolve comments
Signed-off-by: Jimly Asshiddiqy <[email protected]>
2025-10-30 13:36:14 +07:00
Jimly Asshiddiqy 5fd2e2942c chore(gradle): Improve Gradle Configuration
- Rename build.gradle to build.gradle.kts
- Rename settings.gradle to settings.gradle
- Rename jacoco.gradle to jacoco.gradle.kts
- Refactor some entries in the libs.versions.toml
- Change running test task from to run jacoco task to trigger task, now it's reversed... we run the test task that will trigger the jacoco task

Signed-off-by: Jimly Asshiddiqy <[email protected]>
2025-10-30 13:36:14 +07:00
Tobias Kaminsky 2bb71c8b89 Merge pull request #15863 from nextcloud/galleryMenu
Gallery Bottom Sheet can be shown during search
2025-10-30 07:16:20 +01:00
Nextcloud bot 64f79d8462 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-10-30 02:41:35 +00:00
tobiasKaminsky 7a1ac3b3bf Gallery Bottom Sheet can be shown during search
Signed-off-by: tobiasKaminsky <[email protected]>
2025-10-29 07:17:54 +01:00
alperozturk a9a00f0619 fix: folder picker activity empty list state 2025-10-21 10:58:15 +02:00
45 changed files with 1292 additions and 1044 deletions

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ steps:
commands:
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- sed -i s'#showOnlyFailingTestsInReports = ciBuild#showOnlyFailingTestsInReports = false#' build.gradle
- sed -i s'#showOnlyFailingTestsInReports = ciBuild#showOnlyFailingTestsInReports = false#' build.gradle.kts
- scripts/wait_for_emulator.sh
- scripts/runAllScreenshotCombinations noCI false
- scripts/screenshotSummary.sh
+1
View File
@@ -73,6 +73,7 @@ jobs:
{
echo "org.gradle.jvmargs=-Xmx5g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g"
echo "org.gradle.configureondemand=true"
echo "org.gradle.configuration-cache=false"
echo "kapt.incremental.apt=true"
} > "$HOME/.gradle/gradle.properties"
scripts/analysis/analysis-wrapper.sh "${{ steps.get-vars.outputs.branch }}" "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" "$GITHUB_RUN_NUMBER" "${{ steps.get-vars.outputs.pr }}"
+2 -2
View File
@@ -43,7 +43,7 @@ jobs:
with:
swap-size-gb: 10
- name: Initialize CodeQL
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
with:
languages: ${{ matrix.language }}
- name: Set up JDK 17
@@ -57,4 +57,4 @@ jobs:
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
./gradlew assembleDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
+2 -2
View File
@@ -48,8 +48,8 @@ jobs:
mkdir -p "$HOME/.gradle"
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > "$HOME/.gradle/gradle.properties"
echo "org.gradle.caching=true; org.gradle.parallel=true; org.gradle.configureondemand=true; kapt.incremental.apt=true" >> "$HOME/.gradle/gradle.properties"
sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" "app/build.gradle"
sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" "app/build.gradle"
sed -i "/qa/,/\}/ s/versionCode.*/versionCode = ${{ github.event.number }}/" app/build.gradle.kts
sed -i "/qa/,/\}/ s/versionName.*/versionName = \"${{ github.event.number }}\"/" app/build.gradle.kts
./gradlew assembleQaDebug
$(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign --ks-pass pass:"$KS_PASS" --key-pass pass:"$KEY_PASS" --ks-key-alias key0 --ks ".github/workflows/QA_keystore.jks" app/build/outputs/apk/qa/debug/*qa-debug*.apk
.github/workflows/uploadArtifact.sh "$LOG_USERNAME" "$LOG_PASSWORD" "${{github.event.number}}" "${{github.event.number}}" "$GITHUB_TOKEN"
+1 -1
View File
@@ -42,6 +42,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
with:
sarif_file: results.sarif
-592
View File
@@ -1,592 +0,0 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Alper Ozturk <[email protected]>
* SPDX-FileCopyrightText: 2024 Tobias Kaminsky <[email protected]>
* SPDX-FileCopyrightText: 2024 Andy Scherzinger <[email protected]>
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
*/
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort
import com.github.spotbugs.snom.SpotBugsTask
import org.gradle.internal.jvm.Jvm
buildscript {
dependencies {
classpath "com.android.tools.build:gradle:$androidPluginVersion"
classpath libs.spotbugs.gradle.plugin
classpath libs.kotlin.gradle.plugin
classpath libs.detekt.gradle.plugin
classpath libs.commons.httpclient.commons.httpclient // remove after entire switch to lib v2
classpath libs.shot
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath "org.jacoco:org.jacoco.report:$jacoco_version"
classpath "org.jacoco:org.jacoco.agent:$jacoco_version"
}
}
plugins {
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.spotless)
alias(libs.plugins.kapt)
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlin.serialization)
}
apply plugin: "com.android.application"
apply plugin: "kotlin-android"
apply plugin: "kotlin-parcelize"
apply plugin: "checkstyle"
apply plugin: "pmd"
apply from: "$rootProject.projectDir/jacoco.gradle"
apply plugin: "com.github.spotbugs"
apply plugin: "io.gitlab.arturbosch.detekt"
// needed to make renovate run without shot, as shot requires Android SDK
// https://github.com/pedrovgs/Shot/issues/300
if (shotTest) {
apply plugin: "shot"
}
apply plugin: "com.google.devtools.ksp"
println "Gradle uses Java ${Jvm.current()}"
configurations {
configureEach {
exclude group: "org.jetbrains", module: "annotations-java5" // via prism4j, already using annotations explicitly
}
}
configurations.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == "org.checkerframework" && requested.name != "checker-compat-qual") {
useVersion(checkerVersion)
because("https://github.com/google/ExoPlayer/issues/10007")
}
if (requested.group == "commons-logging" && requested.name == "commons-logging") {
useTarget("org.slf4j:jcl-over-slf4j:1.7.36")
}
}
}
// semantic versioning for version code
def versionMajor = 3
def versionMinor = 35
def versionPatch = 0
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
def ndkEnv = new HashMap<String, String>()
file("$project.rootDir/ndk.env").readLines().each() {
def (key, value) = it.tokenize("=")
ndkEnv.put(key, value)
}
def perfAnalysis = project.hasProperty("perfAnalysis")
def getConfigProperties() {
def props = new Properties()
def file = rootProject.file(".gradle/config.properties")
if (file.exists()) {
props.load(new FileInputStream(file))
}
return props
}
def configProps = getConfigProperties()
android {
// install this NDK version and Cmake to produce smaller APKs. Build will still work if not installed
ndkVersion = "${ndkEnv.get("NDK_VERSION")}"
namespace = "com.owncloud.android"
testNamespace = "${namespace}.test"
androidResources {
generateLocaleConfig = true
}
defaultConfig {
applicationId = "com.nextcloud.client"
minSdk = 27
targetSdk = 36
compileSdk = 36
buildConfigField "boolean", "CI", ciBuild.toString()
buildConfigField "boolean", "RUNTIME_PERF_ANALYSIS", perfAnalysis.toString()
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
// arguments to be passed to functional tests
if (shotTest) {
testInstrumentationRunner "com.karumi.shot.ShotTestRunner"
} else {
testInstrumentationRunner "com.nextcloud.client.TestRunner"
}
testInstrumentationRunnerArgument "TEST_SERVER_URL", "${NC_TEST_SERVER_BASEURL}"
testInstrumentationRunnerArgument "TEST_SERVER_USERNAME", "${NC_TEST_SERVER_USERNAME}"
testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}"
testInstrumentationRunnerArguments disableAnalytics: "true"
versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
if (versionBuild > 89) {
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
} else if (versionBuild > 50) {
versionName "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
} else {
versionName "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
flavorDimensions += "default"
buildTypes {
release {
buildConfigField "String", "NC_TEST_SERVER_DATA_STRING", "\"\""
}
debug {
testCoverageEnabled = project.hasProperty("coverage")
resConfigs "xxxhdpi"
buildConfigField "String", "NC_TEST_SERVER_DATA_STRING", "\"nc://login/user:${configProps['NC_TEST_SERVER_USERNAME']}&password:${configProps['NC_TEST_SERVER_PASSWORD']}&server:${configProps['NC_TEST_SERVER_BASEURL']}\""
}
}
buildFeatures {
buildConfig = true
}
productFlavors {
// used for f-droid
generic {
applicationId "com.nextcloud.client"
dimension "default"
}
gplay {
applicationId "com.nextcloud.client"
dimension "default"
}
huawei {
applicationId "com.nextcloud.client"
dimension "default"
}
versionDev {
applicationId "com.nextcloud.android.beta"
dimension "default"
versionCode 20220322
versionName "20220322"
}
qa {
applicationId "com.nextcloud.android.qa"
dimension "default"
versionCode 1
versionName "1"
}
}
testOptions {
unitTests.returnDefaultValues = true
animationsDisabled = true
}
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
packagingOptions {
resources {
excludes += "META-INF/LICENSE*"
excludes += "META-INF/versions/9/OSGI-INF/MANIFEST*"
pickFirst "MANIFEST.MF" // workaround for duplicated manifest on some dependencies
}
}
tasks.register("checkstyle", Checkstyle) {
configFile = file("${rootProject.projectDir}/checkstyle.xml")
configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/config/quality/checkstyle/suppressions.xml").absolutePath
source "src"
include "**/*.java"
exclude "**/gen/**"
classpath = files()
}
tasks.register("pmd", Pmd) {
ruleSetFiles = files("${project.rootDir}/ruleset.xml")
ignoreFailures = true // should continue checking
ruleSets = []
source "src"
include "**/*.java"
exclude "**/gen/**"
reports {
xml {
destination = layout.buildDirectory.file("reports/pmd/pmd.xml").get().asFile
}
html {
destination = layout.buildDirectory.file("reports/pmd/pmd.html").get().asFile
}
}
}
check.dependsOn "checkstyle", "spotbugsGplayDebug", "pmd", "lint", "spotlessKotlinCheck", "detekt"
buildFeatures {
dataBinding = true
viewBinding = true
aidl = true
compose = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
lint {
abortOnError = false
checkGeneratedSources = true
disable "MissingTranslation", "GradleDependency", "VectorPath", "IconMissingDensityFolder", "IconDensities", "GoogleAppIndexingWarning", "MissingDefaultResource", "InvalidPeriodicWorkRequestInterval", "StringFormatInvalid", "MissingQuantity"
htmlOutput = layout.buildDirectory.file("reports/lint/lint.html").get().asFile
htmlReport = true
}
sourceSets {
// Adds exported schema location as test app assets.
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
}
kapt {
useBuildCache = true
}
}
dependencies {
// region Nextcloud library
implementation("com.github.nextcloud:android-library:$androidLibraryVersion") {
exclude group: "org.ogce", module: "xpp3" // unused in Android and brings wrong Junit version
}
// endregion
// region Splash Screen
implementation libs.splashscreen
// endregion
// region Jetpack Compose
implementation(platform(libs.compose.bom))
implementation(libs.material.icons.core)
implementation(libs.compose.ui)
implementation(libs.compose.ui.graphics)
implementation(libs.compose.material3)
debugImplementation(libs.compose.ui.tooling)
implementation(libs.compose.ui.tooling.preview)
// endregion
// region Media3
implementation libs.media3.ui
implementation libs.media3.session
implementation libs.media3.exoplayer
implementation libs.media3.datasource
// endregion
// region Room
implementation libs.room.runtime
ksp "androidx.room:room-compiler:$roomVersion"
androidTestImplementation libs.room.testing
// endregion
// region Espresso
androidTestImplementation libs.espresso.core
androidTestImplementation libs.espresso.contrib
androidTestImplementation libs.espresso.web
androidTestImplementation libs.espresso.accessibility
androidTestImplementation libs.espresso.intents
androidTestImplementation libs.espresso.idling.resource
// endregion
// region Glide
implementation libs.glide
ksp libs.ksp
// endregion
// region UI
implementation libs.appcompat
implementation libs.webkit
implementation libs.cardview
implementation libs.exifinterface
implementation libs.fragment.ktx
// endregion
// region Worker
implementation libs.work.runtime
implementation libs.work.runtime.ktx
// endregion
// region Lifecycle
implementation libs.lifecycle.viewmodel.ktx
implementation libs.lifecycle.service
implementation(libs.lifecycle.runtime.ktx)
// endregion
// region JUnit
androidTestImplementation libs.junit
androidTestImplementation libs.rules
androidTestImplementation libs.runner
androidTestUtil libs.orchestrator
androidTestImplementation libs.core.ktx
androidTestImplementation libs.core.testing
// endregion
// region other libraries
compileOnly libs.org.jbundle.util.osgi.wrapped.org.apache.http.client
implementation libs.commons.httpclient.commons.httpclient // remove after entire switch to lib v2
implementation libs.jackrabbit.webdav // remove after entire switch to lib v2
implementation libs.constraintlayout
implementation libs.legacy.support.v4
implementation libs.material
implementation libs.disklrucache
implementation libs.juniversalchardet // need this version for Android <7
compileOnly libs.annotations
implementation libs.commons.io
implementation libs.eventbus
implementation libs.ez.vcard
implementation libs.nnio
implementation libs.bcpkix.jdk18on
implementation libs.gson
implementation libs.sectioned.recyclerview
implementation libs.photoview
implementation libs.android.gif.drawable
implementation libs.qrcodescanner // "com.github.blikoon:QRCodeScanner:0.1.2"
implementation libs.flexbox
implementation libs.androidsvg
implementation libs.annotation
implementation libs.emoji.google
// endregion
// region AppScan, document scanner not available on FDroid (generic) due to OpenCV binaries
gplayImplementation project(":appscan")
huaweiImplementation project(":appscan")
qaImplementation project(":appscan")
// endregion
// region SpotBugs
spotbugsPlugins libs.findsecbugs.plugin
spotbugsPlugins libs.fb.contrib
// endregion
// region Dagger
implementation libs.dagger
implementation libs.dagger.android
implementation libs.dagger.android.support
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$daggerVersion"
// endregion
// region Crypto
implementation libs.conscrypt.android
// endregion
// region Library
implementation libs.library
// endregion
// region Shimmer
implementation libs.loaderviewlibrary
// endregion
// region Markdown rendering
implementation libs.core
implementation libs.ext.strikethrough
implementation libs.ext.tables
implementation libs.ext.tasklist
implementation libs.html
implementation libs.syntax.highlight
implementation libs.prism4j
kapt "io.noties:prism4j-bundler:$prismVersion"
// endregion
// region Image cropping / rotation
implementation libs.android.image.cropper
// endregion
// region Maps
implementation libs.osmdroid.android
// endregion
// region iCal4j
implementation(libs.ical4j) {
["org.apache.commons", "commons-logging"].each {
exclude group: "$it"
}
}
// endregion
// region LeakCanary
if (perfAnalysis) {
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.14"
}
// endregion
// region Local Unit Test
testImplementation libs.junit.junit
testImplementation libs.mockito.core
testImplementation libs.test.core
testImplementation libs.json
testImplementation libs.mockito.kotlin
testImplementation libs.core.testing
testImplementation "io.mockk:mockk:$mockkVersion"
testImplementation libs.mockk.android
// endregion
// region Mocking support
androidTestImplementation libs.dexopener // required to allow mocking on API 27 and older
androidTestImplementation libs.mockito.kotlin
androidTestImplementation libs.mockito.core
androidTestImplementation(libs.mockito.android)
androidTestImplementation libs.mockk.android
androidTestImplementation libs.screenshot.core
// endregion
// region UIAutomator
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
// androidTestImplementation "androidx.test.uiautomator:uiautomator:2.2.0"
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details
// androidTestImplementation "com.android.support:support-annotations:${supportLibraryVersion}"
androidTestImplementation libs.screengrab
// endregion
// region Kotlin
implementation libs.kotlin.stdlib
// endregion
// region Stateless
implementation libs.stateless4j
// endregion
// region Google Play dependencies, upon each update first test: new registration, receive push
gplayImplementation libs.firebase.messaging
gplayImplementation libs.play.services.base
gplayImplementation libs.review.ktx
// endregion
// region UI
implementation libs.ui
// endregion
// region Image loading
implementation libs.coil
// endregion
// kotlinx.serialization
implementation(libs.kotlinx.serialization.json)
}
configurations.configureEach {
resolutionStrategy {
force "org.objenesis:objenesis:3.4"
eachDependency { details ->
if ("org.jacoco" == details.requested.group) {
details.useVersion "$jacoco_version"
}
}
}
}
// Run the compiler as a separate process
tasks.withType(JavaCompile).configureEach {
options.fork = true
// Enable Incremental Compilation
options.incremental = true
}
tasks.withType(Test).configureEach {
// Run tests in parallel
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
// increased logging for tests
testLogging {
events "passed", "skipped", "failed"
}
}
android.applicationVariants.configureEach { variant ->
variant.outputs.configureEach { output -> outputFileName = "${output.baseName}-${variant.versionCode}.apk"
}
}
spotless {
kotlin {
target "**/*.kt"
ktlint()
}
}
detekt {
config.setFrom("detekt.yml")
}
if (shotTest) {
shot {
showOnlyFailingTestsInReports = ciBuild
// CI environment renders some shadows slightly different from local VMs
// Add a 0.5% tolerance to account for that
tolerance = ciBuild ? 0.1 : 0
}
}
jacoco {
toolVersion = "$jacoco_version"
}
spotbugs {
ignoreFailures = true // should continue checking
effort = Effort.MAX
reportLevel = Confidence.valueOf("MEDIUM")
}
tasks.withType(SpotBugsTask){task ->
String variantNameCap = task.name.replace("spotbugs", "")
String variantName = variantNameCap.substring(0, 1).toLowerCase() + variantNameCap.substring(1)
dependsOn "compile${variantNameCap}Sources"
classes = fileTree(layout.buildDirectory.get().asFile.toString()+"/intermediates/javac/${variantName}/compile${variantNameCap}JavaWithJavac/classes/")
excludeFilter = file("${project.rootDir}/scripts/analysis/spotbugs-filter.xml")
reports {
xml {
required = true
}
html {
required = true
outputLocation = layout.buildDirectory.file("reports/spotbugs/spotbugs.html").get().asFile
stylesheet = "fancy.xsl"
}
}
}
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
+518
View File
@@ -0,0 +1,518 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Jimly Asshiddiqy <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@file:Suppress("UnstableApiUsage", "DEPRECATION")
import com.android.build.gradle.internal.api.ApkVariantOutputImpl
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort
import com.github.spotbugs.snom.SpotBugsTask
import com.karumi.shot.ShotExtension
import org.gradle.internal.jvm.Jvm
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import java.io.FileInputStream
import java.util.Properties
val shotTest = System.getenv("SHOT_TEST") == "true"
val ciBuild = System.getenv("CI") == "true"
val perfAnalysis = project.hasProperty("perfAnalysis")
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.spotless)
alias(libs.plugins.kapt)
alias(libs.plugins.ksp)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.jetbrains.kotlin.android)
alias(libs.plugins.spotbugs)
alias(libs.plugins.detekt)
// needed to make renovate run without shot, as shot requires Android SDK
// https://github.com/pedrovgs/Shot/issues/300
if (System.getenv("SHOT_TEST") == "true") alias(libs.plugins.shot)
id("checkstyle")
id("pmd")
}
apply(from = "${rootProject.projectDir}/jacoco.gradle.kts")
println("Gradle uses Java ${Jvm.current()}")
configurations.configureEach {
// via prism4j, already using annotations explicitly
exclude(group = "org.jetbrains", module = "annotations-java5")
resolutionStrategy {
force(libs.objenesis)
eachDependency {
if (requested.group == "org.checkerframework" && requested.name != "checker-compat-qual") {
useVersion(libs.versions.checker.get())
because("https://github.com/google/ExoPlayer/issues/10007")
} else if (requested.group == "org.jacoco") {
useVersion(libs.versions.jacoco.get())
} else if (requested.group == "commons-logging" && requested.name == "commons-logging") {
useTarget(libs.slfj)
}
}
}
}
// semantic versioning for version code
val versionMajor = 3
val versionMinor = 35
val versionPatch = 0
val versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
val ndkEnv = buildMap {
file("${project.rootDir}/ndk.env").readLines().forEach {
val (key, value) = it.split("=")
put(key, value)
}
}
val configProps = Properties().apply {
val file = rootProject.file(".gradle/config.properties")
if (file.exists()) load(FileInputStream(file))
}
val ncTestServerUsername = configProps["NC_TEST_SERVER_USERNAME"]
val ncTestServerPassword = configProps["NC_TEST_SERVER_PASSWORD"]
val ncTestServerBaseUrl = configProps["NC_TEST_SERVER_BASEURL"]
android {
// install this NDK version and Cmake to produce smaller APKs. Build will still work if not installed
ndkVersion = "${ndkEnv["NDK_VERSION"]}"
namespace = "com.owncloud.android"
testNamespace = "${namespace}.test"
androidResources.generateLocaleConfig = true
defaultConfig {
applicationId = "com.nextcloud.client"
minSdk = 27
targetSdk = 36
compileSdk = 36
buildConfigField("boolean", "CI", ciBuild.toString())
buildConfigField("boolean", "RUNTIME_PERF_ANALYSIS", perfAnalysis.toString())
javaCompileOptions.annotationProcessorOptions {
arguments += mapOf("room.schemaLocation" to "$projectDir/schemas")
}
// arguments to be passed to functional tests
testInstrumentationRunner = if (shotTest) "com.karumi.shot.ShotTestRunner"
else "com.nextcloud.client.TestRunner"
testInstrumentationRunnerArguments += mapOf(
"TEST_SERVER_URL" to ncTestServerBaseUrl.toString(),
"TEST_SERVER_USERNAME" to ncTestServerUsername.toString(),
"TEST_SERVER_PASSWORD" to ncTestServerPassword.toString()
)
testInstrumentationRunnerArguments["disableAnalytics"] = "true"
versionCode = versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName = when {
versionBuild > 89 -> "${versionMajor}.${versionMinor}.${versionPatch}"
versionBuild > 50 -> "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
else -> "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
flavorDimensions += "default"
buildTypes {
release {
buildConfigField("String", "NC_TEST_SERVER_DATA_STRING", "\"\"")
}
debug {
enableUnitTestCoverage = project.hasProperty("coverage")
resConfigs("xxxhdpi")
buildConfigField(
"String",
"NC_TEST_SERVER_DATA_STRING",
"\"nc://login/user:${ncTestServerUsername}&password:${ncTestServerPassword}&server:${ncTestServerBaseUrl}\""
)
}
}
productFlavors {
// used for f-droid
register("generic") {
applicationId = "com.nextcloud.client"
dimension = "default"
}
register("gplay") {
applicationId = "com.nextcloud.client"
dimension = "default"
}
register("huawei") {
applicationId = "com.nextcloud.client"
dimension = "default"
}
register("versionDev") {
applicationId = "com.nextcloud.android.beta"
dimension = "default"
versionCode = 20220322
versionName = "20220322"
}
register("qa") {
applicationId = "com.nextcloud.android.qa"
dimension = "default"
versionCode = 1
versionName = "1"
}
}
}
applicationVariants.configureEach {
outputs.configureEach {
if (this is ApkVariantOutputImpl) this.outputFileName = "${this.baseName}-${this.versionCode}.apk"
}
}
testOptions {
unitTests.isReturnDefaultValues = true
animationsDisabled = true
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
packaging.resources {
excludes.addAll(listOf("META-INF/LICENSE*", "META-INF/versions/9/OSGI-INF/MANIFEST*"))
pickFirsts.add("MANIFEST.MF") // workaround for duplicated manifest on some dependencies
}
buildFeatures {
buildConfig = true
dataBinding = true
viewBinding = true
aidl = true
compose = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
lint {
abortOnError = false
checkGeneratedSources = true
disable.addAll(
listOf(
"MissingTranslation",
"GradleDependency",
"VectorPath",
"IconMissingDensityFolder",
"IconDensities",
"GoogleAppIndexingWarning",
"MissingDefaultResource",
"InvalidPeriodicWorkRequestInterval",
"StringFormatInvalid",
"MissingQuantity"
)
)
htmlOutput = layout.buildDirectory.file("reports/lint/lint.html").get().asFile
htmlReport = true
}
sourceSets {
// Adds exported schema location as test app assets.
getByName("androidTest") {
assets.srcDirs(files("$projectDir/schemas"))
}
}
}
kapt.useBuildCache = true
ksp.arg("room.schemaLocation", "$projectDir/schemas")
kotlin.compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
spotless.kotlin {
target("**/*.kt")
ktlint()
}
detekt.config.setFrom("detekt.yml")
if (shotTest) configure<ShotExtension> {
showOnlyFailingTestsInReports = ciBuild
// CI environment renders some shadows slightly different from local VMs
// Add a 0.5% tolerance to account for that
tolerance = if (ciBuild) 0.1 else 0.0
}
spotbugs {
ignoreFailures = true // should continue checking
effort = Effort.MAX
reportLevel = Confidence.valueOf("MEDIUM")
}
tasks.register<Checkstyle>("checkstyle") {
configFile = file("${rootProject.projectDir}/checkstyle.xml")
setConfigProperties(
"checkstyleSuppressionsPath" to file("${rootProject.rootDir}/suppressions.xml").absolutePath
)
source("src")
include("**/*.java")
exclude("**/gen/**")
classpath = files()
}
tasks.register<Pmd>("pmd") {
ruleSetFiles = files("${rootProject.rootDir}/ruleset.xml")
ignoreFailures = true // should continue checking
ruleSets = emptyList()
source("src")
include("**/*.java")
exclude("**/gen/**")
reports {
xml.outputLocation.set(layout.buildDirectory.file("reports/pmd/pmd.xml").get().asFile)
html.outputLocation.set(layout.buildDirectory.file("reports/pmd/pmd.html").get().asFile)
}
}
tasks.withType<SpotBugsTask>().configureEach {
val variantNameCap = name.replace("spotbugs", "")
val variantName = variantNameCap.substring(0, 1).lowercase() + variantNameCap.substring(1)
dependsOn("compile${variantNameCap}Sources")
classes = fileTree(
layout.buildDirectory.get().asFile.toString() +
"/intermediates/javac/${variantName}/compile${variantNameCap}JavaWithJavac/classes/"
)
excludeFilter.set(file("${project.rootDir}/scripts/analysis/spotbugs-filter.xml"))
reports.create("xml") {
required.set(true)
}
reports.create("html") {
required.set(true)
outputLocation.set(layout.buildDirectory.file("reports/spotbugs/spotbugs.html"))
setStylesheet("fancy.xsl")
}
}
// Run the compiler as a separate process
tasks.withType<JavaCompile>().configureEach {
options.isFork = true
// Enable Incremental Compilation
options.isIncremental = true
}
tasks.withType<Test>().configureEach {
// Run tests in parallel
maxParallelForks = Runtime.getRuntime().availableProcessors().div(2)
// increased logging for tests
testLogging.events("passed", "skipped", "failed")
}
tasks.named("check").configure {
dependsOn("checkstyle", "spotbugsGplayDebug", "pmd", "lint", "spotlessKotlinCheck", "detekt")
}
dependencies {
// region Nextcloud library
implementation(libs.android.library) {
exclude(group = "org.ogce", module = "xpp3") // unused in Android and brings wrong Junit version
}
// endregion
// region Splash Screen
implementation(libs.splashscreen)
// endregion
// region Jetpack Compose
implementation(platform(libs.compose.bom))
implementation(libs.material.icons.core)
implementation(libs.compose.ui)
implementation(libs.compose.ui.graphics)
implementation(libs.compose.material3)
implementation(libs.compose.ui.tooling.preview)
debugImplementation(libs.compose.ui.tooling)
// endregion
// region Media3
implementation(libs.bundles.media3)
// endregion
// region Room
implementation(libs.room.runtime)
ksp(libs.room.compiler)
androidTestImplementation(libs.room.testing)
// endregion
// region Espresso
androidTestImplementation(libs.bundles.espresso)
// endregion
// region Glide
implementation(libs.glide)
ksp(libs.ksp)
// endregion
// region UI
implementation(libs.bundles.ui)
// endregion
// region Worker
implementation(libs.work.runtime)
implementation(libs.work.runtime.ktx)
// endregion
// region Lifecycle
implementation(libs.lifecycle.viewmodel.ktx)
implementation(libs.lifecycle.service)
implementation(libs.lifecycle.runtime.ktx)
// endregion
// region JUnit
androidTestImplementation(libs.junit)
androidTestImplementation(libs.rules)
androidTestImplementation(libs.runner)
androidTestUtil(libs.orchestrator)
androidTestImplementation(libs.core.ktx)
androidTestImplementation(libs.core.testing)
// endregion
// region other libraries
compileOnly(libs.org.jbundle.util.osgi.wrapped.org.apache.http.client)
implementation(libs.commons.httpclient.commons.httpclient) // remove after entire switch to lib v2
implementation(libs.jackrabbit.webdav) // remove after entire switch to lib v2
implementation(libs.constraintlayout)
implementation(libs.legacy.support.v4)
implementation(libs.material)
implementation(libs.disklrucache)
implementation(libs.juniversalchardet) // need this version for Android <7
compileOnly(libs.annotations)
implementation(libs.commons.io)
implementation(libs.eventbus)
implementation(libs.ez.vcard)
implementation(libs.nnio)
implementation(libs.bcpkix.jdk18on)
implementation(libs.gson)
implementation(libs.sectioned.recyclerview)
implementation(libs.photoview)
implementation(libs.android.gif.drawable)
implementation(libs.qrcodescanner) // "com.github.blikoon:QRCodeScanner:0.1.2"
implementation(libs.flexbox)
implementation(libs.androidsvg)
implementation(libs.annotation)
implementation(libs.emoji.google)
// endregion
// region AppScan, document scanner not available on FDroid (generic) due to OpenCV binaries
"gplayImplementation"(project(":appscan"))
"huaweiImplementation"(project(":appscan"))
"qaImplementation"(project(":appscan"))
// endregion
// region SpotBugs
spotbugsPlugins(libs.findsecbugs.plugin)
spotbugsPlugins(libs.fb.contrib)
// endregion
// region Dagger
implementation(libs.dagger)
implementation(libs.dagger.android)
implementation(libs.dagger.android.support)
ksp(libs.dagger.compiler)
ksp(libs.dagger.processor)
// endregion
// region Crypto
implementation(libs.conscrypt.android)
// endregion
// region Library
implementation(libs.library)
// endregion
// region Shimmer
implementation(libs.loaderviewlibrary)
// endregion
// region Markdown rendering
implementation(libs.bundles.markdown.rendering)
kapt(libs.prism4j.bundler)
// endregion
// region Image cropping / rotation
implementation(libs.android.image.cropper)
// endregion
// region Maps
implementation(libs.osmdroid.android)
// endregion
// region iCal4j
implementation(libs.ical4j) {
listOf("org.apache.commons", "commons-logging").forEach { groupName -> exclude(group = groupName) }
}
// endregion
// region LeakCanary
if (perfAnalysis) debugImplementation(libs.leakcanary)
// endregion
// region Local Unit Test
testImplementation(libs.bundles.unit.test)
// endregion
// region Mocking support
androidTestImplementation(libs.bundles.mocking)
// endregion
// region UIAutomator
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
// androidTestImplementation("androidx.test.uiautomator:uiautomator:2.2.0"
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details
// androidTestImplementation("com.android.support:support-annotations:${supportLibraryVersion}"
androidTestImplementation(libs.screengrab)
// endregion
// region Kotlin
implementation(libs.kotlin.stdlib)
// endregion
// region Stateless
implementation(libs.stateless4j)
// endregion
// region Google Play dependencies, upon each update first test: new registration, receive push
"gplayImplementation"(libs.bundles.gplay)
// endregion
// region UI
implementation(libs.ui)
// endregion
// region Image loading
implementation(libs.coil)
// endregion
// kotlinx.serialization
implementation(libs.kotlinx.serialization.json)
}
@@ -37,7 +37,6 @@ import android.widget.ImageView;
import com.nextcloud.client.account.User;
import com.nextcloud.client.network.ConnectivityService;
import com.nextcloud.utils.BitmapExtensionsKt;
import com.nextcloud.utils.extensions.ThumbnailsCacheManagerExtensionsKt;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.lib.common.OwnCloudAccount;
@@ -1416,7 +1415,7 @@ public final class ThumbnailsCacheManager {
int pxW = p.x;
int pxH = p.y;
if (file.isDown()) {
if (file.isDown() && MimeTypeUtil.isImage(file)) {
Bitmap bitmap = BitmapUtils.decodeSampledBitmapFromFile(file.getStoragePath(), pxW, pxH);
if (bitmap != null) {
@@ -138,30 +138,34 @@ class AvatarGroupLayout @JvmOverloads constructor(
avatar: ImageView,
viewThemeUtils: ViewThemeUtils
) {
// maybe federated share
val split = user.split("@".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
val userId: String? = split[0]
val server = split[1]
val split = user.split("@")
val userId = split.getOrNull(0) ?: user
val server = split.getOrNull(1)
val url = "https://" + server + "/index.php/avatar/" + userId + "/" +
resources.getInteger(R.integer.file_avatar_px)
var placeholder: Drawable?
try {
placeholder = TextDrawable.createAvatarByUserId(userId, avatarRadius)
val url = if (server != null) {
"https://$server/index.php/avatar/$userId/${resources.getInteger(R.integer.file_avatar_px)}"
} else {
// fallback: no federated server, maybe use local avatar
null
}
val placeholder: Drawable = try {
TextDrawable.createAvatarByUserId(userId, avatarRadius)
} catch (e: Exception) {
Log_OC.e(TAG, "Error calculating RGB value for active account icon.", e)
placeholder = viewThemeUtils.platform.colorDrawable(
ResourcesCompat.getDrawable(
resources,
R.drawable.account_circle_white,
null
)!!,
viewThemeUtils.platform.colorDrawable(
ResourcesCompat
.getDrawable(resources, R.drawable.account_circle_white, null)!!,
ContextCompat.getColor(context, R.color.black)
)
}
avatar.tag = null
loadCircularBitmapIntoImageView(context, url, avatar, placeholder)
if (url != null) {
loadCircularBitmapIntoImageView(context, url, avatar, placeholder)
} else {
avatar.setImageDrawable(placeholder)
}
}
override fun avatarGenerated(avatarDrawable: Drawable?, callContext: Any) {
@@ -1311,10 +1311,11 @@ class FileDisplayActivity :
val ocFileListFragment = leftFragment
syncAndUpdateFolder(ignoreETag = true, ignoreFocus = true)
var startFile: OCFile? = null
if (intent != null) {
startFile = getFileFromIntent(intent)
file = startFile
// Try to get the OCFile from the intent, if one was provided when launching this activity.
// 'file' comes from the FileActivity base class and represents the currently opened file or folder.
// We update it only when a valid file is found in the intent.
val startFile = intent?.let { getFileFromIntent(it) }?.also {
file = it
}
// refresh list of files
@@ -21,7 +21,9 @@ import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.activity.OnBackPressedCallback
import androidx.lifecycle.lifecycleScope
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import com.nextcloud.client.account.User
import com.nextcloud.client.di.Injectable
import com.nextcloud.utils.fileNameValidator.FileNameValidator
import com.owncloud.android.R
@@ -48,6 +50,8 @@ import com.owncloud.android.utils.DisplayUtils
import com.owncloud.android.utils.ErrorMessageAdapter
import com.owncloud.android.utils.FileSortOrder
import com.owncloud.android.utils.PathUtils
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import java.io.File
import javax.inject.Inject
@@ -60,7 +64,6 @@ open class FolderPickerActivity :
OnSortingOrderListener {
private var mSyncBroadcastReceiver: SyncBroadcastReceiver? = null
private var mSyncInProgress = false
private var mSearchOnlyFolders = false
var isDoNotEnterEncryptedFolder = false
private set
@@ -105,7 +108,6 @@ open class FolderPickerActivity :
}
updateActionBarTitleAndHomeButtonByString(captionText)
setBackgroundText()
handleBackPress()
}
@@ -211,25 +213,6 @@ open class FolderPickerActivity :
transaction.commit()
}
/**
* Show a text message on screen view for notifying user if content is loading or folder is empty
*/
private fun setBackgroundText() {
val listFragment = listOfFilesFragment
if (listFragment == null) {
Log_OC.e(TAG, "OCFileListFragment is null")
}
listFragment?.let {
if (mSyncInProgress) {
it.setEmptyListMessage(EmptyListState.LOADING)
} else {
it.setEmptyListMessage(EmptyListState.ADD_FOLDER)
}
}
}
protected val listOfFilesFragment: OCFileListFragment?
get() {
val listOfFiles = supportFragmentManager.findFragmentByTag(TAG_LIST_OF_FOLDERS)
@@ -259,21 +242,33 @@ open class FolderPickerActivity :
}
private fun startSyncFolderOperation(folder: OCFile?, ignoreETag: Boolean) {
val currentSyncTime = System.currentTimeMillis()
mSyncInProgress = true
RefreshFolderOperation(
folder,
currentSyncTime,
false,
ignoreETag,
storageManager,
user.orElseThrow { RuntimeException("User not set") },
applicationContext
).also {
it.execute(account, this, null, null)
val optionalUser = user ?: return
if (optionalUser.isEmpty) {
return
}
val user: User = optionalUser.get()
listOfFilesFragment?.setEmptyListMessage(EmptyListState.LOADING)
lifecycleScope.launch(Dispatchers.IO) {
val currentSyncTime = System.currentTimeMillis()
val operation = RefreshFolderOperation(
folder,
currentSyncTime,
false,
ignoreETag,
storageManager,
user,
applicationContext
)
operation.execute(
account,
this@FolderPickerActivity,
{ _, _ ->
listOfFilesFragment?.setEmptyListMessage(EmptyListState.LOCAL_FILE_LIST_EMPTY_FILE)
},
null
)
}
setBackgroundText()
}
override fun onResume() {
@@ -554,9 +549,7 @@ open class FolderPickerActivity :
return
}
if (FileSyncAdapter.EVENT_FULL_SYNC_START == event) {
mSyncInProgress = true
} else {
if (FileSyncAdapter.EVENT_FULL_SYNC_START != event) {
var (currentFile, currentDir) = getCurrentFileAndDirectory()
if (currentDir == null) {
@@ -572,22 +565,17 @@ open class FolderPickerActivity :
file = currentFile
}
mSyncInProgress = (
FileSyncAdapter.EVENT_FULL_SYNC_END != event &&
RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED != event
)
checkCredentials(syncResult, event)
}
DataHolderUtil.getInstance().delete(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT))
Log_OC.d(TAG, "Setting progress visibility to $mSyncInProgress")
setBackgroundText()
} catch (e: RuntimeException) {
Log_OC.e(TAG, "Error on broadcast receiver", e)
// avoid app crashes after changing the serial id of RemoteOperationResult
// in owncloud library with broadcast notifications pending to process
DataHolderUtil.getInstance().delete(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT))
} finally {
listOfFilesFragment?.setEmptyListMessage(EmptyListState.LOCAL_FILE_LIST_EMPTY_FILE)
}
}
@@ -14,8 +14,10 @@ import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ComponentCallbacks;
import android.content.ContentValues;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
@@ -198,6 +200,16 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
// initialise thumbnails cache on background thread
ThumbnailsCacheManager.initDiskCacheAsync();
isRTL = DisplayUtils.isRTL();
activity.registerComponentCallbacks(new ComponentCallbacks() {
@Override
public void onConfigurationChanged(@NonNull Configuration newConfig) {
notifyDataSetChanged(); // force update of orientation-dependent layout (e.g. share button visibility)
}
@Override
public void onLowMemory() {
}
});
}
public boolean isMultiSelect() {
@@ -8,6 +8,7 @@
package com.owncloud.android.ui.adapter
import android.content.Context
import android.content.res.Configuration
import android.graphics.Color
import android.os.AsyncTask
import android.view.View
@@ -261,6 +262,7 @@ class OCFileListDelegate(
// shares
val shouldHideShare = (
hideItemOptions ||
context.resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT ||
!file.isFolder &&
file.isEncrypted ||
file.isEncrypted &&
@@ -704,6 +704,14 @@ open class ExtendedListFragment :
true
)
}
EmptyListState.ERROR -> {
setMessageForEmptyList(
R.string.file_list_error_headline,
R.string.file_list_error_description,
R.drawable.ic_no_internet,
false
)
}
else -> {
setMessageForEmptyList(
R.string.file_list_empty_headline,
@@ -295,10 +295,8 @@ public class GalleryFragment extends OCFileListFragment implements GalleryFragme
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
if (item.getItemId() == R.id.action_three_dot_icon && !this.isPhotoSearchQueryRunning()
&& galleryFragmentBottomSheetDialog != null) {
if (item.getItemId() == R.id.action_three_dot_icon && galleryFragmentBottomSheetDialog != null) {
showBottomSheet();
return true;
}
@@ -225,7 +225,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
protected SearchType currentSearchType;
protected boolean searchFragment;
protected SearchEvent searchEvent;
protected AsyncTask<Void, Void, Boolean> remoteOperationAsyncTask;
private OCFileListSearchTask searchTask;
protected String mLimitToMimeType;
private FloatingActionButton mFabMain;
public static boolean isMultipleFileSelectedForCopyOrMove = false;
@@ -350,8 +350,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
setOnRefreshListener(null);
mContainerActivity = null;
if (remoteOperationAsyncTask != null) {
remoteOperationAsyncTask.cancel(true);
if (searchTask != null) {
searchTask.cancel();
}
super.onDetach();
}
@@ -1907,10 +1907,10 @@ public class OCFileListFragment extends ExtendedListFragment implements
return;
}
// avoid calling api multiple times if async task is already executing
if (remoteOperationAsyncTask != null && remoteOperationAsyncTask.getStatus() != AsyncTask.Status.FINISHED) {
// avoid calling api multiple times if task is already executing
if (searchTask != null && !searchTask.isFinished()) {
if (searchEvent != null) {
Log_OC.d(TAG, "OCFileListSearchAsyncTask already running skipping new api call for search event: " + searchEvent.getSearchType());
Log_OC.d(TAG, "OCFileListSearchTask already running skipping new api call for search event: " + searchEvent.getSearchType());
}
return;
@@ -1941,11 +1941,10 @@ public class OCFileListFragment extends ExtendedListFragment implements
final User currentUser = accountManager.getUser();
final RemoteOperation remoteOperation = getSearchRemoteOperation(currentUser, event);
final var remoteOperation = getSearchRemoteOperation(currentUser, event);
remoteOperationAsyncTask = new OCFileListSearchAsyncTask(mContainerActivity, this, remoteOperation, currentUser, event);
remoteOperationAsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
searchTask = new OCFileListSearchTask(mContainerActivity, this, remoteOperation, currentUser, event, SharedListFragment.TASK_TIMEOUT);
searchTask.execute();
}
@@ -1,83 +0,0 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.owncloud.android.ui.fragment
import android.annotation.SuppressLint
import android.os.AsyncTask
import android.os.Handler
import android.os.Looper
import com.nextcloud.client.account.User
import com.owncloud.android.datamodel.FileDataStorageManager
import com.owncloud.android.lib.common.operations.RemoteOperation
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import com.owncloud.android.ui.events.SearchEvent
import java.lang.ref.WeakReference
class OCFileListSearchAsyncTask(
containerActivity: FileFragment.ContainerActivity,
fragment: OCFileListFragment,
private val remoteOperation: RemoteOperation<List<Any>>,
private val currentUser: User,
private val event: SearchEvent
) : AsyncTask<Void, Void, Boolean>() {
private val activityReference: WeakReference<FileFragment.ContainerActivity> = WeakReference(containerActivity)
private val fragmentReference: WeakReference<OCFileListFragment> = WeakReference(fragment)
private val fileDataStorageManager: FileDataStorageManager?
get() = activityReference.get()?.storageManager
private fun RemoteOperationResult<out Any>.hasSuccessfulResult() = this.isSuccess && this.resultData != null
override fun onPreExecute() {
fragmentReference.get()?.let { fragment ->
Handler(Looper.getMainLooper()).post {
fragment.setEmptyListMessage(EmptyListState.LOADING)
}
}
}
override fun doInBackground(vararg voids: Void): Boolean {
val fragment = fragmentReference.get()
if (fragment?.context == null || isCancelled) {
return java.lang.Boolean.FALSE
}
fragment.setTitle()
lateinit var remoteOperationResult: RemoteOperationResult<List<Any>>
try {
remoteOperationResult = remoteOperation.execute(currentUser, fragment.context)
} catch (_: UnsupportedOperationException) {
remoteOperationResult = remoteOperation.executeNextcloudClient(currentUser, fragment.requireContext())
}
if (remoteOperationResult.hasSuccessfulResult() && !isCancelled && fragment.searchFragment) {
fragment.searchEvent = event
if (remoteOperationResult.resultData.isNullOrEmpty()) {
fragment.setEmptyView(event)
} else {
fragment.adapter.setData(
remoteOperationResult.resultData,
fragment.currentSearchType,
fileDataStorageManager,
fragment.mFile,
true
)
}
}
return remoteOperationResult.isSuccess
}
@SuppressLint("NotifyDataSetChanged")
override fun onPostExecute(bool: Boolean) {
fragmentReference.get()?.let { fragment ->
if (!isCancelled) {
fragment.adapter.notifyDataSetChanged()
}
}
}
}
@@ -0,0 +1,95 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
* SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.owncloud.android.ui.fragment
import android.annotation.SuppressLint
import androidx.lifecycle.lifecycleScope
import com.nextcloud.client.account.User
import com.owncloud.android.datamodel.FileDataStorageManager
import com.owncloud.android.lib.common.operations.RemoteOperation
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import com.owncloud.android.ui.events.SearchEvent
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeoutOrNull
import java.lang.ref.WeakReference
@Suppress("LongParameterList")
@SuppressLint("NotifyDataSetChanged")
class OCFileListSearchTask(
containerActivity: FileFragment.ContainerActivity,
fragment: OCFileListFragment,
private val remoteOperation: RemoteOperation<List<Any>>,
private val currentUser: User,
private val event: SearchEvent,
private val taskTimeout: Long
) {
private val activityReference: WeakReference<FileFragment.ContainerActivity> = WeakReference(containerActivity)
private val fragmentReference: WeakReference<OCFileListFragment> = WeakReference(fragment)
private val fileDataStorageManager: FileDataStorageManager?
get() = activityReference.get()?.storageManager
private fun RemoteOperationResult<out Any>.hasSuccessfulResult() = this.isSuccess && this.resultData != null
private var job: Job? = null
@Suppress("TooGenericExceptionCaught", "DEPRECATION")
fun execute() {
fragmentReference.get()?.let { fragment ->
job = fragment.lifecycleScope.launch(Dispatchers.IO) {
val result = withTimeoutOrNull(taskTimeout) {
if (!isActive) {
false
} else {
fragment.setTitle()
lateinit var remoteOperationResult: RemoteOperationResult<List<Any>>
try {
remoteOperationResult = remoteOperation.execute(currentUser, fragment.requireContext())
} catch (_: Exception) {
remoteOperationResult =
remoteOperation.executeNextcloudClient(currentUser, fragment.requireContext())
}
if (remoteOperationResult.hasSuccessfulResult() && isActive && fragment.searchFragment) {
fragment.searchEvent = event
if (remoteOperationResult.resultData.isNullOrEmpty()) {
fragment.setEmptyView(event)
} else {
fragment.adapter.setData(
remoteOperationResult.resultData,
fragment.currentSearchType,
fileDataStorageManager,
fragment.mFile,
true
)
}
}
remoteOperationResult.isSuccess
}
} ?: false
withContext(Dispatchers.Main) {
if (result && isActive) {
fragment.adapter.notifyDataSetChanged()
} else {
fragment.setEmptyListMessage(EmptyListState.ERROR)
}
}
}
}
}
fun cancel() = job?.cancel(null)
fun isFinished(): Boolean = job?.isCompleted == true
}
@@ -32,5 +32,6 @@ enum class EmptyListState : Parcelable {
ADD_FOLDER,
ONLY_ON_DEVICE,
LOCAL_FILE_LIST_EMPTY_FILE,
LOCAL_FILE_LIST_EMPTY_FOLDER
LOCAL_FILE_LIST_EMPTY_FOLDER,
ERROR
}
@@ -14,6 +14,7 @@ import androidx.lifecycle.lifecycleScope
import com.nextcloud.client.account.User
import com.nextcloud.client.di.Injectable
import com.nextcloud.client.logger.Logger
import com.nextcloud.common.SessionTimeOut
import com.owncloud.android.R
import com.owncloud.android.datamodel.OCFile
import com.owncloud.android.lib.common.operations.RemoteOperation
@@ -68,7 +69,7 @@ class SharedListFragment :
}
override fun getSearchRemoteOperation(currentUser: User?, event: SearchEvent?): RemoteOperation<*> =
GetSharesRemoteOperation()
GetSharesRemoteOperation(false, SessionTimeOut(TASK_TIMEOUT, TASK_TIMEOUT))
@Suppress("DEPRECATION")
private suspend fun fetchFileData(partialFile: OCFile): OCFile? = withContext(Dispatchers.IO) {
@@ -185,5 +186,6 @@ class SharedListFragment :
companion object {
private val SHARED_TAG = SharedListFragment::class.java.simpleName
const val TASK_TIMEOUT = 120_000
}
}
@@ -84,10 +84,13 @@ public final class FilesSyncHelper {
Log_OC.d(TAG, "walkFileTreeRandomly, children exists");
Collections.shuffle(Arrays.asList(children));
File[] var5 = children;
int var6 = children.length;
for (File value : children) {
for(int var7 = 0; var7 < var6; ++var7) {
Log_OC.d(TAG, "walkFileTreeRandomly -- recursive call");
walkFileTreeRandomly(FileBasedPathImpl.get(value), visitor);
File child = var5[var7];
walkFileTreeRandomly(FileBasedPathImpl.get(child), visitor);
}
visitor.postVisitDirectory(start, null);
@@ -461,6 +461,7 @@ public final class MimeTypeUtil {
MIMETYPE_TO_ICON_MAPPING.put("application/rss+xml", R.drawable.file_code);
MIMETYPE_TO_ICON_MAPPING.put("application/rtf", R.drawable.file);
MIMETYPE_TO_ICON_MAPPING.put("application/vnd.android.package-archive", R.drawable.file_zip);
MIMETYPE_TO_ICON_MAPPING.put("application/vnd.excalidraw+json", R.drawable.file_whiteboard);
MIMETYPE_TO_ICON_MAPPING.put("application/vnd.garmin.tcx+xml", R.drawable.file_location);
MIMETYPE_TO_ICON_MAPPING.put("application/vnd.google-earth.kml+xml", R.drawable.file_location);
MIMETYPE_TO_ICON_MAPPING.put("application/vnd.google-earth.kmz", R.drawable.file_location);
@@ -0,0 +1,15 @@
<!--
~ Nextcloud Talk - Android Client
~
~ SPDX-FileCopyrightText: 2019 Simran-B <https://pictogrammers.com/contributor/Simran-B/>
~ SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#969696"
android:pathData="M12.04,2.5L9.53,5H14.53L12.04,2.5M4,7V20H20V7H4M12,0L17,5V5H20A2,2 0,0 1,22 7V20A2,2 0,0 1,20 22H4A2,2 0,0 1,2 20V7A2,2 0,0 1,4 5H7V5L12,0M7,18V14H12V18H7M14,17V10H18V17H14M6,12V9H11V12H6Z" />
</vector>
@@ -0,0 +1,17 @@
<!--
~ SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
~ SPDX-FileCopyrightText: 2018-2025 Google LLC
~ SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="#626364"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="@android:color/white"
android:pathData="M73,424L2,353Q99,259 222.5,209.5Q346,160 480,160Q614,160 737.5,209.5Q861,259 958,353L887,424Q805,345 700,302.5Q595,260 480,260Q365,260 260,302.5Q155,345 73,424ZM480,800Q447,800 423.5,776.5Q400,753 400,720Q400,687 423.5,663.5Q447,640 480,640Q513,640 536.5,663.5Q560,687 560,720Q560,753 536.5,776.5Q513,800 480,800ZM298,651L228,580Q279,532 344,506Q409,480 480,480Q521,480 560.5,488.5Q600,497 636,514Q619,531 603,552.5Q587,574 574,597Q551,589 527.5,584.5Q504,580 480,580Q429,580 382.5,598Q336,616 298,651ZM186,538L116,467Q190,396 284,358Q378,320 481,320Q584,320 677.5,357.5Q771,395 845,466L830,482Q810,479 793.5,474.5Q777,470 760,470Q746,470 731.5,473.5Q717,477 701,482Q651,452 595,436Q539,420 480,420Q397,420 321.5,450.5Q246,481 186,538ZM760,800Q743,800 731.5,788.5Q720,777 720,760Q720,743 731.5,731.5Q743,720 760,720Q777,720 788.5,731.5Q800,743 800,760Q800,777 788.5,788.5Q777,800 760,800ZM720,680L720,540L800,540L800,680L720,680Z" />
</vector>
+2
View File
@@ -43,6 +43,7 @@
android:paddingTop="@dimen/standard_padding"
android:paddingBottom="@dimen/standard_half_padding"
android:text="@string/file_list_loading"
android:textColor="@color/text_color"
android:textSize="26sp" />
<TextView
@@ -54,6 +55,7 @@
android:gravity="center"
android:paddingTop="@dimen/standard_half_padding"
android:paddingBottom="@dimen/standard_half_padding"
android:textColor="@color/text_color"
android:text="@string/file_list_empty"
android:visibility="gone"
tools:visibility="visible" />
+3 -3
View File
@@ -94,7 +94,7 @@
<string name="auth_wrong_connection_title">Non foi posíbel estabelecer a conexión</string>
<string name="authenticator_activity_cancel_login">Cancelar o acceso</string>
<string name="authenticator_activity_empty_base_url">Introduza un enderezo de servidor válido.</string>
<string name="authenticator_activity_empty_response_message">Non foi posíbel obter os datos do acceso. Ténteo de novo.</string>
<string name="authenticator_activity_empty_response_message">Non é posíbel obter os datos do acceso. Ténteo de novo.</string>
<string name="authenticator_activity_login_error">Houbo un problema ao procesar a súa solicitude de acceso. Ténteo de novo máis tarde.</string>
<string name="authenticator_activity_no_web_browser_found">Non hai ningún navegador dispoñíbel para abrir esta ligazón.</string>
<string name="authenticator_activity_please_complete_login_process">Complete o proceso de acceso no seu navegador</string>
@@ -455,7 +455,7 @@
<string name="file_name_validator_error_reserved_names">%s é un nome prohibido.</string>
<string name="file_name_validator_rename_before_move_or_copy">%s. Cambie o nome do ficheiro antes de mover ou copiar</string>
<string name="file_not_found">Non se atopou o ficheiro</string>
<string name="file_not_found_cannot_share">Non se atopou o ficheiro. Non foi posíbel crear unha compartición.</string>
<string name="file_not_found_cannot_share">Non se atopou o ficheiro. Non é posíbel crear unha compartición.</string>
<string name="file_not_synced">Non foi posíbel sincronizar o ficheiro. Amosase a última versión dispoñíbel.</string>
<string name="file_rename">Cambiar o nome</string>
<string name="file_upload_limit_message">Pode enviar ata %d ficheiros á vez.</string>
@@ -912,7 +912,7 @@
<string name="ssl_validator_label_validity_to">Ata:</string>
<string name="ssl_validator_no_info_about_error">- Non hai información sobre este erro</string>
<string name="ssl_validator_not_saved">Non foi posíbel gardar o certificado</string>
<string name="ssl_validator_null_cert">Non é posíbel amosar o certificado.</string>
<string name="ssl_validator_null_cert">Non foi posíbel amosar o certificado.</string>
<string name="ssl_validator_question">Aínda así, quere fiar neste certificado igualmente?</string>
<string name="ssl_validator_reason_cert_expired">- O certificado do servidor caducou</string>
<string name="ssl_validator_reason_cert_not_trusted">- O certificado do servidor non é de confianza</string>
@@ -620,6 +620,7 @@
<string name="notification_channel_background_operations_description">バックグラウンド操作の結果に対する通知を表示する</string>
<string name="notification_channel_background_operations_name">バックグランド処理</string>
<string name="notification_channel_content_observer_description">ローカルファイルの変更が検出されました。</string>
<string name="notification_channel_content_observer_name_short">コンテンツオブザーバー</string>
<string name="notification_channel_download_description">ダウンロードの進行状況を表示</string>
<string name="notification_channel_download_name_short">ダウンロード</string>
<string name="notification_channel_file_sync_description">ファイルの同期の進行状況と結果を表示します</string>
@@ -648,6 +649,7 @@
<string name="offline_operations_worker_notification_create_folder_conflict_text">%sを作成することができません。サーバーにはすでに同じ名前のフォルダーが存在します。</string>
<string name="offline_operations_worker_notification_error_text">オフライン操作を完了できません。%s</string>
<string name="offline_operations_worker_notification_manager_ticker">オフライン操作</string>
<string name="offline_operations_worker_notification_remove_conflict_text">%s の削除をキャンセルしました。ファイルはサーバー上で変更されています。</string>
<string name="offline_operations_worker_notification_rename_conflict_text">名前を%sへ変更することができません。サーバーにはすでに同じ名前のファイルが存在します。</string>
<string name="offline_operations_worker_notification_start_text">オフライン操作を開始しています</string>
<string name="oneHour">1時間</string>
+1
View File
@@ -369,6 +369,7 @@
<string name="invalid_url">Неправилна URL</string>
<string name="invisible">Невидливо</string>
<string name="link">Линк</string>
<string name="link_share_editing">Уредување</string>
<string name="list_layout">Listed layout</string>
<string name="load_more_results">Вчитај повеќе резултати</string>
<string name="local_file_list_empty">Нема датотеки во оваа папка.</string>
+13
View File
@@ -98,10 +98,13 @@
<string name="authenticator_activity_login_error">Wystąpił problem podczas przetwarzania żądania logowania. Spróbuj ponownie później.</string>
<string name="authenticator_activity_no_web_browser_found">Brak dostępnej przeglądarki do otwarcia tego linku.</string>
<string name="authenticator_activity_please_complete_login_process">Dokończ proces logowania w przeglądarce</string>
<string name="auto_upload_battery_saver_mode_warning">Automatyczna aktualizacja jest wstrzymana, ponieważ tryb oszczędzania baterii jest włączony.</string>
<string name="auto_upload_file_behaviour_kept_in_folder">zachowany w oryginalnym katalogu, jak jest tylko do odczytu</string>
<string name="auto_upload_low_battery_warning_info">Niski poziom baterii, aktualizacja może potrwać dłużej.</string>
<string name="auto_upload_on_wifi">Wysyłaj tylko przez Wi-Fi</string>
<string name="auto_upload_path">/AutoUpload</string>
<string name="auto_upload_sub_folder_warning">Ten katalog jest już uwzględniony w synchronizacji katalogu nadrzędnego, co może powodować duplikowanie wysyłanych plików</string>
<string name="auto_upload_wifi_only_warning_info">Oczekiwanie na Wi-Fi, aby zacząć aktualizowanie</string>
<string name="auto_upload_worker_start_text">Przesyłanie plików z %s do %s</string>
<string name="autoupload_configure">Konfiguruj</string>
<string name="autoupload_create_new_custom_folder">Utwórz nową niestandardową konfigurację katalogu</string>
@@ -206,6 +209,7 @@
<string name="contacts_preferences_import_scheduled_fail">Nie udało się rozpocząć importu. Spróbuj ponownie</string>
<string name="contacts_preferences_no_file_found">Nie znaleziono żadnych plików</string>
<string name="contacts_preferences_something_strange_happened">Nie odnaleziono Twojej ostatniej kopii zapasowej!</string>
<string name="content_observer_work_notification_title">Sprawdzanie zmian treści</string>
<string name="copied_to_clipboard">Skopiowano do schowka</string>
<string name="copy_file_error">Wystąpił błąd podczas próby kopiowania tego pliku lub katalogu</string>
<string name="copy_file_invalid_into_descendent">Nie można skopiować katalogu do jednego z jego podkatalogów</string>
@@ -454,6 +458,7 @@
<string name="file_not_found_cannot_share">Nie znaleziono pliku. Nie można utworzyć udostępnienia.</string>
<string name="file_not_synced">Nie można zsynchronizować pliku. Pokazana jest najnowsza dostępna wersja.</string>
<string name="file_rename">Zmień nazwę</string>
<string name="file_upload_limit_message">Możesz wysłać do %d plików na raz.\"</string>
<string name="file_upload_worker_error_notification_title">Przesyłanie nie powiodło się. Brak połączenia internetowego</string>
<string name="file_upload_worker_same_file_already_exists">%s już istnieje, nie znaleziono konfliktów</string>
<string name="file_version_restored_error">Wystąpił błąd podczas przywracania wersji pliku!</string>
@@ -475,6 +480,11 @@
<string name="folder_already_exists">Katalog już istnieje</string>
<string name="folder_best_viewed_in">Ten katalog najlepiej oglądać w formacie %1$s.</string>
<string name="folder_confirm_create">Utwórz</string>
<string name="folder_download_counter">%1$d z %2$d &#183; %3$s</string>
<string name="folder_download_error_notification_title">Wystąpił błąd podczas synchronizacji katalogu %s</string>
<string name="folder_download_insufficient_disk_space_notification_title">Brak miejsca na dysku, synchronizacja przewana</string>
<string name="folder_download_success_notification_title">%s pomyślnie zsynchronizowany</string>
<string name="folder_download_worker_ticker_id">Synchronizacja…</string>
<string name="folder_list_empty_headline">Brak katalogów</string>
<string name="folder_name_empty">Nazwa katalogu nie może być pusta</string>
<string name="folder_picker_choose_button_text">Wybierz</string>
@@ -610,6 +620,8 @@
<string name="notification_action_failed">Wykonanie akcji nie powiodło się.</string>
<string name="notification_channel_background_operations_description">Pokaż powiadomienia o interakcji z wynikami operacji wykonywanych w tle</string>
<string name="notification_channel_background_operations_name">Operacje w tle</string>
<string name="notification_channel_content_observer_description">Wykryj zmiany lokalne</string>
<string name="notification_channel_content_observer_name_short">Monitor zawartości</string>
<string name="notification_channel_download_description">Pokazuje postęp pobierania</string>
<string name="notification_channel_download_name_short">Pobrane</string>
<string name="notification_channel_file_sync_description">Pokazuje postęp synchronizacji plików i jej wynik</string>
@@ -990,6 +1002,7 @@
<string name="unified_search_fragment_calendar_event_not_found">Nie znaleziono zdarzenia, zawsze możesz zsynchronizować, aby zaktualizować. Przekierowanie do strony internetowej…</string>
<string name="unified_search_fragment_contact_not_found">Nie znaleziono kontaktu, zawsze możesz zsynchronizować, aby zaktualizować. Przekierowanie do strony internetowej…</string>
<string name="unified_search_fragment_permission_needed">Aby otworzyć wyniki wyszukiwania, wymagane są uprawnienia, w przeciwnym razie nastąpi przekierowanie do strony internetowej…</string>
<string name="unified_search_fragment_search_in_this_folder">W tym katalogu</string>
<string name="unknown">Nieznana</string>
<string name="unlock_file">Odblokuj plik</string>
<string name="unread_comments">Nieprzeczytane komentarze</string>
+1
View File
@@ -66,6 +66,7 @@
<string name="auth_unknown_host_title">Gostitelja ni mogoče najti</string>
<string name="auth_unsupported_multiaccount">%1$s ne omogoča podpore več računom</string>
<string name="auth_wrong_connection_title">Ni mogoče vzpostaviti povezave</string>
<string name="authenticator_activity_cancel_login">Prekliči prijavo</string>
<string name="auto_upload_file_behaviour_kept_in_folder">ohranjeno v izvorni mapi, ker je ta le za branje</string>
<string name="auto_upload_on_wifi">Pošiljaj le na nemerjeni povezavi Wi-Fi</string>
<string name="auto_upload_path">/SamodejnoPošiljanje</string>
+3 -3
View File
@@ -10,8 +10,8 @@
<string name="bottom_navigation_menu_favorites_label">Favorites</string>
<string name="bottom_navigation_menu_assistant_label">Assistant</string>
<string name="bottom_navigation_menu_media_label">Media</string>
<string name="file_list_error_headline">Poor connection</string>
<string name="file_list_error_description">Check your internet connection or try again later</string>
<string name="about_android">%1$s Android app</string>
<string name="about_version">version %1$s</string>
<string name="about_version_with_build">version %1$s, build #%2$s</string>
@@ -172,7 +172,7 @@
<string name="uploader_error_message_source_file_not_found">File selected for upload not found. Please check whether the file exists.</string>
<string name="uploader_error_message_source_file_not_copied">Could not copy file to a temporary folder. Try to resend it.</string>
<string name="uploader_upload_files_behaviour">Upload option:</string>
<string name="file_upload_limit_message">You can upload up to %d files at once."</string>
<string name="file_upload_limit_message">You can upload up to %d files at once.</string>
<string name="file_upload_worker_same_file_already_exists">%s already exists, no conflict detected</string>
<string name="uploader_upload_files_behaviour_move_to_nextcloud_folder">Move file to %1$s folder</string>
<string name="uploader_upload_files_behaviour_only_upload">Keep file in source folder</string>
-51
View File
@@ -1,51 +0,0 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper.ozturk@nextcloud.com>
* SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
*/
buildscript {
dependencies {
classpath "com.android.tools.build:gradle:$androidPluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: "com.android.library"
apply plugin: "kotlin-android"
android {
namespace = "com.nextcloud.appscan"
defaultConfig {
minSdk = 27
targetSdk = 36
compileSdk = 36
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled = false
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}
dependencies {
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "com.github.Hazzatur:Document-Scanning-Android-SDK:$documentScannerVersion"
implementation "com.github.nextcloud.android-common:ui:$androidCommonLibraryVersion"
}
+47
View File
@@ -0,0 +1,47 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Jimly Asshiddiqy <jimly.asshiddiqy@accenture.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.jetbrains.kotlin.android)
}
android {
namespace = "com.nextcloud.appscan"
defaultConfig {
minSdk = 27
compileSdk = 36
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
lint.targetSdk = 36
testOptions.targetSdk = 36
}
kotlin.compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
}
dependencies {
implementation(libs.appcompat)
implementation(libs.document.scanning.android.sdk)
implementation(libs.ui)
}
-71
View File
@@ -1,71 +0,0 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper.ozturk@nextcloud.com>
* SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
*/
buildscript {
ext {
androidLibraryVersion ="2f798d3f4b0b18458af0c917eb39ad8ca45e5b55"
androidCommonLibraryVersion = "0.29.0"
androidPluginVersion = '8.13.0'
androidxMediaVersion = "1.5.1"
androidxTestVersion = "1.7.0"
appCompatVersion = "1.7.1"
checkerVersion = "3.21.2"
daggerVersion = "2.57.2"
documentScannerVersion = "1.2.3"
espressoVersion = "3.6.1"
jacoco_version = "0.8.14"
kotlin_version = "2.2.21"
markwonVersion = "4.6.2"
mockitoVersion = "4.11.0"
mockitoKotlinVersion = "4.1.0"
mockkVersion = "1.14.6"
prismVersion = "2.0.0"
roomVersion = "2.8.0"
workRuntime = "2.10.3"
ciBuild = System.getenv("CI") == "true"
shotTest = System.getenv("SHOT_TEST") == "true"
}
}
subprojects {
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
repositories {
google()
mavenCentral()
maven { url = "https://jitpack.io" }
}
}
tasks.register("clean", Delete) {
delete rootProject.layout.buildDirectory
}
tasks.register("installGitHooks", Copy) {
def sourceFolder = "${rootProject.projectDir}/scripts/hooks"
def destFolder = "${rootProject.projectDir}/.git/hooks"
description = "Install git hooks"
from(sourceFolder) {
include "*"
}
into destFolder
eachFile { file ->
println "${sourceFolder}/${file.relativeSourcePath} -> ${destFolder}/${file.path}"
}
}
+37
View File
@@ -0,0 +1,37 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Jimly Asshiddiqy <jimly.asshiddiqy@accenture.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.kapt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.spotbugs) apply false
alias(libs.plugins.detekt) apply false
// needed to make renovate run without shot, as shot requires Android SDK
// https://github.com/pedrovgs/Shot/issues/300
alias(libs.plugins.shot) apply false
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
tasks.register<Copy>("installGitHooks") {
description = "Install git hooks"
val sourceFolder = "${rootProject.projectDir}/scripts/hooks"
val destFolder = "${rootProject.projectDir}/.git/hooks"
from(sourceFolder) { include("*") }
into(destFolder)
eachFile { println("${sourceFolder}/${file.path} -> ${destFolder}/${file.path}") }
}
+1 -1
View File
@@ -210,7 +210,7 @@ end
desc "compute version"
private_lane :androidVersion do
File.open("../app/build.gradle","r") do |f|
File.open("../app/build.gradle.kts","r") do |f|
text = f.read
# everything between Document and Authors
+74 -12
View File
@@ -5,23 +5,30 @@
androidCommonLibraryVersion = "0.29.0"
androidGifDrawableVersion = "1.2.29"
androidImageCropperVersion = "4.6.0"
androidLibraryVersion = "8c77f600ac942f6eb4e3c4447143fc949d34acc6"
androidPluginVersion = '8.13.0'
androidsvgVersion = "1.4"
androidxMediaVersion = "1.5.1"
androidxTestVersion = "1.7.0"
annotationsVersion = "3.0.1u2"
annotationVersion = "1.9.1"
annotationsVersion = "3.0.1u2"
appCompatVersion = "1.7.1"
bcpkixJdk18onVersion = "1.81"
cardviewVersion = "1.0.0"
checker = "3.21.2"
coilVersion = "2.7.0"
commonsHttpclient = "3.1"
commonsIoVersion = "2.20.0"
composeBom = "2025.10.01"
conscryptAndroidVersion = "2.5.3"
constraintlayoutVersion = "2.2.1"
coreTestingVersion = "2.2.0"
coreVersion = "0.15.0"
daggerVersion = "2.57.2"
detektGradlePlugin = "1.23.8"
dexopenerVersion = "2.0.5"
disklrucacheVersion = "2.0.2"
documentScannerVersion = "1.2.3"
emojiGoogleVersion = "0.21.0"
espressoVersion = "3.7.0"
eventbusVersion = "3.3.1"
@@ -36,10 +43,15 @@ glide = "5.0.5"
gsonVersion = "2.13.2"
ical4jVersion = "3.2.19"
jackrabbitWebdavVersion = "2.13.5"
jacoco = "0.8.14"
jsonVersion = "20250517"
junit = "4.13.2"
junitVersion = "1.3.0"
juniversalchardetVersion = "2.5.0"
kotlin = "2.2.21"
kotlinxSerializationJson = "1.9.0"
ksp = "2.3.0"
leakcanary = "2.14"
legacySupportV4Version = "1.0.0"
libraryVersion = "1.3.0"
lifecycleViewmodelKtxVersion = "2.9.4"
@@ -52,11 +64,12 @@ mockitoKotlinVersion = "4.1.0"
mockitoVersion = "4.11.0"
mockkVersion = "1.14.6"
nnioVersion = "0.3.1"
objenesis = "3.4"
orchestratorVersion = "1.6.1"
orgJbundleUtilOsgiWrappedOrgApacheHttpClientVersion = "4.1.2"
osmdroidAndroidVersion = "6.1.20"
photoviewVersion = "2.3.0"
playServicesBaseVersion = "18.8.0"
playServicesBaseVersion = "18.9.0"
prismVersion = "2.0.0"
qrcodescannerVersion = "0.1.2.4"
reviewKtxVersion = "2.0.2"
@@ -64,23 +77,17 @@ roomVersion = "2.8.0"
screengrabVersion = "2.1.1"
sectionedRecyclerviewVersion = "0.6.1"
shotVersion = "6.1.0"
slfj = "1.7.36"
splash-screen = "1.0.1"
composeBom = "2025.10.01"
materialIcons = "1.7.8"
spotbugsGradlePlugin = "6.4.4"
detektGradlePlugin = "1.23.8"
spotless = "7.2.1"
stateless4jVersion = "2.6.0"
webkitVersion = "1.14.0"
workRuntime = "2.10.4"
kotlinxSerializationJson = "1.9.0"
kotlin = "2.2.21"
ksp = "2.3.0"
[libraries]
# Crypto
android-library = { module = "com.github.nextcloud:android-library", version.ref = "androidLibraryVersion" }
conscrypt-android = { module = "org.conscrypt:conscrypt-android", version.ref = "conscryptAndroidVersion" }
bcpkix-jdk18on = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "bcpkixJdk18onVersion" }
@@ -88,6 +95,7 @@ bcpkix-jdk18on = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "bc
appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appCompatVersion" }
cardview = { module = "androidx.cardview:cardview", version.ref = "cardviewVersion" }
core-ktx = { module = "androidx.test:core-ktx", version.ref = "androidxTestVersion" }
document-scanning-android-sdk = { module = "com.github.Hazzatur:Document-Scanning-Android-SDK", version.ref = "documentScannerVersion" }
fragment-ktx = { module = "androidx.fragment:fragment-ktx", version.ref = "fragmentKtxVersion" }
exifinterface = { module = "androidx.exifinterface:exifinterface", version.ref = "exifinterfaceVersion" }
material-icons-core = { module = "androidx.compose.material:material-icons-core", version.ref = "materialIconsCoreVersion" }
@@ -132,20 +140,26 @@ jackrabbit-webdav = { module = "org.apache.jackrabbit:jackrabbit-webdav", versio
json = { module = "org.json:json", version.ref = "jsonVersion" }
juniversalchardet = { module = "com.github.albfernandez:juniversalchardet", version.ref = "juniversalchardetVersion" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
leakcanary = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
nnio = { module = "org.lukhnos:nnio", version.ref = "nnioVersion" }
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" }
osmdroid-android = { module = "org.osmdroid:osmdroid-android", version.ref = "osmdroidAndroidVersion" }
objenesis = { module = "org.objenesis:objenesis", version.ref = "objenesis" }
play-services-base = { module = "com.google.android.gms:play-services-base", version.ref = "playServicesBaseVersion" }
review-ktx = { module = "com.google.android.play:review-ktx", version.ref = "reviewKtxVersion" }
slfj = { module = "org.slf4j:jcl-over-slf4j", version.ref = "slfj" }
# Mockito
mockito-android = { module = "org.mockito:mockito-android", version.ref = "mockitoVersion" }
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockitoVersion" }
mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockitoKotlinVersion" }
mockk-android = { module = "io.mockk:mockk-android", version.ref = "mockkVersion" }
mockk = { module = "io.mockk:mockk", version.ref = "mockkVersion" }
# Dagger
dagger = { module = "com.google.dagger:dagger", version.ref = "daggerVersion" }
dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref = "daggerVersion" }
dagger-processor = { module = "com.google.dagger:dagger-android-processor", version.ref = "daggerVersion" }
dagger-android = { module = "com.google.dagger:dagger-android", version.ref = "daggerVersion" }
dagger-android-support = { module = "com.google.dagger:dagger-android-support", version.ref = "daggerVersion" }
@@ -167,7 +181,6 @@ compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
compose-material3 = { module = "androidx.compose.material3:material3" }
material-icons = { module = "androidx.compose.material:material-icons-core-1.7.8"}
# Media3
media3-datasource = { module = "androidx.media3:media3-datasource-okhttp", version.ref = "media3" }
@@ -177,6 +190,7 @@ media3-ui = { module = "androidx.media3:media3-ui", version.ref = "media3" }
# Room
room-runtime = { module = "androidx.room:room-runtime", version.ref = "roomVersion" }
room-compiler = { module = "androidx.room:room-compiler", version.ref = "roomVersion" }
room-testing = { module = "androidx.room:room-testing", version.ref = "roomVersion" }
# Espresso
@@ -189,6 +203,7 @@ espresso-web = { module = "androidx.test.espresso:espresso-web", version.ref = "
# Test
junit = { module = "androidx.test.ext:junit", version.ref = "junitVersion" }
core-testing = { module = "androidx.arch.core:core-testing", version.ref = "coreTestingVersion" }
orchestrator = { module = "androidx.test:orchestrator", version.ref = "orchestratorVersion" }
rules = { module = "androidx.test:rules", version.ref = "androidxTestVersion" }
@@ -212,6 +227,7 @@ stateless4j = { module = "com.github.stateless4j:stateless4j", version.ref = "st
syntax-highlight = { module = "io.noties.markwon:syntax-highlight", version.ref = "markwonVersion" }
core = { module = "io.noties.markwon:core", version.ref = "markwonVersion" }
prism4j = { module = "io.noties:prism4j", version.ref = "prismVersion" }
prism4j-bundler = { module = "io.noties:prism4j-bundler", version.ref = "prismVersion" }
# Nextcloud libraries
ui = { module = "com.github.nextcloud.android-common:ui", version.ref = "androidCommonLibraryVersion" }
@@ -221,9 +237,55 @@ qrcodescanner = { module = "com.github.nextcloud-deps:qrcodescanner", version.re
work-runtime = { module = "androidx.work:work-runtime", version.ref = "workRuntime" }
work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workRuntime" }
[bundles]
media3 = ["media3-ui", "media3-session", "media3-exoplayer", "media3-datasource"]
espresso = ["espresso-core", "espresso-contrib", "espresso-web", "espresso-accessibility", "espresso-intents", "espresso-idling-resource"]
ui = ["appcompat", "webkit", "cardview", "exifinterface", "fragment-ktx"]
markdown-rendering = [
"core",
"ext-strikethrough",
"ext-tables",
"ext-tasklist",
"html",
"syntax-highlight",
"prism4j"
]
unit-test = [
"junit-junit",
"test-core",
"json",
"mockito-kotlin",
"mockk",
"mockk-android",
"mockito-core",
"mockito-android",
"core-testing"
]
mocking = [
"dexopener", # required to allow mocking on API 27 and older
"mockito-kotlin",
"mockk",
"mockk-android",
"mockito-core",
"mockito-android",
"screenshot-core"
]
gplay = [
"firebase-messaging",
"play-services-base",
"review-ktx"
]
[plugins]
android-application = { id = "com.android.application", version.ref = "androidPluginVersion" }
android-library = { id = "com.android.library", version.ref = "androidPluginVersion" }
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
spotbugs = { id = "com.github.spotbugs", version.ref = "spotbugsGradlePlugin" }
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detektGradlePlugin" }
shot = { id = "shot", version.ref = "shotVersion" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
+166
View File
@@ -1,4 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2025 Your Name <your@email.com>
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
<verification-metadata xmlns="https://schema.gradle.org/dependency-verification" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://schema.gradle.org/dependency-verification https://schema.gradle.org/dependency-verification/dependency-verification-1.3.xsd">
<configuration>
<verify-metadata>true</verify-metadata>
@@ -10034,6 +10040,11 @@
<sha256 value="3cf626b9b15eee96fe7eacc8f59b0416ac0a647cd14f6b9a0bd6c01d11fae372" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.application" name="com.android.application.gradle.plugin" version="8.13.0">
<artifact name="com.android.application.gradle.plugin-8.13.0.pom">
<sha256 value="77c1aa4f095ccdec4b8ffaf7ace3ae676c59acfc4edfad20cc452d26fe1fa941" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.application" name="com.android.application.gradle.plugin" version="8.3.0">
<artifact name="com.android.application.gradle.plugin-8.3.0.pom">
<sha256 value="f3d60bb5f262d10d4ed77fe987f69192a9595d28b991fd0c4a1d8524db65b3d5" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -10159,6 +10170,11 @@
<sha256 value="51a0b6a0a6c8634e89f60d759c485398840f18fd1f879273dcc1a052bfc0b10a" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.library" name="com.android.library.gradle.plugin" version="8.13.0">
<artifact name="com.android.library.gradle.plugin-8.13.0.pom">
<sha256 value="761703196601838c0d94180bcdc3f78a29f01e141b00567dad5dc6ca6e7aca78" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.library" name="com.android.library.gradle.plugin" version="8.3.0">
<artifact name="com.android.library.gradle.plugin-8.3.0.pom">
<sha256 value="b309d7723d3a21151538cc8843393da70d0dd1b4066a54f620f79464121aada4" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -10524,6 +10540,14 @@
<sha256 value="24c56fe010e17231935fc81b9e9f783da869b655d4878c1087267cfc2e631c15" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools" name="play-sdk-proto" version="31.13.0">
<artifact name="play-sdk-proto-31.13.0.jar">
<sha256 value="c6fc15a5c203064cfd2c8a176fdeac72ae0a2d743ec47a2e66a0238d8d870b6b" origin="Generated by Gradle"/>
</artifact>
<artifact name="play-sdk-proto-31.13.0.pom">
<sha256 value="75e12e795c657b487fd15d3282e1ee4e7133f491b7efffb143975c8be618fa90" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools" name="play-sdk-proto" version="31.2.2">
<artifact name="play-sdk-proto-31.2.2.jar">
<sha256 value="e116cc979f3d94a029dea8a60a79acbb799130992ef9d771a6f2320c1d3af3b1" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -11437,6 +11461,9 @@
</artifact>
</component>
<component group="com.android.tools.build" name="aapt2" version="8.13.0-13719691">
<artifact name="aapt2-8.13.0-13719691-osx.jar">
<sha256 value="29213e18381a5d8c72932f8bbd06349f99131ec3b13c14e8c0ec90738b865ca1" origin="Generated by Gradle"/>
</artifact>
<artifact name="aapt2-8.13.0-13719691-windows.jar">
<sha256 value="273531f413184d00938178884b6c131b51fc45920d6b6bdc396438b06070895a" origin="Generated by Gradle"/>
</artifact>
@@ -13144,6 +13171,14 @@
<sha256 value="eea292edd8fc933acde29a62b0aa4236a5617eb149ad79220c3f7d6d0ff3f503" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.external.com-intellij" name="intellij-core" version="31.13.0">
<artifact name="intellij-core-31.13.0.jar">
<sha256 value="9a6faa6061d0f3d54a64decb61944c1b2c6927f8d325cd298c82c2a8d867ee68" origin="Generated by Gradle"/>
</artifact>
<artifact name="intellij-core-31.13.0.pom">
<sha256 value="61b004516581715323b4bbb7d74d45ef25bdd55184e875856fd72ece913814a9" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.external.com-intellij" name="intellij-core" version="31.2.2">
<artifact name="intellij-core-31.2.2.jar">
<sha256 value="4ef3e25b701046576f063d5febee30de8ab44cc57dfceabacab3e6a83431142a" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -13192,6 +13227,14 @@
<sha256 value="d3813e02861e17683cb2202e870d28fd513ba1d96cbb5d38b2fe94a00dadb4fd" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.external.com-intellij" name="kotlin-compiler" version="31.13.0">
<artifact name="kotlin-compiler-31.13.0.jar">
<sha256 value="552dfaffe295d08504870816c27fc09007e1231fb9b14c1ff9bbf861f9b35990" origin="Generated by Gradle"/>
</artifact>
<artifact name="kotlin-compiler-31.13.0.pom">
<sha256 value="73e1d5e2129a2c663e98fa0354578ed4dbc4e5ab29d832e4f843ef109e9cae53" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.external.com-intellij" name="kotlin-compiler" version="31.2.2">
<artifact name="kotlin-compiler-31.2.2.jar">
<sha256 value="d4e1b1a25aada53fdb3101ac9f854d579db9675f3bd863ba2d9517d4b84d512c" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -13240,6 +13283,14 @@
<sha256 value="4cefe2ab003423cd3687ce59c0d1cde7e06806b45a7f237dc340346fb2d7ba9d" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.external.org-jetbrains" name="uast" version="31.13.0">
<artifact name="uast-31.13.0.jar">
<sha256 value="78f18ac2b2509fb6cb19058e8fc9585c361b97990dd7d5db0c2a94744dfb0a96" origin="Generated by Gradle"/>
</artifact>
<artifact name="uast-31.13.0.pom">
<sha256 value="f26af59cb7f1555151017a15eda199efa05fa57e05cf0e58ec4315abdf2ee5e0" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.external.org-jetbrains" name="uast" version="31.2.2">
<artifact name="uast-31.2.2.jar">
<sha256 value="ee2468681000a87bb6f19f3b42bb9f3a63ecd9c58b83c05f187b531bf947e928" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -13408,6 +13459,14 @@
<sha256 value="6ad001cef7d58acfab03ce753dd45a97c286c3075c09fd43dfd4425e1e66fee4" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint" version="31.13.0">
<artifact name="lint-31.13.0.jar">
<sha256 value="7f875a980ee23916439d368d073cfbc2ee4e4d99ffe1b3e13da794fef347f29a" origin="Generated by Gradle"/>
</artifact>
<artifact name="lint-31.13.0.pom">
<sha256 value="7f5ebb35c5d6487c1d753605314fd8c89e83342b098e36946e07d5aa4ba7fc61" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint" version="31.2.2">
<artifact name="lint-31.2.2.jar">
<sha256 value="4930d0256c072ad506037ed0f10b2433755fecc2756b8d7cee7532a834cb65ec" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -13456,6 +13515,14 @@
<sha256 value="c03d9f2a0fc081aee3e3efe6570e26b7abb50124e55f9f3daada039d6769abe5" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint-api" version="31.13.0">
<artifact name="lint-api-31.13.0.jar">
<sha256 value="8f770657dba33f305e583c62953a4f174c75a7b1cd2da7d31134be36a96ae2ac" origin="Generated by Gradle"/>
</artifact>
<artifact name="lint-api-31.13.0.pom">
<sha256 value="635fc52c570c12c4b2b764826fdc34c36eff7abc26e0097a7c805054404a6d5b" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint-api" version="31.2.2">
<artifact name="lint-api-31.2.2.jar">
<sha256 value="2085acce4e4715246dffb5be0bc11cb87525e31883b013420b6fd292cc827bfc" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -13504,6 +13571,14 @@
<sha256 value="a24c2ab31e8592c407592af7fc601b061c0a03ba6a1036b73ba365b5baa1ff4f" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint-checks" version="31.13.0">
<artifact name="lint-checks-31.13.0.jar">
<sha256 value="3b64f395ae17fcea104882b00a4acdc7dc691f5daca5dff2bdde89fa052bb199" origin="Generated by Gradle"/>
</artifact>
<artifact name="lint-checks-31.13.0.pom">
<sha256 value="0c534723f0f1e9dd3ebd05c52c9daf47016d1b936620bf827ac7c7fbd886af9e" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint-checks" version="31.2.2">
<artifact name="lint-checks-31.2.2.jar">
<sha256 value="43613f6af70d02af3356dc7176ff6aa5f4731c455deac96c258dc171cc1e0e4e" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -13552,6 +13627,14 @@
<sha256 value="2f57f5dfb7ced43d37bd74b216327b8cc0b783211c5dbf7dc53a99077215b4da" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint-gradle" version="31.13.0">
<artifact name="lint-gradle-31.13.0.jar">
<sha256 value="a42b6a41c436d90ca31a13d67afba1157b157efc892a7496f67432bf8a831cbd" origin="Generated by Gradle"/>
</artifact>
<artifact name="lint-gradle-31.13.0.pom">
<sha256 value="c25772c66557c8d97f3afe95add43a50f0e1aa4befe5c6ca7e22b05d1325b2c5" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.android.tools.lint" name="lint-gradle" version="31.2.2">
<artifact name="lint-gradle-31.2.2.jar">
<sha256 value="6f9c92fdbab8a67552507238a06b7fb5305d1ae61b4a1e93b8f42c20550326aa" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -17572,6 +17655,14 @@
<sha256 value="36dfd05a9d3b9df4db8aceeb6cbefa31ffde4f7199a7765e841042ec022c0c60" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="55ed1b1b63">
<artifact name="android-library-55ed1b1b63.aar">
<sha256 value="bca903c58a485d53b88b0b5f8a5201e0ac11d7630b8fbef4829d68131eeddc0f" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
<artifact name="android-library-55ed1b1b63.module">
<sha256 value="b6d96caf23a995c1d15dddb349cc056c7544eeead69404212e02119dcc7c6ba9" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="5da34c70da4068ff976cf931b7716fc7a337f32d">
<artifact name="android-library-5da34c70da4068ff976cf931b7716fc7a337f32d.aar">
<sha256 value="22c05e04d2b2667c39da419b2d3d07e7832babd4b2e235aa5d4394a4fecf92ee" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -17644,6 +17735,14 @@
<sha256 value="0e72841878595f83c6d8f93aa51f78a67e821f53446fcb7a5d94cfaad8ebbbac" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="72d739551d">
<artifact name="android-library-72d739551d.aar">
<sha256 value="587886bac4903337dbbb379ba2b3452066427241d97150423a3b966418b9dd91" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
<artifact name="android-library-72d739551d.module">
<sha256 value="6540bd9ced6fc12bf9255ba87b2890bb07d06c0a4f9b97a8a086a15c24c62a90" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="7444d0e832bb35b708c2d84878d9727d24289385">
<artifact name="android-library-7444d0e832bb35b708c2d84878d9727d24289385.aar">
<sha256 value="c253a126ca3c32dd5b373ab1c64668e4603305b3113b052fc0fc5e3c833a913c" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -17740,6 +17839,14 @@
<sha256 value="366e1217b642efa6f8ee8334b265169a8860c5e5425159715891509474b30df8" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="8c77f600ac942f6eb4e3c4447143fc949d34acc6">
<artifact name="android-library-8c77f600ac942f6eb4e3c4447143fc949d34acc6.aar">
<sha256 value="8123aaea5d9c2fa439a635bb64d16ec532c596a4a2dd76e18da2fe729ab886ba" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
<artifact name="android-library-8c77f600ac942f6eb4e3c4447143fc949d34acc6.module">
<sha256 value="1bcc9a70ccdad8253705dd2a4bd173155ee3a828bd26e5f3047bf246facd3e59" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="8e561c7e65f208492c20b106eb25cfbe43dc7189">
<artifact name="android-library-8e561c7e65f208492c20b106eb25cfbe43dc7189.aar">
<sha256 value="d772821c93ced5f256dfc150f90bac38358ea037fa90ac80614cfd089c3996e6" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -17956,6 +18063,14 @@
<sha256 value="d7c4c3c4f9458f2de9a63ebac3c80e99c04e358c4aef347c499b52690d761c86" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="d753870f0ae721d8931c113890610e044296f2dd">
<artifact name="android-library-d753870f0ae721d8931c113890610e044296f2dd.aar">
<sha256 value="8123aaea5d9c2fa439a635bb64d16ec532c596a4a2dd76e18da2fe729ab886ba" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
<artifact name="android-library-d753870f0ae721d8931c113890610e044296f2dd.module">
<sha256 value="68ab5b4fd0dfa9a4c70301b320c6fa2ab61ebf0623740f399088b559715398cc" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="d862794d794a7e8d8b53da98aa801753e684bf52">
<artifact name="android-library-d862794d794a7e8d8b53da98aa801753e684bf52.aar">
<sha256 value="d82be01cadecc9c51d68ed1ef50b98cf19266bdf1c1f781a696b958d94fc4184" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -18600,6 +18715,16 @@
<sha256 value="ad0aa36596cc4c0247fea54d5acc1e47b2b8d81e744c3c89e5dacb531d62a670" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
</artifact>
</component>
<component group="com.github.spotbugs" name="com.github.spotbugs.gradle.plugin" version="6.4.2">
<artifact name="com.github.spotbugs.gradle.plugin-6.4.2.pom">
<sha256 value="0ab039ee2a38862104d088848573c12d78ad6154245c50fb35434e6b1198f97d" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.spotbugs" name="com.github.spotbugs.gradle.plugin" version="6.4.4">
<artifact name="com.github.spotbugs.gradle.plugin-6.4.4.pom">
<sha256 value="55b85c676156fd1baecb0e1a0ddf33a8c96118582e14a3c1325930531aa126cb" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.spotbugs" name="spotbugs" version="4.7.3">
<artifact name="spotbugs-4.7.3.jar">
<sha256 value="df37eab21a7d04aa807808a33e9f7c081451cb02c14b4a2c33119976be498520" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
@@ -21034,6 +21159,14 @@
<sha256 value="0c100ffa8be7b4bf30d502cc2f54724c05bfa54dfa52efb7deeb56faab5e8522" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.google.errorprone" name="javac-shaded" version="9-dev-r4023-3">
<artifact name="javac-shaded-9-dev-r4023-3.jar">
<sha256 value="65bfccf60986c47fbc17c9ebab0be626afc41741e0a6ec7109e0768817a36f30" origin="Generated by Gradle"/>
</artifact>
<artifact name="javac-shaded-9-dev-r4023-3.pom">
<sha256 value="7459fd63c1e73770ca44d37a7a685b731a946eb7cd701ccb284dcb0ce6de3f88" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.google.firebase" name="firebase-annotations" version="16.1.0">
<artifact name="firebase-annotations-16.1.0.pom">
<sha256 value="6aeed1527ffb8ba1331a6e464aad8a1327250210b8d9d44bc34aa9e9db5e32b0" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -21320,6 +21453,9 @@
</artifact>
</component>
<component group="com.google.googlejavaformat" name="google-java-format" version="1.5">
<artifact name="google-java-format-1.5.jar">
<sha256 value="aa19ad7850fb85178aa22f2fddb163b84d6ce4d0035872f30d4408195ca1144e" origin="Generated by Gradle"/>
</artifact>
<artifact name="google-java-format-1.5.pom">
<sha256 value="994510ba3b16fb02e5ca17e8fd6158e2702fe95a1359c80be547b86b76a7aad5" origin="Generated by Gradle"/>
</artifact>
@@ -23202,6 +23338,11 @@
<sha256 value="a676039ea6af08f257b46e07c2bf1571a46a4d4b5b9ccb86c3fc98d07fafea1b" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="gradle" name="gradle" version="9.1.0">
<artifact name="gradle-9.1.0-src.zip">
<sha256 value="938fc54835f7a59f4f6b18624d0e453cce5b54139cd9ed83a816d553ae1eb1f1" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="id.zelory" name="compressor" version="3.0.1">
<artifact name="compressor-3.0.1.aar">
<sha256 value="27abd452db6c8bedd94d1ede04617df5cd5033427c0f91906cb71e798c67b422" origin="Generated by Gradle"/>
@@ -23953,6 +24094,11 @@
<sha256 value="a326d380421a273859c741cb186a2ddba8cebf032ffa5feef94ff6d577e01185" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="io.gitlab.arturbosch.detekt" name="io.gitlab.arturbosch.detekt.gradle.plugin" version="1.23.8">
<artifact name="io.gitlab.arturbosch.detekt.gradle.plugin-1.23.8.pom">
<sha256 value="6b7aa8ea52466795239440c9881fa2875cacb6d36ecc8eeebb590354a610a067" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="io.grpc" name="grpc-api" version="1.45.1">
<artifact name="grpc-api-1.45.1.jar">
<sha256 value="dc381fe018fb10bba8cc66f98db1050a70cee49a8270017c22ec6f77b10f13e5" origin="Generated by Gradle"/>
@@ -31163,6 +31309,16 @@
<sha256 value="c1b02fe072557f4c45b68c9772dfcbadb27d87b80a39e1a2796408ebbe4d0211" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="org.jetbrains.kotlin.android" name="org.jetbrains.kotlin.android.gradle.plugin" version="2.2.20">
<artifact name="org.jetbrains.kotlin.android.gradle.plugin-2.2.20.pom">
<sha256 value="11c1835497fa961ba2941ebcba578e924e7b6a2e74bb4f446fe18969da1d4ecf" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="org.jetbrains.kotlin.android" name="org.jetbrains.kotlin.android.gradle.plugin" version="2.2.21">
<artifact name="org.jetbrains.kotlin.android.gradle.plugin-2.2.21.pom">
<sha256 value="45c2d0d6f1f62b1f724900693d48a68f58be3d73602e29f9167489d2332a5fb6" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="org.jetbrains.kotlin.kapt" name="org.jetbrains.kotlin.kapt.gradle.plugin" version="1.9.22">
<artifact name="org.jetbrains.kotlin.kapt.gradle.plugin-1.9.22.pom">
<sha256 value="1daf64ddd8e90a6aa8a831f3e649b4b094e72fe91df0dfd91b5b1ba1dcd54d54" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -31320,6 +31476,16 @@
</sha256>
</artifact>
</component>
<component group="org.jetbrains.kotlin.plugin.parcelize" name="org.jetbrains.kotlin.plugin.parcelize.gradle.plugin" version="2.2.20">
<artifact name="org.jetbrains.kotlin.plugin.parcelize.gradle.plugin-2.2.20.pom">
<sha256 value="c8c59883a937225b7f55d3b2a7379d4843a907d0604e39545d23ec844986a175" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="org.jetbrains.kotlin.plugin.parcelize" name="org.jetbrains.kotlin.plugin.parcelize.gradle.plugin" version="2.2.21">
<artifact name="org.jetbrains.kotlin.plugin.parcelize.gradle.plugin-2.2.21.pom">
<sha256 value="1064f46e390453da3e8e4985ded847c87bc53d9db8596cedd52bc509a30383f9" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="org.jetbrains.kotlin.plugin.serialization" name="org.jetbrains.kotlin.plugin.serialization.gradle.plugin" version="2.2.20">
<artifact name="org.jetbrains.kotlin.plugin.serialization.gradle.plugin-2.2.20.pom">
<sha256 value="48a64185623040fd6677b010083d89c618139bd73160badad65916e6d5439fc6" origin="Generated by Gradle" reason="Artifact is not signed">
-106
View File
@@ -1,106 +0,0 @@
apply plugin: "jacoco"
jacoco {
toolVersion = "$jacoco_version"
}
// Force Jacoco Version
subprojects {
configurations.all {
resolutionStrategy {
eachDependency { details ->
if ("org.jacoco" == details.requested.group) {
details.useVersion "$jacocoVersion"
}
}
}
}
}
project.afterEvaluate { project ->
tasks.withType(Test).configureEach {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ["jdk.internal.*"]
}
final flavor = "Gplay"
final buildType = "Debug"
final variant = "$flavor${buildType.capitalize()}"
final taskName = "jacocoTest${variant.capitalize()}UnitTestReport"
task "$taskName"(type: JacocoReport, dependsOn: "test${variant.capitalize()}UnitTest") {
reports {
csv.required = Boolean.FALSE
xml.required = Boolean.TRUE
html.required = Boolean.TRUE
}
final fileFilter = [
// data binding
"**/databinding/*",
"android/databinding/**/*.class",
"**/android/databinding/*Binding.class",
"**/android/databinding/*",
"**/androidx/databinding/*",
"**/BR.*",
// android
"**/R.class",
"**/R\$*.class",
"**/BuildConfig.*",
"**/Manifest*.*",
"**/*Test*.*",
"android/**/*.*",
// kotlin
"**/*MapperImpl*.*",
"**/*\$ViewInjector*.*",
"**/*\$ViewBinder*.*",
"**/BuildConfig.*",
"**/*Component*.*",
"**/*BR*.*",
"**/Manifest*.*",
"**/*\$Lambda\$*.*",
"**/*Companion*.*",
"**/*Module*.*",
"**/*Dagger*.*",
"**/*Hilt*.*",
"**/*MembersInjector*.*",
"**/*_MembersInjector.class",
"**/*_Factory*.*",
"**/*_Provide*Factory*.*",
"**/*Extensions*.*",
// sealed and data classes
"**/*\$Result.*",
"**/*\$Result\$*.*",
// adapters generated by moshi
"**/*JsonAdapter.*",
// Hilt
"**/*Module.kt",
"**/di/**",
"dagger.hilt.internal/*",
"hilt_aggregated_deps/*",
"**/*\$Result.*", /* filtering `sealed` and `data` classes */
"**/*\$Result\$*.*",/* filtering `sealed` and `data` classes */
"**/*Args*.*", /* filtering Navigation Component generated classes */
"**/*Directions*.*", /* filtering Navigation Component generated classes */
"**/*inlined*.class", /* filtering inlined classes */
"**/composables/**"
/* INSERT ANY OTHER JUNK YOU WANT FILTERED OUT HERE */]
final androidKotlinTree = fileTree(dir: "${project.buildDir}/tmp/kotlin-classes/${variant}", excludes: fileFilter)
final kotlinTree = fileTree(dir: "${project.buildDir}/classes/kotlin/main", excludes: fileFilter)
final javacTree = fileTree(dir: "${project.buildDir}/intermediates/javac/${variant}/classes", excludes: fileFilter)
final mainSrc = "${project.projectDir}/src/main/java"
final productFlavorSrc = "${project.projectDir}/src/${flavor}/java"
final buildTypeSrc = "${project.projectDir}/src/${buildType}/java"
sourceDirectories.setFrom files([mainSrc, productFlavorSrc, buildTypeSrc])
classDirectories.setFrom files([androidKotlinTree, kotlinTree, javacTree])
executionData.setFrom fileTree(dir: project.buildDir, includes: ["jacoco/test${variant.capitalize()}UnitTest.exec",
"outputs/unit_test_code_coverage/${variant}UnitTest/test${variant.capitalize()}UnitTest.exec",])
}
}
+116
View File
@@ -0,0 +1,116 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Jimly Asshiddiqy <jimly.asshiddiqy@accenture.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
apply<JacocoPlugin>()
configure<JacocoPluginExtension> {
toolVersion = extensions
.getByType<VersionCatalogsExtension>()
.find("libs")
.get()
.findVersion("jacoco")
.get()
.displayName
}
val flavor = "gplay"
val buildType = "Debug"
val variant = "$flavor${buildType.capitalize()}"
val jacocoTask = tasks.register<JacocoReport>("jacocoTest${variant.capitalize()}UnitTestReport") {
reports {
csv.required = false
xml.required = true
html.required = true
}
val fileFilter = listOf(
// data binding
"**/databinding/*",
"android/databinding/**/*.class",
"**/android/databinding/*Binding.class",
"**/android/databinding/*",
"**/androidx/databinding/*",
"**/BR.*",
// android
"**/R.class",
"**/R\$*.class",
"**/BuildConfig.*",
"**/Manifest*.*",
"**/*Test*.*",
"android/**/*.*",
// kotlin
"**/*MapperImpl*.*",
"**/*\$ViewInjector*.*",
"**/*\$ViewBinder*.*",
"**/BuildConfig.*",
"**/*Component*.*",
"**/*BR*.*",
"**/Manifest*.*",
"**/*\$Lambda\$*.*",
"**/*Companion*.*",
"**/*Module*.*",
"**/*Dagger*.*",
"**/*Hilt*.*",
"**/*MembersInjector*.*",
"**/*_MembersInjector.class",
"**/*_Factory*.*",
"**/*_Provide*Factory*.*",
"**/*Extensions*.*",
// sealed and data classes
"**/*\$Result.*",
"**/*\$Result\$*.*",
// adapters generated by moshi
"**/*JsonAdapter.*",
// Hilt
"**/*Module.kt",
"**/di/**",
"dagger.hilt.internal/*",
"hilt_aggregated_deps/*",
"**/*\$Result.*", /* filtering `sealed` and `data` classes */
"**/*\$Result\$*.*",/* filtering `sealed` and `data` classes */
"**/*Args*.*", /* filtering Navigation Component generated classes */
"**/*Directions*.*", /* filtering Navigation Component generated classes */
"**/*inlined*.class", /* filtering inlined classes */
"**/composables/**"
/* INSERT ANY OTHER JUNK YOU WANT FILTERED OUT HERE */
)
val androidKotlinTree = project.fileTree("${project.layout.buildDirectory}/tmp/kotlin-classes/${variant}") {
exclude(fileFilter)
}
val javacTree = project.fileTree("${project.layout.buildDirectory}/intermediates/javac/${variant}") {
exclude(fileFilter)
}
sourceDirectories.setFrom(
project.layout.projectDirectory.dir("src/main/java"),
project.layout.projectDirectory.dir("src/${flavor}/java"),
project.layout.projectDirectory.dir("src/${buildType}/java")
)
classDirectories.setFrom(
project.layout.projectDirectory.files(
project.fileTree(project.layout.buildDirectory.dir("intermediates/javac/${variant}")) { exclude(fileFilter) },
project.fileTree(project.layout.buildDirectory.dir("tmp/kotlin-classes/$variant")) { exclude(fileFilter) }
)
)
executionData.setFrom(
project.fileTree(project.layout.buildDirectory.dir("jacoco")) {
include("**/test${variant.capitalize()}UnitTest.exec")
}
)
}
tasks.withType<Test>()
.matching { task -> task.name == "test${variant.capitalize()}UnitTest" }
.configureEach {
extensions.getByType<JacocoTaskExtension>().isIncludeNoLocationClasses = true
extensions.getByType<JacocoTaskExtension>().setExcludes(listOf("jdk.internal.*"))
finalizedBy(jacocoTask)
}
+13 -5
View File
@@ -6,12 +6,20 @@
snapshotCount=$(./gradlew dependencies | grep SNAPSHOT -c)
betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
libraryHash=$(grep androidLibraryVersion build.gradle | cut -d= -f2 | tr -d \")
# Read androidLibraryVersion from TOML
libraryHash=$(grep 'androidLibraryVersion' gradle/libs.versions.toml \
| cut -d '=' -f2 \
| tr -d ' "' )
baseBranch="master"
lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 20)
if [[ $(echo "$lastHashes" | grep -c $libraryHash) -ne 1 ]]; then
# Fetch last 10 commit SHAs from GitHub, without quotes
lastHashes=$(curl -s "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" \
| jq -r '.[].sha' | head -n 10)
# Check if libraryHash is in lastHashes
if ! echo "$lastHashes" | grep -q "^$libraryHash$"; then
echo "Library commit not within last 10 hashes, please rebase!"
exit 1
fi
@@ -20,10 +28,10 @@ if [[ $snapshotCount -gt 0 ]] ; then
echo "Snapshot found in dependencies"
exit 1
fi
if [[ $betaCount -gt 0 ]] ; then
echo "Beta is set in setup.xml"
exit 1
fi
exit 0
exit 0
+4 -4
View File
@@ -5,15 +5,15 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
#
date=$(date +%Y%m%d)
oldLibraryCommit=$(grep "androidLibraryVersion\ =" build.gradle)
oldLibraryCommit=$(grep "androidLibraryVersion\ =" gradle/libs.versions.toml)
libraryCommit=$(curl https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
# use current date for version code/name
sed -i "/versionDev/,/\}/ s/versionCode .*/versionCode $date/" app/build.gradle
sed -i "/versionDev/,/\}/ s/versionName .*/versionName \"$date\"/" app/build.gradle
sed -i "/versionDev/,/\}/ s/versionCode .*/versionCode = $date/" app/build.gradle.kts
sed -i "/versionDev/,/\}/ s/versionName .*/versionName = \"$date\"/" app/build.gradle.kts
# change library
sed -i s"#androidLibraryVersion\ =.*#androidLibraryVersion =\"$libraryCommit\"#" build.gradle
sed -i s"#androidLibraryVersion\ =.*#androidLibraryVersion = \"$libraryCommit\"#" gradle/libs.versions.toml
./gradlew --console=plain --dependency-verification lenient -q --write-verification-metadata sha256,pgp help
# build signed apk
+1 -1
View File
@@ -12,7 +12,7 @@ if [ -z "$PR_NUMBER" ] ; then
fi
export BRANCH=$(scripts/analysis/getBranchBase.sh "$PR_NUMBER" | sed 's/"//g')
if [ "$(git diff --name-only "origin/$BRANCH" | grep -cE "^app/src|screenshots|build.gradle|.drone.yml|gradle")" -eq 0 ] ; then
if [ "$(git diff --name-only "origin/$BRANCH" | grep -cE "^app/src|screenshots|build.gradle.kts|.drone.yml|gradle")" -eq 0 ] ; then
echo "No source files changed"
exit 1
else
-22
View File
@@ -1,22 +0,0 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2014-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
*/
rootProject.name = "Nextcloud"
include ":app"
include ":appscan"
//includeBuild("../android-common") {
// dependencySubstitution {
// substitute module("com.github.nextcloud.android-common:ui") using project(":ui")
// }
//}
//includeBuild("../android-library") {
// dependencySubstitution {
// substitute module('com.github.nextcloud:android-library') using project(':library') // broken on gradle 8.14.2, so use 8.13 if needed
// }
//}
+54
View File
@@ -0,0 +1,54 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Jimly Asshiddiqy <jimly.asshiddiqy@accenture.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
rootProject.name = "Nextcloud"
pluginManagement {
resolutionStrategy.eachPlugin {
if (requested.id.id == "shot") useModule("com.karumi:shot:${requested.version}")
}
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
gradlePluginPortal()
mavenCentral()
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
maven("https://jitpack.io")
}
}
//includeBuild("../android-common") {
// dependencySubstitution {
// substitute module("com.github.nextcloud.android-common:ui") using project(":ui")
// }
//}
//includeBuild("../android-library") {
// dependencySubstitution {
// substitute module('com.github.nextcloud:android-library') using project(':library') // broken on gradle 8.14.2, so use 8.13 if needed
// }
//}
include(":app", ":appscan")