Compare commits

...
Author SHA1 Message Date
tobiasKaminsky 5ca15fd6ea fix deletion of folder in DB
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-20 07:48:29 +02:00
Nextcloud bot 400350bc38 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-20 03:03:08 +00:00
Nextcloud bot a08fb2e882 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-19 03:03:25 +00:00
Andy Scherzinger 6f33cf6873 Merge pull request #15030 from nextcloud/fux/15029/codacy-badge
docs(Readme): update codacy badge
2025-06-18 22:57:31 +02:00
Andy Scherzinger 6a55435017 docs(Readme): update codacy badge
fixes #15029 

Signed-off-by: Andy Scherzinger <[email protected]>
2025-06-18 22:56:23 +02:00
Tobias Kaminsky 92d23f65d7 Merge pull request #14857 from nextcloud/improve-file-download-progress
Improve File Download Tracking
2025-06-18 13:47:06 +02:00
alperozturk bc92642b37 solve git conflicts
Signed-off-by: alperozturk <[email protected]>
2025-06-18 12:13:23 +02:00
alperozturk aa95bd8091 fix git conflict
Signed-off-by: alperozturk <[email protected]>
2025-06-18 12:13:23 +02:00
alperozturk cbe3a11ca1 better function and variable names
Signed-off-by: alperozturk <[email protected]>
2025-06-18 12:13:23 +02:00
alperozturk 70317a269e extract methods for better usage
Signed-off-by: alperozturk <[email protected]>
2025-06-18 12:13:23 +02:00
alperozturk 86cbe2b01c add more TODO
Signed-off-by: alperozturk <[email protected]>
2025-06-18 12:13:23 +02:00
alperozturk 04f7b3431a observe download progress in file download detail fragment
Signed-off-by: alperozturk <[email protected]>
2025-06-18 12:13:23 +02:00
Tobias Kaminsky b0b163f357 Merge pull request #14941 from fran-tor/master
Fix app crashes if local folder is null
2025-06-18 11:11:56 +02:00
Tobias Kaminsky 9866ba24bd Merge pull request #15021 from eeshanjamal/enh/non-constant-R
Enabled the use of non-constant R classes.
2025-06-18 11:11:25 +02:00
Tobias Kaminsky e84e22f222 Merge pull request #14997 from nextcloud/fix-upload-timestamp
store upload timestamp directly after upload
2025-06-18 10:41:19 +02:00
Tobias Kaminsky d56eb6ddd8 Update app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-06-18 10:37:51 +02:00
Tobias Kaminsky 06cdba38d1 Merge pull request #14938 from nextcloud/ExplicitType
Fix Redundancy in Explicit Types
2025-06-18 10:29:29 +02:00
Tobias Kaminsky 4c89f8e479 Merge pull request #14981 from nextcloud/bugfix/upload-files-get-user-runtime-exception
Check User Before Upload Files
2025-06-18 10:05:19 +02:00
Tobias Kaminsky 785d34ac46 Merge pull request #15014 from nextcloud/autoMerge
Test auto merge
2025-06-18 08:37:12 +02:00
tobiasKaminsky 633dfa100a Auto merge of renovate PRs
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-18 08:36:36 +02:00
Eeshan Jamal e4b82f14fd Issue #14892: Enabled the use of non-constant R classes.
Signed-off-by: Eeshan Jamal <[email protected]>
2025-06-18 08:35:51 +05:30
Nextcloud bot f084f99ae4 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-18 03:04:07 +00:00
Tobias Kaminsky f1f99c36ee Merge pull request #15019 from nextcloud/fixAnalysis
correct fork check
2025-06-17 14:55:58 +02:00
tobiasKaminsky 4ddd7d5343 correct fork check
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-17 14:55:24 +02:00
Andy Scherzinger 6d45c6459a Merge pull request #14376 from nextcloud/renovate/ghcr.io-nextcloud-continuous-integration-android8-4.x
chore(deps): update ghcr.io/nextcloud/continuous-integration-android8 docker tag to v4
2025-06-17 14:07:59 +02:00
Tobias Kaminsky 2881855960 Merge pull request #15016 from nextcloud/bugfix/check-npe-recycler-view-in-extended-list-fragment
BugFix - Check recycler view nullability
2025-06-17 13:15:13 +02:00
Andy Scherzinger ee96b9c056 ci(drone): Update hmac
Signed-off-by: Andy Scherzinger <[email protected]>
2025-06-17 11:38:12 +02:00
renovate[bot] cddd49af13 chore(deps): update ghcr.io/nextcloud/continuous-integration-android8 docker tag to v4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-17 11:38:12 +02:00
alperozturk 34b0937df1 check recycler view nullability
Signed-off-by: alperozturk <[email protected]>
2025-06-17 11:31:53 +02:00
Tobias Kaminsky 6af278e8a0 Merge pull request #15010 from nextcloud/bugfix/add-manual-migration-88-to-89
BugFix - Add Manual Migration 88 to 89
2025-06-17 10:50:41 +02:00
alperozturk 82247b9e00 put in db migration util
Signed-off-by: alperozturk <[email protected]>
2025-06-17 09:19:46 +02:00
Nextcloud bot 5c256e358a fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-17 03:02:15 +00:00
alperozturk ffc11a6636 fix kt spotless
Signed-off-by: alperozturk <[email protected]>
2025-06-16 22:55:28 +02:00
alperozturk 784c92aa75 extract common logic
Signed-off-by: alperozturk <[email protected]>
2025-06-16 22:55:28 +02:00
alperozturk bdae1345fa addMissingNotesFolderPathToCapabilitiesEntity
Signed-off-by: alperozturk <[email protected]>
2025-06-16 22:55:28 +02:00
alperozturk 39a26c835b add manual migration
Signed-off-by: alperozturk <[email protected]>
2025-06-16 22:55:28 +02:00
Andy Scherzinger 414e6c978f Merge pull request #14793 from nextcloud/renovate/mockkversion
fix(deps): update mockkversion to v1.14.2
2025-06-16 20:41:22 +02:00
renovate[bot] 38017d93a0 fix(deps): update mockkversion to v1.14.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 17:57:29 +00:00
Andy Scherzinger 10949214ca Merge pull request #14373 from nextcloud/renovate/com.github.albfernandez-juniversalchardet-2.x
fix(deps): update dependency com.github.albfernandez:juniversalchardet to v2.5.0
2025-06-16 19:28:58 +02:00
Andy Scherzinger 2fe7d44dec Merge pull request #14791 from nextcloud/renovate/commons-io-commons-io-2.x
fix(deps): update dependency commons-io:commons-io to v2.19.0
2025-06-16 18:37:54 +02:00
Andy Scherzinger a66e9270fe Merge pull request #15011 from nextcloud/renovate/gradle-actions-4.x
chore(deps): update gradle/actions action to v4.4.1
2025-06-16 16:44:38 +02:00
renovate[bot] 6dd1a0afa5 chore(deps): update gradle/actions action to v4.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 14:40:12 +00:00
renovate[bot] 46f84a5537 fix(deps): update dependency commons-io:commons-io to v2.19.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 14:33:02 +00:00
renovate[bot] d0a059990f fix(deps): update dependency com.github.albfernandez:juniversalchardet to v2.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 16:24:01 +02:00
Alper Öztürk 973ddc4d4d Merge pull request #15009 from nextcloud/upgrade-next-major-version-3.33
Upgrade next minor version 3.33
2025-06-16 15:32:55 +02:00
Andy Scherzinger a283700ea7 Merge pull request #14768 from nextcloud/renovate/androidx.webkit-webkit-1.x
fix(deps): update dependency androidx.webkit:webkit to v1.14.0
2025-06-16 14:47:40 +02:00
Andy Scherzinger a362957ce3 Merge pull request #14987 from nextcloud/renovate/spotbugsgradleplugin
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.2.0
2025-06-16 14:25:42 +02:00
alperozturk 8aa4f52c11 bump version
Signed-off-by: alperozturk <[email protected]>
2025-06-16 13:38:38 +02:00
Tobias Kaminsky 314abc4755 Merge pull request #15006 from nextcloud/remove-g-play-warnings
Remove gplay warnings
2025-06-16 13:04:30 +02:00
tobiasKaminsky 684830acba remove unneeded strings
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-16 12:58:34 +02:00
renovate[bot] 843ff5252f fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 10:48:26 +00:00
renovate[bot] 9620d1c684 fix(deps): update dependency androidx.webkit:webkit to v1.14.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 10:42:56 +00:00
alperozturk 31078ad640 remove gplay warnings
Signed-off-by: alperozturk <[email protected]>
2025-06-16 12:31:23 +02:00
Alper Öztürk b1198a8412 Merge pull request #14994 from nextcloud/drop-min-supported-versions
Drop Min Supported Versions
2025-06-16 12:31:11 +02:00
Andy Scherzinger 74f009c1b1 Merge pull request #14910 from nextcloud/renovate/kotlin
chore(deps): update kotlin to v2.1.21
2025-06-16 12:26:01 +02:00
Tobias Kaminsky 639e54a8cb Merge pull request #14946 from nextcloud/offlineTrashbin
Activity/Trashbin: Show correct info if server not reachable
2025-06-16 11:52:43 +02:00
Andy Scherzinger 0485f1ffe1 ci(chksm): Add meta-data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-06-16 11:29:33 +02:00
renovate[bot] e5c8057eb3 fix(deps): update roomversion to v2.7.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 11:29:33 +02:00
Andy Scherzinger bd4a29a027 ci(chksm): Add meta-data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-06-16 11:29:33 +02:00
renovate[bot] 980fcf4755 chore(deps): update dependency com.google.devtools.ksp to v2.1.21-2.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 11:29:32 +02:00
renovate[bot] 6cfc0c796a fix(deps): update kotlin monorepo to v2.1.21
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 11:29:32 +02:00
renovate[bot] 4d3d399a30 chore(deps): update kotlin to v2.1.21
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 11:29:27 +02:00
Tobias Kaminskyandkramo 9094849021 Update app/src/main/res/values/strings.xml
Co-authored-by: kramo <[email protected]>
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-06-16 11:16:52 +02:00
alperozturk df2a961280 fix CapabilityUtilsIT tests
Signed-off-by: alperozturk <[email protected]>
2025-06-16 11:11:46 +02:00
alperozturk bbd80ea0b0 use rc1 lib
Signed-off-by: alperozturk <[email protected]>
2025-06-16 11:11:46 +02:00
alperozturk 3fe848983d fix lint
Signed-off-by: alperozturk <[email protected]>
2025-06-16 11:11:44 +02:00
alperozturk e764711db3 inject AudioFocusRequest.Builder and fix lint
Signed-off-by: alperozturk <[email protected]>
2025-06-16 11:11:34 +02:00
tobiasKaminsky be289bae0a rename mipmap folder
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-16 11:11:34 +02:00
alperozturk 6ca71e4d17 remove unused imports
Signed-off-by: alperozturk <[email protected]>
2025-06-16 11:11:34 +02:00
alperozturk bae6ce8fef AudioFocusManagerTests are failing, reverting logic...
Signed-off-by: alperozturk <[email protected]>
2025-06-16 11:11:34 +02:00
alperozturk be786fb85d drop min sup versions
Signed-off-by: alperozturk <[email protected]>
2025-06-16 11:11:34 +02:00
Tobias Kaminsky c6c0ba70b2 Merge pull request #14926 from nextcloud/re-enablePermission
Re-enable permission
2025-06-16 11:07:22 +02:00
tobiasKaminsky c95b22b5c7 update screenshot
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-16 08:33:17 +02:00
Nextcloud bot 122b7f2947 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-16 03:00:55 +00:00
Nextcloud bot 90bd9ee762 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-15 02:59:23 +00:00
Alex Knop ba49f8a615 fix explicit types
Signed-off-by: Alex Knop <[email protected]>
2025-06-14 10:49:06 -04:00
Nextcloud bot 30d972acc3 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-14 03:02:45 +00:00
tobiasKaminsky 10dee2e978 store upload timestamp directly after upload
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-13 08:22:16 +02:00
Nextcloud bot e82ac30baa fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-13 03:00:22 +00:00
Alper Öztürk 50eb848926 Merge pull request #14990 from nextcloud/renovate/androidcommonlibraryversion
fix(deps): update dependency com.github.nextcloud.android-common:ui to v0.26.0
2025-06-12 11:09:44 +02:00
Andy Scherzinger fa83d67bfa Merge pull request #14583 from nextcloud/tryResources
Use of Try-With-Resources
2025-06-12 11:02:25 +02:00
Tobias Kaminsky c532578417 Merge pull request #14928 from nextcloud/bugfix/accessing-GetFilesDownloadLimitRemoteOperation-result
BugFix - Accessing GetFilesDownloadLimitRemoteOperation Result Data After Operation Failed
2025-06-12 09:36:02 +02:00
Tobias Kaminsky 11bc0daf57 Merge pull request #14929 from nextcloud/bugfix/show-more-buttons-if-multi-select-not-active
BugFix - Show more buttons if multi select not active
2025-06-12 09:32:03 +02:00
Tobias Kaminsky 8ce96cb18c Merge pull request #14959 from nextcloud/simplify-sync-broadcast-receiver
Simplify SyncBroadcastReceiver
2025-06-12 09:28:15 +02:00
Andy Scherzinger 6098ad376c Merge pull request #14992 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-06-12 07:29:15 +02:00
nextcloud-android-bot 3f9a58741a 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-06-12 03:14:05 +00:00
Nextcloud bot 9fec9083ae fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-12 03:08:20 +00:00
Andy Scherzinger 11bd70f078 Merge pull request #14885 from nextcloud/renovate/androidx.lifecycle-lifecycle-runtime-ktx-2.x
fix(deps): update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.9.1
2025-06-11 23:14:54 +02:00
Andy Scherzinger 0b41e7dba7 Merge pull request #14887 from nextcloud/renovate/androidx.lifecycle-lifecycle-viewmodel-ktx-2.x
fix(deps): update dependency androidx.lifecycle:lifecycle-viewmodel-ktx to v2.9.1
2025-06-11 23:11:31 +02:00
Andy Scherzinger 926a81e091 Merge pull request #14911 from nextcloud/renovate/androidx.fragment-fragment-ktx-1.x
fix(deps): update dependency androidx.fragment:fragment-ktx to v1.8.8
2025-06-11 23:10:18 +02:00
Andy Scherzinger f742677a55 Merge pull request #14825 from nextcloud/renovate/workruntime
fix(deps): update workruntime to v2.10.1
2025-06-11 23:03:34 +02:00
renovate[bot] d2a96993e6 fix(deps): update dependency androidx.fragment:fragment-ktx to v1.8.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 20:49:50 +00:00
renovate[bot] 1f91f12f74 fix(deps): update dependency androidx.lifecycle:lifecycle-viewmodel-ktx to v2.9.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 20:42:37 +00:00
Andy Scherzinger 39f7adfe2e Merge pull request #14824 from nextcloud/renovate/androidx.exifinterface-exifinterface-1.x
fix(deps): update dependency androidx.exifinterface:exifinterface to v1.4.1
2025-06-11 22:27:29 +02:00
renovate[bot] 525d59b231 fix(deps): update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.9.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 20:19:05 +00:00
Andy Scherzinger c218be60df Merge pull request #14884 from nextcloud/renovate/composebom
fix(deps): update dependency androidx.compose:compose-bom to v2025.06.00
2025-06-11 21:56:54 +02:00
renovate[bot] d873d8824f fix(deps): update dependency androidx.compose:compose-bom to v2025.06.00
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 18:33:36 +00:00
renovate[bot] 4b722e4347 fix(deps): update workruntime to v2.10.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 18:30:59 +00:00
renovate[bot] ba26f0d458 fix(deps): update dependency androidx.exifinterface:exifinterface to v1.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 18:28:48 +00:00
Andy Scherzinger 367bbae774 Merge pull request #14792 from nextcloud/renovate/media3
fix(deps): update media3 to v1.7.1
2025-06-11 20:03:01 +02:00
Andy Scherzinger 81749f25e9 Merge pull request #14886 from nextcloud/renovate/androidx.lifecycle-lifecycle-service-2.x
fix(deps): update dependency androidx.lifecycle:lifecycle-service to v2.9.1
2025-06-11 20:00:35 +02:00
Andy Scherzinger 720bda3945 Merge pull request #14988 from nextcloud/renovate/org.bouncycastle-bcpkix-jdk18on-1.x
fix(deps): update dependency org.bouncycastle:bcpkix-jdk18on to v1.81
2025-06-11 19:58:44 +02:00
Andy Scherzinger 9178506cc5 Merge pull request #14914 from nextcloud/renovate/org.json-json-20250517.x
fix(deps): update dependency org.json:json to v20250517
2025-06-11 19:58:17 +02:00
renovate[bot] 4636a58be7 fix(deps): update dependency org.bouncycastle:bcpkix-jdk18on to v1.81
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 15:48:58 +00:00
Andy Scherzinger 593164e565 Merge pull request #14958 from nextcloud/remove-unused-function-and-variable-in-oc-file-list-adapter
Remove unused functions and variables in OCFileListAdapter
2025-06-11 17:33:37 +02:00
Andy Scherzinger ba41112039 Merge pull request #14983 from nextcloud/renovate/ubuntu-noble
chore(deps): update ubuntu:noble docker digest to b59d215
2025-06-11 17:24:44 +02:00
Andy Scherzinger eb0f49e662 Merge pull request #14984 from nextcloud/renovate/appcompatversion
fix(deps): update dependency androidx.appcompat:appcompat to v1.7.1
2025-06-11 17:24:00 +02:00
renovate[bot] af757969c3 fix(deps): update dependency androidx.appcompat:appcompat to v1.7.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 14:35:34 +00:00
Andy Scherzinger d835069dde Merge pull request #14985 from nextcloud/renovate/com.mebigfatguy.fb-contrib-fb-contrib-7.x
fix(deps): update dependency com.mebigfatguy.fb-contrib:fb-contrib to v7.6.10
2025-06-11 15:21:46 +02:00
Andy Scherzinger fc866e9ce8 Merge pull request #14986 from nextcloud/renovate/fastlane-2.x-lockfile
chore(deps): update dependency fastlane to v2.228.0
2025-06-11 15:20:58 +02:00
renovate[bot] 05bb8a21a2 fix(deps): update dependency com.github.nextcloud.android-common:ui to v0.26.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 12:38:28 +00:00
renovate[bot] 1288856c22 chore(deps): update dependency fastlane to v2.228.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 09:12:45 +00:00
renovate[bot] 388444c59d fix(deps): update dependency com.mebigfatguy.fb-contrib:fb-contrib to v7.6.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 09:12:21 +00:00
renovate[bot] d0653ca333 chore(deps): update ubuntu:noble docker digest to b59d215
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-11 09:03:15 +00:00
alperozturk dd2abe448e fix
Signed-off-by: alperozturk <[email protected]>
2025-06-11 09:44:01 +02:00
Alper Öztürk 507e694405 Merge pull request #14729 from nextcloud/feature/add-share-permissions
Feature - Add Custom Share Permissions
2025-06-11 09:27:06 +02:00
Nextcloud bot 419a14f1eb fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-11 03:03:27 +00:00
alperozturk 3d2feb283b fix tests
Signed-off-by: alperozturk <[email protected]>
2025-06-10 14:50:03 +02:00
alperozturk 6e5ade0e53 update lib
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:32 +02:00
alperozturk 49838e1467 solve git conflicts
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:32 +02:00
alperozturk 70ea4b3a33 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:32 +02:00
alperozturk 011f098b11 fix ShareProcessStep check
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:31 +02:00
alperozturk 2354f6568b fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:31 +02:00
alperozturk ba5ce544ca fix customPermissionLayout select logic
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:31 +02:00
alperozturk bab83db306 extract set downloadlimit
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:31 +02:00
alperozturk e02c6947f1 fix custom permission selection
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:31 +02:00
alperozturk e937ec7f60 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:31 +02:00
alperozturk 87580541be better debug
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:31 +02:00
alperozturk 7f70a9aea9 better debug
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:30 +02:00
alperozturk c0a4c83d56 better debug
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:30 +02:00
alperozturk c8e5634a50 add download attribute for create share
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:30 +02:00
alperozturk 469c558fe5 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:30 +02:00
alperozturk da31ece7a8 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:30 +02:00
alperozturk 4a95453688 fix usage of defaultPermissions
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:30 +02:00
alperozturk a5c60e7752 fix usage of defaultPermissions
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:30 +02:00
alperozturk 86e9aea4c9 add SharePermissionManagerTest
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:29 +02:00
alperozturk 2744eaac1e refactor SharePermissionManager
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:29 +02:00
alperozturk 01f5f2ff1c remove ShareMenuHelper
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:29 +02:00
alperozturk 2917435fb6 extract setUserImage
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:29 +02:00
alperozturk f196dda20b for empty user name use default user icon
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:29 +02:00
alperozturk 8cfbd27078 make background color blue for link shares
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:29 +02:00
alperozturk b5aee03178 fix show all and show less text visibility for external sharee list adapter
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:29 +02:00
alperozturk 29fb583059 fix Share link naming
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:28 +02:00
alperozturk fcbd3da7e9 prevent shared file, shared back
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:28 +02:00
alperozturk 2687e38b91 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:28 +02:00
alperozturk 7339c3769f fix merge conflict
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:28 +02:00
tobiasKaminsky 638703bf77 update lib
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-10 10:35:28 +02:00
alperozturk a0ad2e0c6a fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:28 +02:00
alperozturk a5839a2249 add error checks
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:28 +02:00
alperozturk 667168334e use single source of truth for sub-title of the external and internal share and quick permissions
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:27 +02:00
alperozturk e4a2fe56c4 fix isSecureFileDrop condition
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:27 +02:00
alperozturk 1e670830ea fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:27 +02:00
alperozturk 0c59872a9c share common logic for canSetFileRequest
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:27 +02:00
alperozturk a86f344685 correct view order
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:27 +02:00
alperozturk 06eee02dc0 show isSecureFileDrop text if encrypted
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:27 +02:00
alperozturk 340e613fbb check next button availability
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk 90a46e631d better function naming
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk 088fa83d79 better function naming
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk a7aa84e152 fix tests
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk 12acf3b4b8 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk 268ca8d458 better function naming
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk ef50fcaba8 mergeDistinctByToken
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk 3aba7bd452 show fail message only for download limit and check canSetDownloadLimit before updating
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:26 +02:00
alperozturk 474512f395 add missing ShareeListAdapter for unShare
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:25 +02:00
alperozturk 17b3293bba fix unshare
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:25 +02:00
alperozturk 7a75b75d4c check hasFileRequestPermission
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:25 +02:00
alperozturk f284465b56 add hasFileRequestPermission
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:25 +02:00
alperozturk 0e060d89a3 update library
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:25 +02:00
alperozturk cf59bc865c solve git conflicts
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:25 +02:00
alperozturk d9a4f06c23 fix update
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:24 +02:00
alperozturk 434a8adbbb remove redundant code
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:24 +02:00
alperozturk 48a893b52e remove redundant code
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:24 +02:00
alperozturk e9b5c6a764 use quick permission type
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:24 +02:00
alperozturk 26c0902bb5 use quick permission type
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:24 +02:00
alperozturk 5ff8996fc7 set download limit for "Share link"
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:24 +02:00
alperozturk 61450a3a73 align icons with web and iOS client
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:24 +02:00
alperozturk 056316a6f3 align translations with web and iOS client
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:23 +02:00
alperozturk 13260791e8 enable read checkbox for updateViewForLinkShare and folder
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:23 +02:00
alperozturk 5d7e848d85 do not show allow download and sync for public share
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:23 +02:00
alperozturk 241dfbcd02 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:23 +02:00
alperozturk a2b2133acf fix logic
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:23 +02:00
alperozturk a9fcb1e409 simplify
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:23 +02:00
alperozturk 926fcc09a7 add share attribute field
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:23 +02:00
alperozturk 0c577d2df1 add share attribute field
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:22 +02:00
alperozturk 8d87a8e0ef add shareAllowDownloadAndSyncCheckbox
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:22 +02:00
alperozturk 55f718fc5b simplify functions
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:22 +02:00
alperozturk ba46f56682 fix license
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:22 +02:00
alperozturk a883e646a0 fix check order
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:22 +02:00
alperozturk 16bb4ecc2f use default permission
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:22 +02:00
alperozturk c0e5b2ca70 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:22 +02:00
alperozturk f626837734 fix initial permission
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:21 +02:00
alperozturk 85f8d2763f fix togglePermission
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:21 +02:00
alperozturk b94504630f remove unnecessary allow reshare checkbox
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:21 +02:00
alperozturk 19fe4f550c clearer function name
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:21 +02:00
alperozturk 53dc81d920 add setup view region
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:21 +02:00
alperozturk 8460c90350 create share with one click
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:21 +02:00
alperozturk a18a7b9bd3 reduce lint
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:21 +02:00
alperozturk 5f85f840e8 fix allow re-share logic
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:20 +02:00
alperozturk 799ed48e0d fix radio button setOnCheckedChangeListener logic
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:20 +02:00
alperozturk 5d59e1e630 remove unused character
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:20 +02:00
alperozturk a320b36da0 fix radio button isChecked logic
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:20 +02:00
alperozturk 49fd471058 fix onCustomPermissionSelected
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:20 +02:00
alperozturk 63d6ae3f24 fix order
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:20 +02:00
alperozturk c24a5b5279 fix order
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:20 +02:00
alperozturk 0483484cf4 add custom permissions to bottom sheet
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:19 +02:00
alperozturk 76d575bcbc add custom permissions to bottom sheet
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:19 +02:00
alperozturk ae6c924936 add custom permissions to bottom sheet
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:19 +02:00
alperozturk 1999d92102 fix permissionFlag usage for QuickPermissionModel
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:19 +02:00
alperozturk 3fd40ea17b add new permissions to the quick sharing bottom sheet
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:19 +02:00
alperozturk 774e90bc50 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:19 +02:00
alperozturk f87a72cd88 fix setCheckboxStates
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:19 +02:00
alperozturk 126f40fcc3 fix setCheckboxStates
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:18 +02:00
alperozturk 8d29e08c14 add SharePermissionManager
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:18 +02:00
alperozturk b553211b26 fix setUserPermission
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:18 +02:00
alperozturk dd99814f72 fix failing tests
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:18 +02:00
alperozturk b32fdb2372 revert changes
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:18 +02:00
alperozturk 782294e1c3 grayed out read
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:18 +02:00
alperozturk ec85a54f07 add advanced settings back
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:17 +02:00
alperozturk 8281cd73c4 revert changes
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:17 +02:00
alperozturk 3e8b9494d6 add missing test parts
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:17 +02:00
alperozturk 8c3f7d4a3f fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:17 +02:00
alperozturk ccfcf1c6c4 use share.permission
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:17 +02:00
alperozturk 2c69b2214f add custom permission radio button
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:17 +02:00
alperozturk 1a7657e715 fix logic and add TODOs
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:16 +02:00
alperozturk b0f8bc2793 add setOnCheckedChangeListeners
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:16 +02:00
alperozturk e606b8f70a add setCheckboxStates
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:16 +02:00
alperozturk 9011cc303a add new checkboxes
Signed-off-by: alperozturk <[email protected]>
2025-06-10 10:35:16 +02:00
Nextcloud bot 40931f45c6 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-10 03:01:34 +00:00
Andy Scherzinger 9d31a161cb Merge pull request #14963 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-06-07 08:12:07 +02:00
nextcloud-android-bot b39ce07d55 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-06-07 03:11:22 +00:00
Nextcloud bot 11784ea87c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-07 02:59:23 +00:00
renovate[bot] 3b4f529221 fix(deps): update dependency androidx.lifecycle:lifecycle-service to v2.9.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-06 21:18:03 +00:00
Andy Scherzinger 27c6b6b1ed Merge pull request #14836 from nextcloud/renovate/gradle-8.x
chore(deps): update dependency gradle to v8.14.2
2025-06-06 23:08:23 +02:00
renovate[bot] 3bb250ff53 chore(deps): update dependency gradle to v8.14.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-06 20:43:49 +00:00
alperozturk 2e7ac673c2 VisibleForTesting
Signed-off-by: alperozturk <[email protected]>
2025-06-06 14:35:36 +08:00
alperozturk e1ac1b0e0c VisibleForTesting
Signed-off-by: alperozturk <[email protected]>
2025-06-06 14:33:01 +08:00
alperozturk efd718f02a dont use raw parameter
Signed-off-by: alperozturk <[email protected]>
2025-06-06 14:29:36 +08:00
alperozturk f1d5e631c5 simplify
Signed-off-by: alperozturk <[email protected]>
2025-06-06 14:18:17 +08:00
alperozturk 67fde1b2da simplify
Signed-off-by: alperozturk <[email protected]>
2025-06-06 14:01:54 +08:00
alperozturk 6f3c5f268c remove unused func and variables
Signed-off-by: alperozturk <[email protected]>
2025-06-06 13:33:12 +08:00
alperozturk a828b1568f fix
Signed-off-by: alperozturk <[email protected]>
2025-06-06 12:11:48 +08:00
Nextcloud bot 995798e225 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-06 03:08:12 +00:00
alperozturk 93d249cd32 do not use common adapter causing broken item click
Signed-off-by: alperozturk <[email protected]>
2025-06-05 19:45:46 +08:00
alperozturk ed62b0ae2d do not use common adapter causing broken item click
Signed-off-by: alperozturk <[email protected]>
2025-06-05 19:44:41 +08:00
alperozturk 5e191eb3bc hide checkbox in folderpickeractivity
Signed-off-by: alperozturk <[email protected]>
2025-06-05 19:03:36 +08:00
alperozturk 8d8ae28bcd hide checkbox in folderpickeractivity
Signed-off-by: alperozturk <[email protected]>
2025-06-05 19:03:19 +08:00
alperozturk 45c97819ff npe checks
Signed-off-by: alperozturk <[email protected]>
2025-06-05 17:03:25 +08:00
alperozturk d51608096e exit from selection mode when navigation between screen
Signed-off-by: alperozturk <[email protected]>
2025-06-05 15:26:22 +08:00
alperozturk 23617e050c fixes
Signed-off-by: alperozturk <[email protected]>
2025-06-05 14:39:34 +08:00
alperozturk bea095eb83 use FolderPickerActivity
Signed-off-by: alperozturk <[email protected]>
2025-06-05 14:39:34 +08:00
alperozturk 5f49a0d265 simplify
Signed-off-by: alperozturk <[email protected]>
2025-06-05 14:39:34 +08:00
alperozturk 4fc67a349d revert test changes
Signed-off-by: alperozturk <[email protected]>
2025-06-05 14:39:34 +08:00
alperozturk c476b69bf4 simplify logic and add missing checks
Signed-off-by: alperozturk <[email protected]>
2025-06-05 14:39:34 +08:00
alperozturk 533e4650a7 fix
Signed-off-by: alperozturk <[email protected]>
2025-06-05 14:39:34 +08:00
Nextcloud bot b7c6792176 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-05 03:03:33 +00:00
Nextcloud bot 6daabb0617 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-04 03:02:20 +00:00
Alper Öztürk 51cbb470a6 Merge pull request #14939 from nextcloud/UnusedAssignment
Identify and remove unused assignments
2025-06-03 17:36:10 +08:00
Alex Knop dcc269e1e9 updated suggestions for unused assignments
Signed-off-by: Alex Knop <[email protected]>
2025-06-03 16:17:05 +08:00
Tobias Kaminsky 64707de4c3 Merge pull request #14953 from nextcloud/migration
Fail on missing migration
2025-06-03 07:20:19 +02:00
Tobias Kaminsky 111a87a45f Merge pull request #14951 from nextcloud/bugfix/add-missing-auto-migration
BugFix - Add missing db migration
2025-06-03 07:16:31 +02:00
tobiasKaminsky 62d6fcc80d Fail on missing migration
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-03 07:01:35 +02:00
alperozturk 0a163a90fb add missing db migration
Signed-off-by: alperozturk <[email protected]>
2025-06-03 12:24:57 +08:00
Alper Öztürk ab597740e2 Merge pull request #14940 from nextcloud/update-library-2025-06-01
Update library to 2025-06-01
2025-06-02 18:53:41 +08:00
Tobias Kaminsky 0c9c6aa7b1 Merge pull request #14936 from nextcloud/bugfix/remove-old-thumbnail-if-local-file-picked
BugFix - Thumbnail not updating when replacing remote file with new local file
2025-06-02 11:41:12 +02:00
tobiasKaminsky 216e4571a6 Merge remote-tracking branch 'origin/update-library-2025-06-01' into update-library-2025-06-01 2025-06-02 11:17:05 +02:00
Tobias Kaminsky b63abab75c Update library to 2025-06-01
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-02 11:16:53 +02:00
tobiasKaminsky 29fc6fecbb Activity/Trashbin: Show correct info if server not reachable
Signed-off-by: tobiasKaminsky <[email protected]>
2025-06-02 09:19:54 +02:00
Nextcloud bot d8a254f642 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-06-01 02:59:35 +00:00
Francisco Torres cab8d0ab7c fix: app crashes if local folder is null
Signed-off-by: Francisco Torres <[email protected]>
2025-05-31 19:31:58 -06:00
Tobias Kaminsky 5b4be6aee3 Update library to 2025-06-01
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-06-01 00:00:14 +02:00
Andy Scherzinger b77d16f74d Merge pull request #14937 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-05-31 09:06:20 +02:00
nextcloud-android-bot 3ab96d20eb 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-05-31 03:08:52 +00:00
Nextcloud bot 9eca1c5835 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-31 03:00:20 +00:00
Alex Knop e6f38a9704 use TryResources
Signed-off-by: Alex Knop <[email protected]>
2025-05-30 16:55:46 -04:00
alperozturk beda9d6a2e fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-05-30 19:53:28 +08:00
alperozturk 49e6562100 better comment
Signed-off-by: alperozturk <[email protected]>
2025-05-30 19:43:41 +08:00
alperozturk ba97480c26 fix
Signed-off-by: alperozturk <[email protected]>
2025-05-30 19:38:23 +08:00
Andy Scherzinger f5ef210aa2 Merge pull request #14934 from nextcloud/renovate/spotbugsgradleplugin
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.13
2025-05-30 12:47:27 +02:00
renovate[bot] b1dbe773e3 fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.13
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-30 10:20:42 +00:00
Alper Öztürk 7faf8e73fb Merge pull request #14900 from nextcloud/decodeandscale
Decode and Scale Together
2025-05-30 16:32:24 +08:00
Alex Knop 7f73e6cf08 remove unused scaleBitmap function
Signed-off-by: Alex Knop <[email protected]>
2025-05-28 19:19:15 -04:00
Alex Knop 01c94f9ab7 decode and scale together
Signed-off-by: Alex Knop <[email protected]>
2025-05-28 19:18:56 -04:00
Tobias Kaminsky 295b37628e Merge pull request #14586 from nextcloud/ControlFlow
Fix control flow errors/warnings
2025-05-28 10:17:53 +02:00
Tobias Kaminsky 306d5f3450 Merge pull request #14733 from nextcloud/ImageTimeout
Fix Image Loading When Offline
2025-05-28 09:54:13 +02:00
Tobias Kaminsky 3aa3147b9b Merge pull request #14897 from nextcloud/initdiskcache
ThumbnailsCacheManager - AsyncTask to Executor
2025-05-28 09:51:27 +02:00
Alper Öztürk 3fd0ac7ccf Merge pull request #14819 from nextcloud/NullEncryptedObject
Add checks for DecryptedFolderMetadataFile object to see if actually encrypted
2025-05-28 13:57:07 +08:00
Alex Knop 2664cdfa1f checks to see if object is instance of encrypted file before running operation
Signed-off-by: Alex Knop <[email protected]>
2025-05-28 12:00:49 +08:00
Nextcloud bot 7b491b5d70 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-28 03:01:56 +00:00
Alex Knop 7445321551 clean up ThumbnailsCacheManager and change AsyncTask to Executor for InitDiskCacheTask. remove unused resouce
Signed-off-by: Alex Knop <[email protected]>
2025-05-27 17:46:28 -04:00
tobiasKaminsky 6c20677103 Re-enable permission
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-27 12:30:40 +02:00
Tobias Kaminsky cd25c6c064 Merge pull request #14582 from nextcloud/madeVoid
made functions void where their return values were never used
2025-05-27 12:25:41 +02:00
Nextcloud bot 431a464dd0 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-27 03:00:38 +00:00
knopalex 71a108ea6f fix offline images
Signed-off-by: knopalex <[email protected]>
2025-05-26 16:15:03 +02:00
Alex Knop f61eb4852f made functions void where using returned value
Signed-off-by: Alex Knop <[email protected]>
2025-05-26 15:13:01 +08:00
Alper Öztürk 9126258abb Merge pull request #14734 from nextcloud/OpenDocumentTimeout
Open Document Timeout
2025-05-26 15:01:27 +08:00
Tobias Kaminsky fab66dadb4 Merge pull request #14921 from nextcloud/update-library-2025-05-25
Update library to 2025-05-25
2025-05-26 07:59:29 +02:00
Alex Knop fe271dee50 fix when offline
Signed-off-by: Alex Knop <[email protected]>
2025-05-26 13:47:16 +08:00
Tobias Kaminsky 6010c43517 Update library to 2025-05-25
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-26 07:25:27 +02:00
Tobias Kaminsky d3ce74d682 Merge pull request #14901 from nextcloud/simpleSignup
Fix Simple signup
2025-05-23 13:07:26 +02:00
Andy Scherzinger 30be3765b9 Merge pull request #14909 from nextcloud/renovate/codecov-codecov-action-5.x
chore(deps): update codecov/codecov-action action to v5.4.3
2025-05-23 12:46:46 +02:00
Andy Scherzinger ed44787987 Merge pull request #14912 from nextcloud/renovate/gradle-actions-4.x
chore(deps): update gradle/actions action to v4.4.0
2025-05-23 12:46:23 +02:00
tobiasKaminsky 7026007f5a webview: handle back button
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-23 12:34:50 +02:00
Tobias Kaminsky 5867100910 Merge pull request #14880 from nextcloud/fixRemoveFiles
Fix remove files
2025-05-23 11:25:36 +02:00
Tobias Kaminsky db93e94ee3 Merge pull request #14902 from nextcloud/recommendedFilesCheckNullable
recommended files: prevent NPE
2025-05-23 09:35:50 +02:00
tobiasKaminsky 3d9a73d4d2 Restore webview for simple signup
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-23 09:17:50 +02:00
renovate[bot] cfe0dbc52b fix(deps): update dependency org.json:json to v20250517
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 06:52:09 +00:00
renovate[bot] f638e3cc9b chore(deps): update gradle/actions action to v4.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 06:49:11 +00:00
renovate[bot] 0714b8525e chore(deps): update codecov/codecov-action action to v5.4.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 06:39:22 +00:00
Andy Scherzinger 9729c0cbe1 Merge pull request #14835 from nextcloud/renovate/spotbugsgradleplugin
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.12
2025-05-22 08:16:59 +02:00
Nextcloud bot 47dafd002a fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-22 03:01:58 +00:00
renovate[bot] a4dc86766e fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-21 04:39:52 +00:00
Tobias Kaminsky 2af9f66401 Merge pull request #13310 from nextcloud/uploadTimestamp
persist upload timestamp
2025-05-20 12:19:24 +02:00
Tobias Kaminsky 73633caa1d Merge pull request #14703 from nextcloud/hide-info-box-in-preview-media-activity
Hide Info Box in PreviewMediaActivity
2025-05-20 12:18:24 +02:00
Nextcloud bot d3ec95ac0c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-20 03:05:05 +00:00
tobiasKaminsky 7954e92b43 recommended files: prevent NPE
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-19 15:54:53 +02:00
tobiasKaminsky 18c4e841d5 wip
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-19 14:51:35 +02:00
Tobias Kaminsky 8f7c50bf50 Merge pull request #14899 from nextcloud/update-library-2025-05-18
Update library to 2025-05-18
2025-05-19 07:16:18 +02:00
Nextcloud bot 0fde56ce94 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-19 03:05:55 +00:00
Nextcloud bot 48398d7e5d fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-18 03:03:42 +00:00
Alex Knop 045fdd7054 fix flow control errors and warnings
Signed-off-by: Alex Knop <[email protected]>
2025-05-17 20:26:25 -04:00
Tobias Kaminsky a2278920ea Update library to 2025-05-18
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-05-18 00:01:03 +02:00
Andy Scherzinger 8703714924 Merge pull request #14896 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-05-17 07:21:00 +02:00
nextcloud-android-bot d79bbd077f 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-05-17 03:05:14 +00:00
renovate[bot] 37652df5d5 fix(deps): update media3 to v1.7.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 20:30:53 +00:00
Nextcloud bot 88b3f7d14c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-15 03:05:57 +00:00
Nextcloud bot 3f58e08827 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-14 03:03:49 +00:00
Nextcloud bot 2a5478d13f fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-13 03:05:43 +00:00
Andy Scherzinger 0de490e174 Merge pull request #14878 from nextcloud/rakekniven-patch-2
chore(i18n): Adapted spelling of product name of DAVx⁵
2025-05-12 18:50:58 +02:00
Andy Scherzinger 6fe3330220 ci(test): Update screenshots
Signed-off-by: Andy Scherzinger <[email protected]>
2025-05-12 12:27:52 +02:00
rakekniven 6021061251 chore(i18n): Adapted spelling of product name of DAVx⁵
Reported at Transifex

Signed-off-by: rakekniven <[email protected]>
2025-05-12 12:16:48 +02:00
tobiasKaminsky e6d80d3602 Remove files
- fix: obey offline state when refresh
- fix: remove local files directly

Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-12 08:45:56 +02:00
Tobias Kaminsky 20809a45b3 Merge pull request #14775 from nextcloud/handle-downloaded-file-open-intent
Handle Downloaded File Open Intent
2025-05-12 08:17:58 +02:00
alperozturk a771d00528 hide info box in PreviewMediaActivity
Signed-off-by: alperozturk <[email protected]>
2025-05-12 08:08:26 +02:00
Tobias Kaminsky eca0d393ab Merge pull request #14877 from nextcloud/update-library-2025-05-11
Update library to 2025-05-11
2025-05-12 07:39:29 +02:00
tobiasKaminsky 4aaaef1f4b persist upload timestamp
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-12 07:38:28 +02:00
Tobias Kaminsky 193affb06f Update library to 2025-05-11
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-12 07:13:09 +02:00
Nextcloud bot d958b9be39 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-11 03:03:46 +00:00
Nextcloud bot 5e5654e127 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-10 03:05:58 +00:00
Nextcloud bot 50f32bb2f9 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-09 03:12:01 +00:00
Tobias Kaminsky f64c9850d4 Merge pull request #14875 from nextcloud/rakekniven-patch-2
fix(i18n): Adapted plural forms
2025-05-08 15:26:35 +02:00
Alper Öztürk 429e1cdac9 Merge pull request #14840 from nextcloud/fix/lint-result
Fix Lint Result
2025-05-08 12:48:48 +02:00
rakekniven 29a2458bf8 fix(i18n): Adapted plural forms
Signed-off-by: rakekniven <[email protected]>
2025-05-08 11:10:35 +02:00
Tobias Kaminsky aee23d0e5f Merge pull request #14872 from nextcloud/disableSharingBruteforce
Disable rate limit protection because the integration tests do trigg…
2025-05-08 10:10:02 +02:00
tobiasKaminsky 222d9cb17e Disable rate limit protection because the integration tests do trigger them
Signed-off-by: tobiasKaminsky <[email protected]>
2025-05-08 08:32:05 +02:00
Nextcloud bot 7d8b120190 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-08 03:11:12 +00:00
Andy Scherzinger f112bb0c20 Merge pull request #14870 from nextcloud/renovate/fastlane-2.x-lockfile
chore(deps): update dependency fastlane to v2.227.2
2025-05-07 19:16:42 +02:00
alperozturk 599463d895 check null parent file
Signed-off-by: alperozturk <[email protected]>
2025-05-07 15:31:51 +02:00
alperozturk 82f23ece2e fix lints
Signed-off-by: alperozturk <[email protected]>
2025-05-07 15:30:31 +02:00
Tobias Kaminsky 907fdc568c Merge pull request #14823 from nextcloud/handle-sample-bitmap-decoding-better
Handle Sample Bitmap Decoding Better
2025-05-07 10:32:25 +02:00
Tobias Kaminsky c0b0be1dc9 Merge pull request #14834 from nextcloud/warn-user-for-invalid-filename
Warn Users About Invalid Filenames During Download
2025-05-07 10:16:56 +02:00
Tobias Kaminsky 5682154ea9 Merge pull request #14828 from nextcloud/unusedImports
Remove unused imports
2025-05-07 09:36:57 +02:00
Nextcloud bot 3ebf3d25cd fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-07 03:04:14 +00:00
Andy Scherzinger 22e7d2322f Merge pull request #14869 from nextcloud/renovate/ubuntu-noble
chore(deps): update ubuntu:noble docker digest to 6015f66
2025-05-06 15:41:14 +02:00
renovate[bot] d7a12a18f2 chore(deps): update dependency fastlane to v2.227.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-06 10:20:39 +00:00
renovate[bot] 5e68215caa chore(deps): update ubuntu:noble docker digest to 6015f66
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-06 10:20:08 +00:00
Andy Scherzinger cc7fdaf5be Merge pull request #14868 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-05-06 08:17:08 +02:00
Andy Scherzinger 4c5dd70fe5 Merge branch 'master' into repo-sync/android-config/master 2025-05-06 08:17:04 +02:00
Nextcloud bot 919f2e6d73 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-06 03:07:49 +00:00
nextcloud-android-bot d3a35fbb2b 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-05-06 03:06:29 +00:00
Alex Knop d0a5d3d47a remove unused imports, keep static owncloud imports
Signed-off-by: Alex Knop <[email protected]>
2025-05-05 16:15:23 +02:00
Tobias Kaminsky 1298023217 Merge pull request #14859 from nextcloud/update-library-2025-05-04
Update library to 2025-05-04
2025-05-05 09:05:58 +02:00
Nextcloud bot be046d5890 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-05 03:33:43 +00:00
Tobias Kaminsky 493ef1ef1c Update library to 2025-05-04
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-05-04 00:01:10 +02:00
Nextcloud bot 7db26cb375 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-03 03:04:21 +00:00
Nextcloud bot 76f10efa47 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-02 03:04:28 +00:00
Nextcloud bot 29eccfc18c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-05-01 03:04:42 +00:00
alperozturk 7c0a4c64c7 add tests
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:52:45 +02:00
alperozturk 6868915e09 add reference for isValidExtFilenameChar
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:48:06 +02:00
alperozturk 0cfadeee4e fix
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:43:53 +02:00
alperozturk d4d2f139ad fix
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:43:53 +02:00
alperozturk 2278c744f8 add @Nullable
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:41:12 +02:00
alperozturk ed801c5fc3 better logs
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:40:12 +02:00
alperozturk a53c5a2e7d better logs
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:40:12 +02:00
alperozturk 61b54bc53e fix
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:40:12 +02:00
alperozturk ef4c6a4cae fix
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:40:12 +02:00
alperozturk 338549005a handle ImageDecoder better
Signed-off-by: alperozturk <[email protected]>
2025-04-30 13:40:12 +02:00
Tobias Kaminsky 653096a325 Merge pull request #14820 from nextcloud/SyncFolderErrors
Remove misleading error
2025-04-30 09:29:31 +02:00
Nextcloud bot e2802441a8 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-30 03:04:47 +00:00
Nextcloud bot 1ab88e97d4 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-29 03:05:00 +00:00
Alper Öztürk baea0c964c Merge pull request #14809 from nextcloud/bugfix/filter-oc-file-list-adapter-items-correctly
BugFix - Filter OCFileList
2025-04-28 16:45:15 +02:00
Tobias Kaminsky 47b73fad0b Merge pull request #14833 from nextcloud/addChineseH1Info
add chinese h1 info
2025-04-28 08:40:39 +02:00
tobiasKaminsky 2a85121d1f add chinese h1 info
Signed-off-by: tobiasKaminsky <[email protected]>
2025-04-28 08:40:13 +02:00
Tobias Kaminsky efd437c590 Merge pull request #14829 from nextcloud/performance
Fix Performance Warnings
2025-04-28 07:03:21 +02:00
Tobias Kaminsky aca1dfd740 Merge pull request #14831 from nextcloud/update-library-2025-04-27
Update library to 2025-04-27
2025-04-28 06:52:21 +02:00
Nextcloud bot 83331185ee fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-28 03:06:23 +00:00
Nextcloud bot 89a217e1be fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-27 03:02:57 +00:00
Tobias Kaminsky 2666da566c Update library to 2025-04-27
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-04-27 00:00:49 +02:00
Alex Knop 59de186cda fix performance issues
Signed-off-by: Alex Knop <[email protected]>
2025-04-25 14:04:10 -04:00
Alex Knop 385c424567 fix performance issues
Signed-off-by: Alex Knop <[email protected]>
2025-04-25 13:55:03 -04:00
Alex Knop 7a7b31072e fix performance issues
Signed-off-by: Alex Knop <[email protected]>
2025-04-25 13:50:30 -04:00
Alex Knop ecf46308dd remove misleading error
Signed-off-by: Alex Knop <[email protected]>
2025-04-25 11:45:57 -04:00
Alper Öztürk 41b13fac94 Merge pull request #14587 from nextcloud/Java14
Enhanced Switch Statements
2025-04-25 16:04:01 +02:00
Nextcloud bot 60906bbe7f fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-25 03:03:04 +00:00
alperozturk 6d772f73cd fix https://github.com/nextcloud/android/pull/14809#discussion_r2055775470
Signed-off-by: alperozturk <[email protected]>
2025-04-24 15:32:54 +02:00
Alper ÖztürkandTom 31a25c4c49 Update app/src/main/java/com/nextcloud/utils/extensions/OCFileExtensions.kt
Co-authored-by: Tom <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-04-24 15:13:41 +02:00
alperozturk 49831ced4a use kt extensions
Signed-off-by: alperozturk <[email protected]>
2025-04-24 15:13:41 +02:00
alperozturk 5c2ebfeb88 clear imports
Signed-off-by: alperozturk <[email protected]>
2025-04-24 15:13:41 +02:00
alperozturk bfdd27367e fix
Signed-off-by: alperozturk <[email protected]>
2025-04-24 15:13:41 +02:00
Andy Scherzinger 1d99acb3a8 Merge pull request #14789 from nextcloud/renovate/composebom
fix(deps): update dependency androidx.compose:compose-bom to v2025.04.01
2025-04-24 11:35:26 +02:00
renovate[bot] 2d76a342a1 fix(deps): update dependency androidx.compose:compose-bom to v2025.04.01
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-24 05:36:32 +00:00
Andy Scherzinger 2cb77b6605 Merge pull request #14790 from nextcloud/renovate/com.google.code.gson-gson-2.x
fix(deps): update dependency com.google.code.gson:g Fuson to v2.13.1
2025-04-24 07:26:57 +02:00
Andy Scherzinger 3fac028b0d Merge pull request #14817 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-04-24 07:26:10 +02:00
Nextcloud bot 1a492d5bdd fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-24 03:04:29 +00:00
nextcloud-android-bot 2c087fb605 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-04-24 03:04:14 +00:00
renovate[bot] 842168a750 fix(deps): update dependency com.google.code.gson:gson to v2.13.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-24 02:01:47 +00:00
Andy Scherzinger 755f6782b1 Merge pull request #14763 from nextcloud/renovate/com.google.firebase-firebase-messaging-24.x
fix(deps): update dependency com.google.firebase:firebase-messaging to v24.1.1
2025-04-23 19:04:29 +02:00
Andy Scherzinger 34c98750bb Merge pull request #14785 from nextcloud/renovate/ubuntu-noble
chore(deps): update ubuntu:noble docker digest to 1e622c5
2025-04-23 19:03:21 +02:00
Andy Scherzinger f9f7283521 Merge pull request #14815 from nextcloud/renovate/com.h3xstream.findsecbugs-findsecbugs-plugin-1.x
fix(deps): update dependency com.h3xstream.findsecbugs:findsecbugs-plugin to v1.14.0
2025-04-23 16:27:42 +02:00
renovate[bot] c7a00786e3 fix(deps): update dependency com.h3xstream.findsecbugs:findsecbugs-plugin to v1.14.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 14:47:02 +02:00
Andy Scherzinger c288e48b8f Merge pull request #14814 from nextcloud/renovate/spotbugsgradleplugin
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.9
2025-04-23 14:45:18 +02:00
Alper Öztürk 8e6332ccc8 Merge pull request #14799 from nextcloud/bugfix/offline-sync-work-npe
BugFix - OfflineSyncWork - NPE
2025-04-23 13:54:25 +02:00
Andy Scherzinger 2a989af1a1 ci(keys): Add trusted key
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-23 13:36:14 +02:00
Andy Scherzinger 7e045a57a7 ci(keys): remove ignored keys since they now ship via the key file
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-23 13:05:39 +02:00
Andy Scherzinger be15389cff ci(checksums): Add meta-data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-23 13:04:23 +02:00
renovate[bot] 82dde34b54 fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.9
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 13:00:40 +02:00
Andy Scherzinger 65b6a92f27 Merge pull request #14813 from nextcloud/renovate/androidpluginversion
fix(deps): update dependency com.android.tools.build:gradle to v8.9.2
2025-04-23 12:59:16 +02:00
Andy Scherzinger 3cb0433139 ci(checksums): Add meta-data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-23 11:26:34 +02:00
renovate[bot] d74d5cd53a fix(deps): update dependency com.android.tools.build:gradle to v8.9.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 10:31:02 +02:00
Alper Öztürk d77f207fed Merge pull request #14782 from nextcloud/finish-preview-image-activity-after-delete-image
Finish PreviewImageActivity After Image Deletion
2025-04-23 10:08:22 +02:00
Nextcloud bot 5c96c7bd49 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-23 03:03:44 +00:00
Andy Scherzinger 27d7c1461b Merge pull request #14812 from nextcloud/renovate/daggerversion
fix(deps): update daggerversion to v2.56.2
2025-04-22 23:13:34 +02:00
renovate[bot] 8e67967357 fix(deps): update daggerversion to v2.56.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-22 20:58:05 +00:00
Andy Scherzinger 7b0c4d232b Merge pull request #14811 from nextcloud/renovate/codecov-codecov-action-5.x
chore(deps): update codecov/codecov-action action to v5.4.2
2025-04-22 19:07:24 +02:00
Alex Knop 64b5224bf9 refactor fromValue function to reduce complexity
Signed-off-by: Alex Knop <[email protected]>
2025-04-22 10:50:58 -04:00
Alex Knop ac593715f5 enhanced switch
Signed-off-by: Alex Knop <[email protected]>
2025-04-22 10:50:58 -04:00
renovate[bot] f319c62a11 chore(deps): update codecov/codecov-action action to v5.4.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-22 13:56:55 +00:00
alperozturk 01f3088a2b remove unused resources
Signed-off-by: alperozturk <[email protected]>
2025-04-22 14:39:48 +02:00
alperozturk ded458eea4 use fileprovider only
Signed-off-by: alperozturk <[email protected]>
2025-04-22 14:38:21 +02:00
alperozturk f4bc710260 use fileprovider only
Signed-off-by: alperozturk <[email protected]>
2025-04-22 14:38:21 +02:00
alperozturk 453ff9a33e use fileprovider only
Signed-off-by: alperozturk <[email protected]>
2025-04-22 14:38:21 +02:00
alperozturk 8f933c3d67 If file already downloaded no need show error message because file is available
Signed-off-by: alperozturk <[email protected]>
2025-04-22 14:38:21 +02:00
Tobias Kaminsky dbb35513a8 Merge pull request #14807 from nextcloud/update-library-2025-04-20
Update library to 2025-04-20
2025-04-22 07:17:23 +02:00
Nextcloud bot 736b37106c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-22 03:04:58 +00:00
Nextcloud bot 0ac438f618 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-20 03:03:37 +00:00
Tobias Kaminsky 0f3c11a15c Update library to 2025-04-20
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-04-20 00:00:46 +02:00
Nextcloud bot 713acabbce fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-19 03:04:50 +00:00
Nextcloud bot af7094da96 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-18 03:04:14 +00:00
alperozturk a473535c36 fix npe
Signed-off-by: alperozturk <[email protected]>
2025-04-17 09:27:32 +02:00
Alper Öztürk 3e1aa9f468 Merge pull request #14716 from nextcloud/convert-extended-list-fragment-to-kt
Convert ExtendedListFragment to Kotlin
2025-04-17 09:26:57 +02:00
Nextcloud bot fe2a51437b fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-17 03:04:37 +00:00
Tobias Kaminsky 93991619ad Merge pull request #14726 from nextcloud/use-entry-set-convertMapToNVP
Optimize convertMapToNVP() by using entrySet()
2025-04-16 16:04:21 +02:00
alperozturk e5c6d1d0fe use entrySet
Signed-off-by: alperozturk <[email protected]>
2025-04-16 13:59:28 +02:00
Alper Öztürk 7a3cad8f3f Merge pull request #14722 from nextcloud/add-client-repository
Add Client Repositories
2025-04-16 13:15:56 +02:00
Tobias Kaminsky 7f08c4873b Merge pull request #14728 from nextcloud/export-progress-listener
Reuse ProgressListener
2025-04-16 13:04:21 +02:00
alperozturk 336ac40715 reduce dodgy code
Signed-off-by: alperozturk <[email protected]>
2025-04-16 12:42:36 +02:00
alperozturk ae61d2eef7 reduce spotbugs
Signed-off-by: alperozturk <[email protected]>
2025-04-16 12:42:36 +02:00
alperozturk ba5f5d2eb6 export ProgressListener
Signed-off-by: alperozturk <[email protected]>
2025-04-16 12:42:36 +02:00
alperozturk 98c5be9c72 check nullable fields
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk 5845ccb3e5 check nullable fields
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk 54948efa52 initialize variable early
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk 18b85d42a4 reduce spotbugs
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk 191100f976 fix ss test
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk eb532c206f fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk d56cc56d5f reduce spotbugs
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk cfcfca1953 convert to kt
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
alperozturk 91639528cf Rename .java to .kt
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:52:42 +02:00
Tobias Kaminsky 290afa770e Merge pull request #14783 from nextcloud/use-androidx-core-compat-classes-for-argument-passing
Use androidx.core Compat Classes For Argument Passing
2025-04-16 11:46:16 +02:00
alperozturk 905ce15da7 apply changes
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk de9ef2a9e8 apply changes
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk 7d96534548 apply changes
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk a7113cae97 use client repository
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk 963497a68b use base activity
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk a33664f6c0 remove to-do
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk dc2cfb83c0 remove to-do
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk 8e0a6bad9b add document
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
alperozturk 7e76394963 add repositories
Signed-off-by: alperozturk <[email protected]>
2025-04-16 11:38:30 +02:00
Tobias Kaminsky fcab4c1b96 Merge pull request #14692 from nextcloud/bugfix/gallery-unnecessary-rebind
BugFix - Prevent Unnecessary Gallery Binding
2025-04-16 11:30:52 +02:00
Tobias Kaminsky 0a5c52c9f9 Merge pull request #14797 from nextcloud/bugfix/anr-receive-external-files
BugFix - ANR ReceiveExternalFilesActivity. startSyncFolderOperation()
2025-04-16 11:25:09 +02:00
Nextcloud bot 3a8af6725d fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-16 03:06:27 +00:00
Nextcloud bot d9b2a50252 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-15 03:09:07 +00:00
alperozturk a797fd5e04 use androidx.core
Signed-off-by: alperozturk <[email protected]>
2025-04-14 10:06:37 +02:00
alperozturk f43b99f958 catch networking exception
Signed-off-by: alperozturk <[email protected]>
2025-04-14 09:49:58 +02:00
alperozturk 92d78b7c76 catch networking exception
Signed-off-by: alperozturk <[email protected]>
2025-04-14 09:48:58 +02:00
alperozturk 50ee1aad05 fix
Signed-off-by: alperozturk <[email protected]>
2025-04-14 09:40:26 +02:00
Nextcloud bot 85e01a4d52 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-14 03:05:12 +00:00
Andy Scherzinger 83c2459838 Merge pull request #14788 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.227.1
2025-04-13 21:37:47 +02:00
Andy Scherzinger ea9b599944 Merge pull request #14786 from nextcloud/renovate/actions-setup-java-4.x
Update actions/setup-java action to v4.7.1
2025-04-13 21:35:31 +02:00
renovate[bot] 1d0a35e8c3 Update dependency fastlane to v2.227.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-13 18:16:22 +00:00
renovate[bot] 3830b9ece3 Update actions/setup-java action to v4.7.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-13 18:08:54 +00:00
renovate[bot] a3d43c677e Update ubuntu:noble Docker digest to 1e622c5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-13 18:08:47 +00:00
renovate[bot] 82c31486c3 Update dependency com.google.firebase:firebase-messaging to v24.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-13 10:26:00 +00:00
Andy Scherzinger d29c9b5b97 Merge pull request #14776 from nextcloud/use-toml-file-for-libs-versions
Migrate to Version Catalog II
2025-04-13 11:53:30 +02:00
alperozturk 8fa2f0c98e use toml file
Signed-off-by: alperozturk <[email protected]>
2025-04-13 11:26:48 +02:00
Nextcloud bot f3340f4a49 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-13 03:05:50 +00:00
Nextcloud bot 45ef6c2908 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-12 03:07:48 +00:00
alperozturk 239ae3c63f finishPreviewImageActivity
Signed-off-by: alperozturk <[email protected]>
2025-04-11 16:43:34 +02:00
alperozturk 4f40387074 fix ss tests
Signed-off-by: alperozturk <[email protected]>
2025-04-11 10:17:32 +02:00
alperozturk a5938fc5ce fix ss tests
Signed-off-by: alperozturk <[email protected]>
2025-04-11 10:17:15 +02:00
alperozturk 319777f58d GalleryImageGenerationTask not recreating unnecessarily something thus no need do the check
Signed-off-by: alperozturk <[email protected]>
2025-04-11 10:09:31 +02:00
alperozturk 39c43e3c69 calculateHashCode
Signed-off-by: alperozturk <[email protected]>
2025-04-11 09:38:12 +02:00
alperozturk ae0e9beee0 fix tests
Signed-off-by: alperozturk <[email protected]>
2025-04-11 09:35:54 +02:00
alperozturk 69e8c31c8d fix git conflicts
Signed-off-by: alperozturk <[email protected]>
2025-04-11 09:35:54 +02:00
alperozturk 793d6f6ba7 add filesDeleted to the parsemedia
Signed-off-by: alperozturk <[email protected]>
2025-04-11 09:35:54 +02:00
alperozturk f64eca841c prevent unnecessary calls
Signed-off-by: alperozturk <[email protected]>
2025-04-11 09:35:54 +02:00
Alper Öztürk 302a4a2723 Merge pull request #14714 from nextcloud/fix-file-details-activities-require-context-npe
Fix - FileDetailActivitiesFragment requireContext() java.lang.IllegalStateException
2025-04-11 09:22:10 +02:00
Alper Öztürk b5c3663cbc Merge pull request #14727 from nextcloud/bugfix/use-long-for-last-given
BugFix - Use long type for lastGiven
2025-04-11 08:57:55 +02:00
Nextcloud bot f40732a8f8 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-11 03:06:54 +00:00
alperozturk 8f080471bc fix tests
Signed-off-by: alperozturk <[email protected]>
2025-04-10 16:09:23 +02:00
alperozturk 0f4202a927 use master lib hash
Signed-off-by: alperozturk <[email protected]>
2025-04-10 16:09:23 +02:00
alperozturk 14bed26ed7 fix git conflicts
Signed-off-by: alperozturk <[email protected]>
2025-04-10 16:09:23 +02:00
Andy Scherzinger 240c536282 Merge pull request #14780 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-04-10 09:10:34 +02:00
nextcloud-android-bot 54dc9c95c7 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-04-10 07:09:47 +00:00
Nextcloud bot 1a99da9b46 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-10 03:05:46 +00:00
alperozturk a1a553e587 fix
Signed-off-by: alperozturk <[email protected]>
2025-04-09 10:13:46 +02:00
Tobias Kaminsky 500b6741e0 Merge pull request #14721 from nextcloud/bugfix/e2ee-recommended-file-delete
BugFix - E2EE Recommended File Deletion
2025-04-09 10:12:07 +02:00
Tobias Kaminsky 99d7ddeec7 Merge pull request #14751 from nextcloud/bugfix/contract-import-worker-size-limit
BugFix - Contact Import Worker Size Limit
2025-04-09 10:05:18 +02:00
Nextcloud bot 92c4f49f0f Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-09 03:06:52 +00:00
Andy Scherzinger 369720b959 Merge pull request #14774 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-04-08 07:47:14 +02:00
Nextcloud bot 2dbf4a3492 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-08 03:06:39 +00:00
nextcloud-android-bot 9acaf8394c 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-04-08 02:58:11 +00:00
Nextcloud bot fb70e4c70b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-07 03:06:18 +00:00
Nextcloud bot 8af18b625f Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-06 03:16:35 +00:00
Nextcloud bot e9a24ea6f0 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-05 03:06:12 +00:00
Andy Scherzinger 864b934a53 Merge pull request #14761 from nextcloud/renovate/composebom
fix(deps): update dependency androidx.compose:compose-bom to v2025.03.01
2025-04-04 20:05:30 +02:00
Andy Scherzinger c7081d7cd4 Merge pull request #14767 from nextcloud/renovate/daggerversion
fix(deps): update daggerversion to v2.56.1
2025-04-04 20:05:05 +02:00
renovate[bot] 097d7920ec fix(deps): update daggerversion to v2.56.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 19:42:47 +02:00
Andy Scherzinger ada5b8ce6f Merge pull request #14764 from nextcloud/renovate/jacoco_versionu
fix(deps): update jacoco_version to v0.8.13
2025-04-04 19:42:03 +02:00
Andy Scherzinger 3c960c40ec Merge pull request #14765 from nextcloud/renovate/reactivecircus-android-emulator-runner-2.x
chore(deps): update reactivecircus/android-emulator-runner action to v2.34.0
2025-04-04 19:41:29 +02:00
renovate[bot] 8e39189686 chore(deps): update reactivecircus/android-emulator-runner action to v2.34.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 15:32:37 +00:00
renovate[bot] 4e408753f6 fix(deps): update jacoco_version to v0.8.13
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 15:32:32 +00:00
renovate[bot] 16495c7c31 fix(deps): update dependency androidx.compose:compose-bom to v2025.03.01
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 15:00:21 +00:00
Andy Scherzinger 42dc21c4ca Merge pull request #14754 from nextcloud/renovate/kotlin
chore(deps): update dependency kotlin to v2.1.20
2025-04-04 15:00:05 +02:00
Andy Scherzinger d5e9dc75d7 fix: Update linked dependicies for kotlin upgrade
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-04 14:31:57 +02:00
Andy Scherzinger cc65b510fc ci: Add alternative checksum
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-04 11:55:43 +02:00
alperozturk 92402fd273 do-not fail whole import process
Signed-off-by: alperozturk <[email protected]>
2025-04-04 11:16:43 +02:00
alperozturk f8bd6f6a72 fix tests
Signed-off-by: alperozturk <[email protected]>
2025-04-04 11:10:27 +02:00
alperozturk 07d9803bb2 fix Cannot format given Object as a Date
java.lang.IllegalArgumentException: Cannot format given Object as a Date

Signed-off-by: alperozturk <[email protected]>
2025-04-04 11:06:52 +02:00
renovate[bot] c5714ebe4c chore(deps): update dependency org.jetbrains.kotlin.plugin.compose to v2.1.20
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 10:27:53 +02:00
alperozturk 3470404996 fix NPE for ContactsAccount
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:58:46 +02:00
alperozturk 1720f9d3ed fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:05:44 +02:00
alperozturk ff99a6b8cc dont use string
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:04:42 +02:00
alperozturk 8cf26ad3ac use apache utils
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:04:42 +02:00
alperozturk e5e92ecdea use UTF_8
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:04:42 +02:00
alperozturk c53854d69c fix test
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:04:42 +02:00
alperozturk c24f2c82fd add log
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:04:42 +02:00
alperozturk 904f994c91 fix
Signed-off-by: alperozturk <[email protected]>
2025-04-04 09:04:42 +02:00
Andy Scherzinger 0cdbc004b3 Merge pull request #14404 from nextcloud/fixAutoUploadLines
remove 2 line max restriction
2025-04-04 07:17:46 +02:00
Nextcloud bot fa24ba66ce Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-04 03:05:30 +00:00
tobiasKaminsky dc4cfac4ee remove 2 line max restriction
Signed-off-by: tobiasKaminsky <[email protected]>
2025-04-03 22:06:31 +02:00
Andy Scherzinger 535a80464f Merge pull request #14755 from nextcloud/renovate/gradle-actions-4.x
chore(deps): update gradle/actions action to v4.3.1
2025-04-03 19:52:36 +02:00
renovate[bot] 1555c05546 chore(deps): update gradle/actions action to v4.3.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 17:39:34 +00:00
Andy Scherzinger 52cc5c42a4 Merge pull request #14746 from nextcloud/renovate/androidpluginversion
Update dependency com.android.tools.build:gradle to v8.9.1
2025-04-03 19:06:32 +02:00
Andy Scherzinger eb5305fbe5 ci: Update meta data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-03 18:34:48 +02:00
renovate[bot] 7872e48e39 Update dependency com.android.tools.build:gradle to v8.9.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 18:05:51 +02:00
Tobias Kaminsky bcc5faf7a5 Merge pull request #14695 from nextcloud/feature/use-default-sharing-permissions
Feature - Use default sharing permissions
2025-04-03 08:59:10 +02:00
Tobias Kaminsky 420d5727c7 Merge pull request #13609 from nextcloud/sortDrawerEntries
Re-sort drawer entries
2025-04-03 08:57:03 +02:00
tobiasKaminsky 878a26630b Re-sort drawer entries
Signed-off-by: tobiasKaminsky <[email protected]>
2025-04-03 07:57:31 +02:00
Nextcloud bot 9d6cf850df Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-03 03:04:54 +00:00
alperozturk e36a0d5a12 update android lib
Signed-off-by: alperozturk <[email protected]>
2025-04-02 16:07:32 +02:00
alperozturk e5905f5125 update android lib
Signed-off-by: alperozturk <[email protected]>
2025-04-02 16:04:21 +02:00
alperozturk 20810d4071 update lib
Signed-off-by: alperozturk <[email protected]>
2025-04-02 15:52:16 +02:00
alperozturk ac36c62d01 use default permission
Signed-off-by: alperozturk <[email protected]>
2025-04-02 15:52:16 +02:00
alperozturk 24defbc69b use default permission
Signed-off-by: alperozturk <[email protected]>
2025-04-02 15:52:16 +02:00
alperozturk a4dedfdc4f add PROPERTY_DEFAULT_PERMISSIONS
Signed-off-by: alperozturk <[email protected]>
2025-04-02 15:52:16 +02:00
Tobias Kaminsky 034a2ed3c0 Merge pull request #14713 from nextcloud/migrate-to-version-catalog
Migrate to Version Catalog
2025-04-02 15:14:33 +02:00
Tobias Kaminsky 91c95df6f5 Merge pull request #14675 from nextcloud/assistant-screen-ui-improvements
Assistant Screen UI Improvements
2025-04-02 14:58:41 +02:00
Tobias Kaminsky 4781e8a1ef Merge pull request #14704 from nextcloud/use-decrypted-path-for-e2ee-files-in-conflict-resolve-dialog
Use decrypted path in Conflict Resolve Dialog
2025-04-02 14:56:07 +02:00
Tobias Kaminsky f576b25452 Merge pull request #14628 from nextcloud/dont-use-raw-bitmap-for-thumbnails
Don't Use Raw Bitmaps for Thumbnails
2025-04-02 14:53:48 +02:00
Tobias Kaminsky 8b323a2899 Merge pull request #14547 from nextcloud/feature/check-auto-upload-sub-folder
Feature - Check Auto Upload Sub Folder
2025-04-02 14:52:31 +02:00
alperozturk 6d12355eed update ss
Signed-off-by: alperozturk <[email protected]>
2025-04-02 11:16:31 +02:00
alperozturk 0b24b99d73 dont thumbnail cache check during scroll
Signed-off-by: alperozturk <[email protected]>
2025-04-02 11:16:31 +02:00
alperozturk de479bce05 prevent unnecessary add logic
Signed-off-by: alperozturk <[email protected]>
2025-04-02 11:16:31 +02:00
alperozturk 97acb7e083 Use the KTX extension function Bitmap.scale
Signed-off-by: alperozturk <[email protected]>
2025-04-02 11:16:31 +02:00
alperozturk 2b1b5e63e2 fix insert logic. replace raw bitmaps on demand
Signed-off-by: alperozturk <[email protected]>
2025-04-02 11:16:31 +02:00
alperozturk a38a30ecc6 dont use raw bitmaps for thumbnails
Signed-off-by: alperozturk <[email protected]>
2025-04-02 11:16:31 +02:00
Nextcloud bot cbec4a14a0 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-04-02 03:05:11 +00:00
Andy Scherzinger dbb79c720d Merge pull request #14679 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.227.0
2025-04-01 17:17:38 +02:00
Andy Scherzinger a11f3fe8b1 Merge pull request #14744 from nextcloud/renovate/actions-cache-4.x
Update actions/cache action to v4.2.3
2025-04-01 17:16:17 +02:00
Andy Scherzinger 57fcdc93db Merge pull request #14745 from nextcloud/renovate/actions-upload-artifact-4.x
Update actions/upload-artifact action to v4.6.2
2025-04-01 17:15:34 +02:00
renovate[bot] 0d8ad42d13 Update actions/upload-artifact action to v4.6.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-01 13:34:18 +00:00
renovate[bot] 77c5e7acb8 Update actions/cache action to v4.2.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-01 13:34:12 +00:00
Tobias Kaminsky 92a7bcd133 Merge pull request #14740 from nextcloud/update-library-2025-03-30
Update library to 2025-03-30
2025-04-01 09:36:49 +02:00
alperozturk 30080b15ec fix logic
Signed-off-by: alperozturk <[email protected]>
2025-03-31 10:54:21 +02:00
alperozturk 41ddaff3e3 consider nested paths
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:26 +02:00
alperozturk f3c354844f use decrypted path
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:26 +02:00
alperozturk b6be668e18 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 188858a0ef remove test due to file existance check
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 8d8eec17f2 fixes
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 9f397f5552 check parents recursively to determine sub folder of sub folders
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 95f4770cce change positiveButtonTextId for overview page
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 291019a027 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 754c4a7cc7 add tint for title icon
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 8a507d9790 change title, title icon and positive button text
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 8b9a438d52 show alert dialog instead of snackbar
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk f1e59bfc57 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 7161742c2c rename imagebutton
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk aa69adfae0 inform user and remove auto delete
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk a862c149e5 add missing import
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk e82f8dc9ef add tests
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 66ad7f22db check isGivenLocalPathHasEnabledParent
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk d387442916 add documentations to the functions and use better function names
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk a5d2ca128b add documentations to the functions and use better function names
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk 81c6e09f22 add removeAutoUploadFromSubFoldersWithEnabledParent
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk fca8321cc4 use extension
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk f1da19eefd add getEnabledOrWithoutEnabledParent extension for List<SyncedFolderDisplayItem>
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
alperozturk ec5aa9ef17 use lifecycleScope
Signed-off-by: alperozturk <[email protected]>
2025-03-31 09:27:10 +02:00
Nextcloud bot 9cf510d58a Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-30 03:05:31 +00:00
Tobias Kaminsky cc74fc9b67 Update library to 2025-03-30
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-03-30 00:00:47 +01:00
Nextcloud bot 428325b5cf Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-29 03:06:22 +00:00
Nextcloud bot 6515a4c124 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-28 03:06:28 +00:00
Nextcloud bot 5f03cf4215 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-27 03:06:37 +00:00
Nextcloud bot 5cfcded65d Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-26 03:05:20 +00:00
Andy Scherzinger 9f51f98af1 Merge pull request #14723 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-03-25 13:34:56 +01:00
Nextcloud bot 0c295ef615 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-25 03:07:28 +00:00
nextcloud-android-bot b00144eaeb 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-03-25 02:57:13 +00:00
alperozturk 26e8901ed6 fix
Signed-off-by: alperozturk <[email protected]>
2025-03-24 15:35:17 +01:00
Nextcloud bot cc7d435d12 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-24 03:04:52 +00:00
Nextcloud bot 2324fd3852 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-23 03:04:30 +00:00
Nextcloud bot e40e3a54d0 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-22 03:03:58 +00:00
alperozturk 029250dac9 update license header
Signed-off-by: alperozturk <[email protected]>
2025-03-21 11:17:25 +01:00
alperozturk 7044156acd add license header
Signed-off-by: alperozturk <[email protected]>
2025-03-21 11:17:25 +01:00
alperozturk 1ac54f6b8f start migration
Signed-off-by: alperozturk <[email protected]>
2025-03-21 11:17:25 +01:00
Nextcloud bot 81fc364139 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-21 03:29:05 +00:00
Andy Scherzinger c2092dd414 Merge pull request #14712 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-03-20 10:24:28 +01:00
alperozturk cc9de71d7f reduce lint
Signed-off-by: alperozturk <[email protected]>
2025-03-20 10:15:57 +01:00
alperozturk 628878c7d8 update ss
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:09:54 +01:00
alperozturk 5680697618 change TitleDescriptionBox box color
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:04:42 +01:00
alperozturk 234eff3003 reduce lint
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:04:40 +01:00
alperozturk 4d4993b66a change empty text
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:03:54 +01:00
alperozturk d1a528aea8 change task view container color
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:03:54 +01:00
alperozturk c2f7f3c859 truncateWithEllipsis for input
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:03:54 +01:00
alperozturk dfa096be3f change TaskDetailBottomSheet UI
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:03:54 +01:00
alperozturk bc1d4c7d84 inform user, if task is empty
Signed-off-by: alperozturk <[email protected]>
2025-03-20 09:03:53 +01:00
Nextcloud bot b6a88070c9 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-20 03:08:52 +00:00
nextcloud-android-bot 63d51fd6ca 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-03-20 02:54:07 +00:00
Tobias Kaminsky 886b41b54c Merge pull request #14611 from nextcloud/feature/media-multi-select
Feature - Media Multi Select
2025-03-19 11:52:13 +01:00
Tobias Kaminsky 66eebaac88 Merge pull request #14674 from nextcloud/use-sentence-style-capitalization
Use sentence style capitalization
2025-03-19 11:51:42 +01:00
alperozturk e41b17c104 remove unused resource reduce lint
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:54:27 +01:00
alperozturk bedfb90148 use ktx extension
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:53:26 +01:00
alperozturk 3e6aa62fa3 reduce spotbugs
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk ddf8c9b47d fix uses instanceof on multiple types to arbitrate logic
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 0a7399e9d1 fix java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at com.owncloud.android.ui.fragment.OCFileListFragment.lambda$openActionsMenu$9(OCFileListFragment.java:702)
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk b6935347d3 separate refresh logics
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 16c1bf08c9 fix favorite event NPE
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk f950d61330 fix delete crash
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 78442d2df5 fix spotbugs
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 640a0b6fe3 fix selectAllFiles crash. GalleryAdapter select all action was causing crash without proper adapter choice
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 2b589077d7 this will be handled in different PR
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 458f94ea10 better naming
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk f2632ff276 scaleUntilLessThanEquals512KB
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk eae6eb8dda code cleanup setGalleryImage
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk a747de4beb code cleanup
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 14226a7fd3 enable multiselect
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:52:49 +01:00
alperozturk 0ae620ab2c update ss
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:23:15 +01:00
alperozturk 7052c18c3f remove white space
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:23:15 +01:00
Alper ÖztürkandJan C. Borchardt 5a15a0a136 Update app/src/main/res/values/strings.xml
Co-authored-by: Jan C. Borchardt <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-03-19 10:23:15 +01:00
Alper ÖztürkandJan C. Borchardt f5e5a087d1 Update app/src/main/res/values/strings.xml
Co-authored-by: Jan C. Borchardt <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-03-19 10:23:15 +01:00
Alper ÖztürkandJan C. Borchardt e963cf3ba9 Update app/src/main/res/values/strings.xml
Co-authored-by: Jan C. Borchardt <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-03-19 10:23:15 +01:00
alperozturk ea48e24365 use sentence style capitalization
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:23:15 +01:00
alperozturk 3eb9c718df use m3 title medium
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:23:15 +01:00
alperozturk 0b39c9a3ad use sentence-style capitalization
Signed-off-by: alperozturk <[email protected]>
2025-03-19 10:23:15 +01:00
Tobias Kaminsky 3b5d0beca9 Merge pull request #14671 from nextcloud/bugfix/e2ee-image-preview
BugFix - E2EE Image Preview
2025-03-19 10:14:23 +01:00
Tobias Kaminsky 3cb91115a1 Merge pull request #14670 from nextcloud/bugfix/use-previous-etag-for-shared-folder-if-exists
BugFix - Use Previous eTag for Shared Folder If Exists
2025-03-19 10:07:01 +01:00
Tobias Kaminsky d9ebd1f3c2 Merge pull request #14640 from nextcloud/bugfix/e2ee-rename-name-collision
BugFix - E2EE Rename NameCollision
2025-03-19 09:41:57 +01:00
Tobias Kaminsky 8ebd8e1eb1 Merge pull request #14646 from nextcloud/keepPreviewWhenDeletingFiles
showDirectoryWhenDeletionCompleted set to false?
2025-03-19 09:39:38 +01:00
Nextcloud bot ae0d4ed7ca Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-19 03:07:20 +00:00
Tobias Kaminsky 531e140135 Merge pull request #14659 from nextcloud/bugfix/auto-rename-create-new-folder
BugFix - Auto Rename Creating New folder
2025-03-18 13:02:39 +01:00
Tobias Kaminsky fec6658bac Merge pull request #14676 from nextcloud/bugfix/sync-tablayout-with-viewpager-file-detail-fragment
BugFix - Highlight Tab Layout When Scrolled
2025-03-18 13:02:18 +01:00
Tobias Kaminsky fda71cc261 Merge pull request #14658 from nextcloud/fix/ChooseStorageLocationDialogFragment-NoSuchElementException
Fix -  ChooseStorageLocationDialogFragment NoSuchElementException
2025-03-18 12:45:56 +01:00
alperozturk 480c768083 get only once capabilities
Signed-off-by: alperozturk <[email protected]>
2025-03-18 12:06:55 +01:00
alperozturk ae58979fe1 auto rename new folder name
Signed-off-by: alperozturk <[email protected]>
2025-03-18 12:06:55 +01:00
alperozturk 0c897f1ced fix
Signed-off-by: alperozturk <[email protected]>
2025-03-18 11:47:22 +01:00
Tobias Kaminsky 71ccf2d0a9 Merge pull request #14690 from nextcloud/update-library-2025-03-16
Update library to 2025-03-16
2025-03-18 10:40:31 +01:00
Tobias Kaminsky 3bdcf2b3af Merge pull request #14698 from nextcloud/pinActions
pin actions
2025-03-18 08:02:07 +01:00
tobiasKaminsky 22e9066b7a pin actions
Signed-off-by: tobiasKaminsky <[email protected]>
2025-03-18 07:39:26 +01:00
Andy Scherzinger 582d2ec11b Merge pull request #14696 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-03-17 19:57:29 +01:00
nextcloud-android-bot f1a2180f29 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-03-17 15:31:07 +00:00
alperozturk 04661f9574 Use prev etag if exists
Signed-off-by: alperozturk <[email protected]>
2025-03-17 14:27:32 +01:00
alperozturk bb538a02be if prev tag exist set etag
Signed-off-by: alperozturk <[email protected]>
2025-03-17 14:27:32 +01:00
alperozturk fdb9119024 fix android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Expected: main Calling: DefaultDispatcher-worker-2
Signed-off-by: alperozturk <[email protected]>
2025-03-17 14:27:32 +01:00
alperozturk 47b57ee369 dont set etag
Signed-off-by: alperozturk <[email protected]>
2025-03-17 14:27:32 +01:00
alperozturk 3629909ea0 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-03-17 14:17:36 +01:00
alperozturk 9a5704dec3 use find instead of first to prevent NoSuchElementException
Signed-off-by: alperozturk <[email protected]>
2025-03-17 14:17:36 +01:00
Tobias Kaminsky abc8787e59 Update library to 2025-03-16
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-03-16 00:00:57 +01:00
Nextcloud bot 64b41b5066 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-15 03:08:33 +00:00
renovate[bot] 16181deefe chore(deps): update dependency fastlane to v2.227.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-14 13:50:34 +00:00
alperozturk ad753247b1 check binding nullability
Signed-off-by: alperozturk <[email protected]>
2025-03-14 11:54:06 +01:00
alperozturk daa21016a2 clear import
Signed-off-by: alperozturk <[email protected]>
2025-03-14 11:49:27 +01:00
alperozturk 57a1a2469b highlight tab when scrolled
Signed-off-by: alperozturk <[email protected]>
2025-03-14 11:48:20 +01:00
Nextcloud bot e117934451 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-14 03:11:31 +00:00
alperozturk afd468b346 max line lenght fix
Signed-off-by: alperozturk <[email protected]>
2025-03-13 16:17:55 +01:00
alperozturk f7d5fcce85 add comment for FileDownloadFragment usage
Signed-off-by: alperozturk <[email protected]>
2025-03-13 16:16:44 +01:00
alperozturk a154153c40 fix
Signed-off-by: alperozturk <[email protected]>
2025-03-13 13:55:24 +01:00
Nextcloud bot 063148e9a0 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-12 03:07:08 +00:00
Tobias Kaminsky fd33f4fd1b Merge pull request #14663 from nextcloud/bugfix/authenticator-add-lifecycle-observer
BugFix - AuthenticatorActivity Add LifeCycle Observer For Both Condition
2025-03-11 10:13:26 +01:00
Tobias Kaminsky e75c0e7f6d Merge pull request #14589 from nextcloud/Java5
fix obsolete method plus force use of type
2025-03-11 10:12:21 +01:00
Tobias Kaminsky fa9f1fff79 Merge pull request #14590 from nextcloud/optionalFieldParameters2
Optional Tag Removal
2025-03-11 10:00:15 +01:00
alperozturk c6c6c7f9ae fix code formatting
Signed-off-by: alperozturk <[email protected]>
2025-03-11 09:39:59 +01:00
alperozturk 845db4320a do not rely on else condition of webViewLoginMethod
Signed-off-by: alperozturk <[email protected]>
2025-03-11 09:39:59 +01:00
Tobias Kaminsky e8659b0f4c Merge pull request #14544 from Minion3665/push-kzrrwrrwrxur
fix(richdocuments): Let new file load on creation
2025-03-11 09:32:51 +01:00
Nextcloud bot 4cca9f2da3 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-11 03:05:46 +00:00
Nextcloud bot b16d598e0b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-10 03:03:24 +00:00
Andy Scherzinger 6f0350c7d5 Merge pull request #14562 from nextcloud/DeprecatedGithubAction
Fix deprecated github action and simplify CI
2025-03-09 20:11:25 +01:00
Andy Scherzinger d24964c307 ci(assemble): Pin action with commit
Signed-off-by: Andy Scherzinger <[email protected]>
2025-03-09 19:54:53 +01:00
Hannes Achleitner 5656e6751c Fix deprecated github action and simplify CI
Signed-off-by: Hannes Achleitner <[email protected]>
2025-03-09 19:49:00 +01:00
Andy Scherzinger 086fcc945e Merge pull request #14561 from nextcloud/PrepareBuildKts
Prepare for build with *.kts files
2025-03-09 19:47:46 +01:00
Nextcloud bot e62ff3697d Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-09 13:24:17 +00:00
Andy Scherzinger f8d175af6d ci: raise commit range to hit lib change commit
Signed-off-by: Andy Scherzinger <[email protected]>
2025-03-09 13:55:42 +01:00
Hannes Achleitner 9cf3f151f6 Prepare for build with *.kts files
Signed-off-by: Hannes Achleitner <[email protected]>
2025-03-09 13:55:39 +01:00
Andy Scherzinger 30cd4d134c Merge pull request #14651 from nextcloud/update-library-2025-03-09
Update library to 2025-03-09
2025-03-09 13:55:06 +01:00
Andy Scherzinger 8419586774 ci: Add meta data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-03-09 11:49:04 +01:00
Tobias Kaminsky c9097806f7 Update library to 2025-03-09
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-03-09 00:03:04 +01:00
Andy Scherzinger ddc7f7463f Merge pull request #14641 from nextcloud/fix/noid/AGP890
Bump to AGP 8.9.0
2025-03-08 14:51:03 +01:00
Andy Scherzinger cbf3a28981 ci. Bump lint error score
Signed-off-by: Andy Scherzinger <[email protected]>
2025-03-08 11:23:59 +01:00
tobiasKaminsky 32ae47d6ac fix lint
Signed-off-by: tobiasKaminsky <[email protected]>
2025-03-08 11:22:58 +01:00
tobiasKaminsky 8e6bab2136 fix lint
Signed-off-by: tobiasKaminsky <[email protected]>
2025-03-08 11:22:57 +01:00
Andy Scherzinger 628428e185 fix(deps): Bump to AGP 8.9.0
Signed-off-by: Andy Scherzinger <[email protected]>
2025-03-08 11:22:53 +01:00
Andy Scherzinger 0ee8bb8f7c Merge pull request #14649 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-03-08 07:15:34 +01:00
Nextcloud bot 237c3a9bff Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-08 03:01:49 +00:00
nextcloud-android-bot 4eefc73cf9 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-03-08 02:27:09 +00:00
Alper Öztürk 3140eafa6e Merge pull request #14566 from nextcloud/bugfix/auto-rename-file-extension
BugFix - Auto Rename File Extension
2025-03-07 13:18:14 +01:00
tobiasKaminsky c994d34828 keep slideshow when deleting file
Signed-off-by: tobiasKaminsky <[email protected]>
2025-03-07 11:14:01 +01:00
Andy Scherzinger 95e793a7aa Merge pull request #14644 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.7
2025-03-07 09:27:38 +01:00
renovate[bot] 9b110d4227 Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-07 07:19:19 +00:00
Andy Scherzinger 75b6912fb9 Merge pull request #14643 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-03-07 08:11:01 +01:00
Nextcloud bot cb9cd7ad09 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-07 03:03:12 +00:00
nextcloud-android-bot cd984564db 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-03-07 02:53:24 +00:00
Andy Scherzinger 2f7c925d2c Merge pull request #14614 from nextcloud/renovate/mockkversion
Update mockkVersion to v1.13.17
2025-03-06 19:16:51 +01:00
alperozturk 2037190398 remove isFolder parameter
Signed-off-by: alperozturk <[email protected]>
2025-03-05 10:22:42 +01:00
alperozturk c51c488805 add e2ee test
Signed-off-by: alperozturk <[email protected]>
2025-03-05 10:22:17 +01:00
alperozturk 5539231094 add e2ee test
Signed-off-by: alperozturk <[email protected]>
2025-03-05 10:22:17 +01:00
alperozturk 4872774416 fix tests
Signed-off-by: alperozturk <[email protected]>
2025-03-05 10:22:17 +01:00
alperozturk 68fbb073f4 add DOT between file name and extension
Signed-off-by: alperozturk <[email protected]>
2025-03-05 10:22:17 +01:00
alperozturk 90091a12d7 use FilenameUtils, add tests and only change lowercaseFileExtension for files not folders
Signed-off-by: alperozturk <[email protected]>
2025-03-05 10:22:17 +01:00
Tobias Kaminsky 530a19e786 Merge pull request #14626 from nextcloud/simplify-e2ee-dialog-enter-passphrase-info-text
Improve E2EE dialog description for better clarity
2025-03-05 10:04:57 +01:00
Tobias Kaminsky 030838bc52 Merge pull request #14625 from nextcloud/remove-airplane-mode-check
Remove Airplane mode Check Due to Configurable Unmetered Wi-Fi
2025-03-05 10:03:01 +01:00
Tobias Kaminsky affaa2b5b6 Merge pull request #14565 from nextcloud/use-configure-system-bar-from-common-ui
Use Common Library For System Bars
2025-03-05 09:01:44 +01:00
Tobias Kaminsky e1cb118b85 Merge pull request #14528 from nextcloud/fix/resume-paused-media-fragment
Do not release video player on pause
2025-03-05 09:01:08 +01:00
Nextcloud bot 350568c1a0 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-05 03:03:56 +00:00
alperozturk 27cd781d08 use 0.25.0
Signed-off-by: alperozturk <[email protected]>
2025-03-04 17:32:27 +01:00
Alper Öztürk 2fa87b9963 Merge branch 'master' into use-configure-system-bar-from-common-ui 2025-03-04 16:29:44 +01:00
Alper Öztürk 396f6e516c Merge pull request #14630 from nextcloud/fix/ecosystem-app-switcher-spacing
Fix ecosystem app switcher spacing
2025-03-04 16:28:46 +01:00
alperozturk 0979998b91 update androidCommonLibraryVersion
Signed-off-by: alperozturk <[email protected]>
2025-03-04 15:30:19 +01:00
alperozturk 7d01ba4c08 use common ui
Signed-off-by: alperozturk <[email protected]>
2025-03-04 15:21:51 +01:00
alperozturk e814e47862 reduce lint
Signed-off-by: alperozturk <[email protected]>
2025-03-04 15:17:39 +01:00
alperozturk a687c6f79d change description
Signed-off-by: alperozturk <[email protected]>
2025-03-04 15:17:39 +01:00
ZetaTom 69f692e68e Update screenshot
Signed-off-by: ZetaTom <[email protected]>
2025-03-04 15:17:03 +01:00
ZetaTom 3f978decba Fix ecosystem app switcher spacing
Signed-off-by: ZetaTom <[email protected]>
2025-03-04 15:17:03 +01:00
Nextcloud bot d94fbcc61b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-04 03:05:50 +00:00
Andy Scherzinger ab3e40a524 Merge pull request #14623 from nextcloud/renovate/ksp-monorepo
Update plugin com.google.devtools.ksp to v2.1.10-1.0.31
2025-03-03 21:20:03 +01:00
alperozturk 4af1ff225e remove airplane mode check due to configurable unmetered Wi-Fi
Signed-off-by: alperozturk <[email protected]>
2025-03-03 15:03:56 +01:00
Alper Öztürk b306bc729b Merge pull request #13975 from nextcloud/improve-file-download-worker
Improve File Download Worker
2025-03-03 09:46:32 +01:00
renovate[bot] 5f9c369ccf Update plugin com.google.devtools.ksp to v2.1.10-1.0.31
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-03 08:42:44 +00:00
alperozturk 869c9916f5 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-03-03 08:35:09 +01:00
alperozturk 946528cc64 add comment
Signed-off-by: alperozturk <[email protected]>
2025-03-03 08:35:09 +01:00
alperozturk 9a3bddc3b5 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-03-03 08:35:09 +01:00
alperozturk ed89ed607c reduce lint, delete unused translations
Signed-off-by: alperozturk <[email protected]>
2025-03-03 08:35:09 +01:00
alperozturk 5ac07d984a If there is existing pending (uncompleted) work with the same unique name, do nothing.
Signed-off-by: alperozturk <[email protected]>
2025-03-03 08:35:09 +01:00
alperozturk 9fcf24d919 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-03-03 08:35:09 +01:00
alperozturk d67bff414d improve file download worker
Signed-off-by: alperozturk <[email protected]>
2025-03-03 08:35:09 +01:00
Tobias Kaminsky 9344f4506f Merge pull request #14619 from nextcloud/update-library-2025-03-02
Update library to 2025-03-02
2025-03-03 07:44:04 +01:00
Nextcloud bot 5238dbc960 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-03 03:04:10 +00:00
Nextcloud bot 71fefa41ee Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-02 03:03:29 +00:00
Tobias Kaminsky 87e0c284b7 Update library to 2025-03-02
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-03-02 00:04:52 +01:00
Nextcloud bot 6fec4f629b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-03-01 03:27:14 +00:00
renovate[bot] 651f372281 Update mockkVersion to v1.13.17
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 23:56:28 +00:00
Andy Scherzinger 176973cd27 Merge pull request #14613 from nextcloud/renovate/actions-cache-4.x
Update actions/cache action to v4.2.2
2025-02-28 00:51:05 +01:00
renovate[bot] d03939fb81 Update actions/cache action to v4.2.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 23:43:29 +00:00
Andy Scherzinger 37f2494397 Merge pull request #14610 from nextcloud/renovate/androidx.exifinterface-exifinterface-1.x
Update dependency androidx.exifinterface:exifinterface to v1.4.0
2025-02-28 00:42:39 +01:00
renovate[bot] c8a924a042 Update dependency androidx.exifinterface:exifinterface to v1.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 23:40:33 +01:00
Nextcloud bot 76cde56d85 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-27 22:39:17 +00:00
Nextcloud bot 042bb55d6a Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-27 16:14:17 +00:00
Andy Scherzinger f459b11144 Merge pull request #14607 from nextcloud/renovate/androidpluginversion
Update dependency com.android.tools.build:gradle to v8.8.2
2025-02-27 13:34:36 +01:00
Andy Scherzinger 35cc3451e4 Merge pull request #14606 from nextcloud/renovate/androidx.constraintlayout-constraintlayout-2.x
Update dependency androidx.constraintlayout:constraintlayout to v2.2.1
2025-02-27 13:33:54 +01:00
Andy Scherzinger 7f357c9d3e Merge pull request #14608 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.6
2025-02-27 13:33:04 +01:00
Andy Scherzinger c2ae28ca40 Merge pull request #14609 from nextcloud/renovate/codecov-codecov-action-5.x
Update codecov/codecov-action action to v5.4.0
2025-02-27 13:32:34 +01:00
renovate[bot] 4e110fcb90 Update codecov/codecov-action action to v5.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 07:21:56 +00:00
renovate[bot] 81a1200a5d Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 07:20:43 +00:00
renovate[bot] e199f582d4 Update dependency com.android.tools.build:gradle to v8.8.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 07:19:40 +00:00
renovate[bot] 4c77a41646 Update dependency androidx.constraintlayout:constraintlayout to v2.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 07:17:10 +00:00
Nextcloud bot dcdbc5c4e9 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-27 03:07:06 +00:00
Andy Scherzinger 0eac53a2cc Merge pull request #14602 from nextcloud/renovate/gradle-8.x
Update dependency gradle to v8.13
2025-02-26 11:00:38 +01:00
renovate[bot] 7b578d62da Update dependency gradle to v8.13
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 10:40:15 +01:00
Andy Scherzinger 89b92b4706 Merge pull request #14600 from nextcloud/renovate/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.x
Update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.23.8
2025-02-26 10:40:03 +01:00
Andy Scherzinger 7aedbad347 Merge pull request #14599 from nextcloud/renovate/actions-upload-artifact-4.x
Update actions/upload-artifact action to v4.6.1
2025-02-26 10:30:55 +01:00
Tobias Kaminsky 4e14d2cd38 Merge pull request #14556 from nextcloud/update-thumbnail-if-needed-after-conflict-resolve
Update Thumbnail After Resolving Conflict
2025-02-26 10:20:17 +01:00
Tobias Kaminsky f07d1fe231 Merge pull request #14557 from nextcloud/bugfix/update-recommended-files-changes
BugFix - Update Recommended File List When Needed
2025-02-26 10:09:13 +01:00
renovate[bot] c86492f73d Update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.23.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 09:06:38 +00:00
renovate[bot] 563404f999 Update actions/upload-artifact action to v4.6.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 08:59:40 +00:00
Tobias Kaminsky f10ce3ed64 Merge pull request #14568 from nextcloud/bugfix/on-sync-folder-setting-click-anr
Fix - onSyncFolderSettingsClick ANR
2025-02-26 09:52:18 +01:00
Tobias Kaminsky 116e42ffd0 Merge pull request #14497 from nextcloud/feature/open-in-notes
Tighter integration - Open in Notes Button
2025-02-26 09:42:38 +01:00
ZetaTom a76859c8c6 Set is_beta back to false
Signed-off-by: ZetaTom <[email protected]>
2025-02-26 09:41:54 +01:00
Nextcloud bot 92a57cf054 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-26 03:03:21 +00:00
Alex Knop 291a7d3b7a fix obsolete method plus force use of type
Signed-off-by: Alex Knop <[email protected]>
2025-02-25 22:00:15 +01:00
Andy Scherzinger 86b95c5005 Merge pull request #14588 from nextcloud/Java16
Use of Pattern Variables
2025-02-25 21:52:43 +01:00
Andy Scherzinger a74f515f7e Merge pull request #14585 from nextcloud/CStyleArrays
Fix C-Style Arrays
2025-02-25 21:52:12 +01:00
ZetaTom 832039854e Update library version
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:17 +01:00
ZetaTom db22caebaf Update library version
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:16 +01:00
ZetaTom a6e9586896 Use material text button
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:16 +01:00
ZetaTom a74d600cd3 Place open in notes button in card view
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:16 +01:00
ZetaTom 0c606f9209 Update library version
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:16 +01:00
ZetaTom 55f8fcbf02 Fix lint
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:16 +01:00
ZetaTom 8313981bdf Extend OCFileListAdapter to handle open in notes button
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:16 +01:00
ZetaTom 156773e722 Extract openAppOrStore() and openAppStore() to LinkHelper
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:16 +01:00
ZetaTom a6c3b29904 Extend capability to include notes folder location
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:15 +01:00
ZetaTom 0f5e3670d1 Extend list_header.xml to add open in notes button
Signed-off-by: ZetaTom <[email protected]>
2025-02-25 13:06:11 +01:00
Andy Scherzinger 87a2bc7e70 Merge pull request #14581 from nextcloud/emptyMethod
remove methods that only call super
2025-02-25 11:00:45 +01:00
alperozturk 2582e51b12 updateThumbnailIfNeeded
Signed-off-by: alperozturk <[email protected]>
2025-02-25 09:03:39 +01:00
alperozturk 7f9be17a5e updateThumbnailIfNeeded
Signed-off-by: alperozturk <[email protected]>
2025-02-25 09:03:39 +01:00
Tobias Kaminsky 3f8527ef66 Merge pull request #14578 from nextcloud/clipboard
enhance clipboard
2025-02-25 08:06:55 +01:00
Tobias Kaminsky f3b55a3466 Merge pull request #14559 from nextcloud/simplifiedShareLayout
Simplified share layout
2025-02-25 08:06:22 +01:00
Alex Knop b1c7cb06ca finish job
Signed-off-by: Alex Knop <[email protected]>
2025-02-25 01:19:41 -05:00
Alex Knop 3eaaab41e7 small fix
Signed-off-by: Alex Knop <[email protected]>
2025-02-25 00:29:43 -05:00
Nextcloud bot 76c50d1494 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-25 03:11:25 +00:00
Alex Knop ce589ac616 fix onResume
Signed-off-by: Alex Knop <[email protected]>
2025-02-24 19:33:27 -05:00
Alex Knop f4fe799ad7 use of pattern variables
Signed-off-by: Alex Knop <[email protected]>
2025-02-24 17:28:04 -05:00
Alex Knop f3e14cb3de use of pattern variables
Signed-off-by: Alex Knop <[email protected]>
2025-02-24 16:57:51 -05:00
Alex Knop 807d45b508 Fix C-Style Arrays
Signed-off-by: Alex Knop <[email protected]>
2025-02-24 15:45:48 -05:00
Alex Knop 20db7b6662 remove methods that only call super
Signed-off-by: Alex Knop <[email protected]>
2025-02-24 14:47:12 -05:00
tobiasKaminsky 47ea22db5c enhance clipboard
Signed-off-by: tobiasKaminsky <[email protected]>
2025-02-24 15:56:17 +01:00
Tobias Kaminsky 1013df79cb Merge pull request #14577 from nextcloud/cropImage
Enhance CropImageActivity
2025-02-24 15:28:43 +01:00
tobiasKaminsky 6e3dfd0355 do not export CropImageActivity 2025-02-24 13:59:07 +01:00
tobiasKaminsky 8cbebf2bc8 simplified share layout
Signed-off-by: tobiasKaminsky <[email protected]>
2025-02-24 13:53:47 +01:00
ZetaTom 5b61aecdda Do not release video player on pause
- player would be released when swiping to next fragment
- player became unresponsive when going back to fragment

Signed-off-by: ZetaTom <[email protected]>
2025-02-24 13:07:08 +01:00
alperozturk b6211e1637 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-02-24 10:21:50 +01:00
alperozturk 1740121be5 no need add
Signed-off-by: alperozturk <[email protected]>
2025-02-24 10:20:55 +01:00
alperozturk 7e30cfe3c6 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-02-24 10:20:55 +01:00
alperozturk f664b3760a commit transaction
Signed-off-by: alperozturk <[email protected]>
2025-02-24 10:20:55 +01:00
alperozturk b1582a37d3 use lifecycleScope
Signed-off-by: alperozturk <[email protected]>
2025-02-24 10:20:55 +01:00
Nextcloud bot 8a0dc56f17 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-24 02:58:50 +00:00
Andy Scherzinger 67d5a3b77a Merge pull request #14571 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-02-23 10:26:31 +01:00
Nextcloud bot 1d08c0a20a Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-23 03:01:00 +00:00
nextcloud-android-bot 7c972bdedf 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-02-23 02:50:48 +00:00
Nextcloud bot 2c485612a9 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-22 02:58:43 +00:00
Nextcloud bot e9ed5a3cd8 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-21 02:57:10 +00:00
Nextcloud bot 005dab73ab Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-20 03:01:13 +00:00
Andy Scherzinger e5016328f5 Merge pull request #14564 from nextcloud/renovate/actions-cache-4.x
Update actions/cache action to v4.2.1
2025-02-19 20:10:41 +01:00
renovate[bot] 02bad139e2 Update actions/cache action to v4.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 17:46:45 +00:00
alperozturk cebffff8e0 only refresh when its necessary
Signed-off-by: alperozturk <[email protected]>
2025-02-19 13:50:23 +01:00
alperozturk f56ab108b9 add refresh
Signed-off-by: alperozturk <[email protected]>
2025-02-19 13:50:23 +01:00
Tobias Kaminsky 54ea098b29 Merge pull request #14546 from nextcloud/bugfix/handle-offline-operations-thumbnail-in-display-utils
BugFix - Don't Set Icon If Thumbnail Exists & Handle Thumbnails Properly
2025-02-19 09:49:28 +01:00
Tobias Kaminsky e01045cd44 Merge pull request #14538 from nextcloud/handle-e2ee-download-key-task-result
Handle E2EE Download Key Task Result
2025-02-19 09:49:01 +01:00
Tobias Kaminsky 6d585da6b5 Update app/src/main/res/values/strings.xml
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-02-19 09:47:43 +01:00
Tobias Kaminsky 2368b77cf2 Update app/src/main/res/values/strings.xml
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-02-19 09:46:46 +01:00
Tobias Kaminsky d1d7c3aad8 Update app/src/main/res/values/strings.xml
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-02-19 09:46:30 +01:00
Tobias Kaminsky 07edaf5f22 Update app/src/main/res/values/strings.xml
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-02-19 09:46:07 +01:00
Tobias Kaminsky 7bc7f55252 Update app/src/main/res/values/strings.xml
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-02-19 09:46:00 +01:00
Tobias Kaminsky 6a31a3b462 Merge pull request #14410 from nextcloud/dont-show-failed-upload-message-for-same-file
Don't Show Failed Upload Message For Same File and Handle Local Behavior
2025-02-19 09:19:16 +01:00
Tobias Kaminsky d8e3674f98 Merge pull request #14536 from nextcloud/bugfix/check-device-credentials-existance
BugFix - Check Device Credentials Existance
2025-02-19 09:05:02 +01:00
alperozturk 96b27dc123 remove unnecessary checks
Signed-off-by: alperozturk <[email protected]>
2025-02-19 07:48:37 +01:00
alperozturk 8293824280 add check
Signed-off-by: alperozturk <[email protected]>
2025-02-19 07:48:37 +01:00
Nextcloud bot a915758d52 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-19 03:00:28 +00:00
alperozturk ec14cb393d clean imports
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 4dabbbf683 clean imports
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 396891f72b makeRounded
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 5edd9ec4a6 remove getOCFileIcon
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk f507260d1b remove getOCFileIcon
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
Alper ÖztürkandTom f377794587 Update app/src/main/java/com/owncloud/android/utils/DisplayUtils.java
Co-authored-by: Tom <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk a689e94845 fix test
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 510a43c306 use correct ss for test
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 67a88c8401 update ss
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 62703d891e fix ss tests
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 5da3cdab54 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk cf35a9b6d7 add documentation and use final var
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk 42d8a44d35 separate setThumbnail into functions
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
alperozturk a1e8e9e20c add OfflineOperation to setThumbnail
Signed-off-by: alperozturk <[email protected]>
2025-02-18 15:38:47 +01:00
Nextcloud bot c422ecfebe Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-18 02:58:39 +00:00
Skyler Grey 812448f419 fix(richdocuments): Let new file load on creation
Previously when trying to create a file, it would always fail to load,
making you spin forever until you re-entered the file picker.

Upon closer inspection it seems like this is due to a 403 response to
the /direct/ editor URL

    100.64.0.1 - - [12/Feb/2025:13:03:43 +0000] "GET /index.php/apps/richdocuments/direct/Zj4Xu3mKQRUhb53b10FT3nwrLlxOauaWsrb23v9HczGwDK9MDqAukfwGFQwa5w9N HTTP/1.1" 403 26870 "-" "Mozilla/5.0 (Android) Nextcloud-android/20250207"

Normally, this would load the editor which would then query WOPI, etc.
as normal...

    100.64.0.1 - - [12/Feb/2025:13:08:18 +0000] "GET /index.php/apps/richdocuments/direct/wC0K6A6Zkwy6MwFtdEjwU4VJdTbWmIUFWgXuP8SOUrNFxTUg8Hcz9cgvCOZVAt82 HTTP/1.1" 200 9533 "-" "Mozilla/5.0 (Android) Nextcloud-android/20250207"
    100.64.0.40 - - [12/Feb/2025:13:08:18 +0000] "GET /index.php/apps/files/api/v1/stats HTTP/1.1" 200 1042 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0"
    fe80::e7b2:72eb:8e62:74eb%enx908d6e3ca1f5 - - [12/Feb/2025:13:08:19 +0000] "GET /index.php/apps/richdocuments/wopi/files/61_ocyrhf1mv22k?access_token=jSI97GAbzmQc7ckm3RVdvy8PG1pLek7r&access_token_ttl=0 HTTP/1.1" 200 2418 "-" "COOLWSD HTTP Agent 24.04.13.0"
    fe80::e7b2:72eb:8e62:74eb%enx908d6e3ca1f5 - - [12/Feb/2025:13:08:19 +0000] "GET /index.php/apps/richdocuments/wopi/files/61_ocyrhf1mv22k/contents?access_token=jSI97GAbzmQc7ckm3RVdvy8PG1pLek7r&access_token_ttl=1739401698000 HTTP/1.1" 200 1501 "-" "COOLWSD HTTP Agent 24.04.13.0"

Upon further inspection, it looked like we were reusing a token...
commenting the deletion of the token in lib/Controller/DirectViewController.php
on the server also let us access the editor

    -               $this->directMapper->delete($direct);
    +               // $this->directMapper->delete($direct);

And on closer inspection I noticed that there was 2 requests to /direct/
 - the first of which worked!

Finally, that led me here: it seems like both ExternalSiteWebView.java
and EditorWebView.java were calling loadUrl with *the same /direct/ url*
which made it expire before the editor could actually load...

...no good...!

Commenting either of these solved the problem but I wasn't thoroughly
sure that they weren't important for something else, therefore I devised
the cunning plan you see before you: in the editor web view, never
*re*load the url. If we're loading something else, that's fine. If not,
we shouldn't reuse the token since as this will invalidate it.

Signed-off-by: Skyler Grey <[email protected]>
Fixes: nextcloud/android#14548
2025-02-17 10:04:17 +00:00
Andy Scherzinger 69877f3d94 Merge pull request #14426 from nextcloud/renovate/org.bouncycastle-bcpkix-jdk18on-1.x
fix(deps): update dependency org.bouncycastle:bcpkix-jdk18on to v1.80
2025-02-16 23:12:40 +01:00
renovate[bot] 10a5c8e2a8 fix(deps): update dependency org.bouncycastle:bcpkix-jdk18on to v1.80
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 21:36:35 +00:00
Andy Scherzinger 8d14e182d4 Merge pull request #14507 from nextcloud/renovate/com.google.code.gson-gson-2.x
fix(deps): update dependency com.google.code.gson:gson to v2.12.1
2025-02-16 22:17:33 +01:00
renovate[bot] 5d83608c67 fix(deps): update dependency com.google.code.gson:gson to v2.12.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 20:58:34 +00:00
Andy Scherzinger 9a550e6296 Merge pull request #14490 from nextcloud/renovate/kotlin-monorepo
fix(deps): update kotlin monorepo to v2.1.10
2025-02-16 21:08:25 +01:00
Andy Scherzinger dc545c8ecf chore: Add meta data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-02-16 20:43:37 +01:00
renovate[bot] 318071c913 Update plugin com.google.devtools.ksp to v2.1.10-1.0.30
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 20:38:04 +01:00
renovate[bot] 5905e7948f Update plugin org.jetbrains.kotlin.kapt to v2.1.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 20:37:12 +01:00
renovate[bot] 2a2e22c431 Update plugin org.jetbrains.kotlin.plugin.compose to v2.1.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 20:36:41 +01:00
renovate[bot] 95b3e03d61 Update kotlin monorepo to v2.1.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 20:35:06 +01:00
Andy Scherzinger 0ab372dcc7 Merge pull request #14427 from nextcloud/renovate/androidx.compose-compose-bom-2025.x
fix(deps): update dependency androidx.compose:compose-bom to v2025
2025-02-16 20:30:34 +01:00
renovate[bot] 537f53d538 fix(deps): update dependency androidx.compose:compose-bom to v2025
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 19:02:46 +00:00
Andy Scherzinger 8cb067ade0 Merge pull request #14551 from nextcloud/renovate/androidx.fragment-fragment-ktx-1.x
fix(deps): update dependency androidx.fragment:fragment-ktx to v1.8.6
2025-02-16 19:49:12 +01:00
Andy Scherzinger 280e970f6e Merge pull request #14553 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.5
2025-02-16 19:48:21 +01:00
renovate[bot] c7f7efef77 fix(deps): update dependency androidx.fragment:fragment-ktx to v1.8.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 13:34:59 +00:00
Andy Scherzinger 32a7eeb93d Merge pull request #14552 from nextcloud/renovate/androidpluginversion
Update dependency com.android.tools.build:gradle to v8.8.1
2025-02-16 14:27:41 +01:00
Andy Scherzinger 9973f4d528 chore: Add meta data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-02-16 13:57:44 +01:00
renovate[bot] 435c2c0fac Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 12:48:53 +00:00
renovate[bot] 0de3e1fcbb Update dependency com.android.tools.build:gradle to v8.8.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 12:47:42 +00:00
Andy Scherzinger 0b444c200e Merge pull request #14503 from nextcloud/renovate/ubuntu-noble
Update ubuntu:noble Docker digest to 7229784
2025-02-15 16:15:05 +01:00
Andy Scherzinger b40fc23631 Merge pull request #14506 from nextcloud/renovate/codecov-codecov-action-5.x
Update codecov/codecov-action action to v5.3.1
2025-02-15 16:14:41 +01:00
Andy Scherzinger 0f563607ce Merge pull request #14505 from nextcloud/renovate/actions-setup-java-4.x
Update actions/setup-java action to v4.7.0
2025-02-15 16:14:18 +01:00
Nextcloud bot ba0f3098e6 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-15 02:59:30 +00:00
Nextcloud bot dde4b50815 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-14 02:59:08 +00:00
Nextcloud bot e5a749d792 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-13 03:01:29 +00:00
Tobias Kaminsky 3c88be4bf4 Merge pull request #14539 from nextcloud/bugfix/set-transfer-was-request-to-true-for-download-with-notifications
BugFix - Add Missing mTransferWasRequested
2025-02-12 07:41:38 +01:00
Nextcloud bot 7923598c8e Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-12 03:02:28 +00:00
alperozturk cbd1817733 final var
Signed-off-by: alperozturk <[email protected]>
2025-02-11 16:45:31 +01:00
alperozturk 0941c8e6a8 use filename
Signed-off-by: alperozturk <[email protected]>
2025-02-11 16:44:12 +01:00
alperozturk ddcc481479 remove Redundant null check at SynchronizeFileOperation.java:[line 316]
Signed-off-by: alperozturk <[email protected]>
2025-02-11 16:43:32 +01:00
alperozturk 361b53f4fb add missing mTransferWasRequested assignment
Signed-off-by: alperozturk <[email protected]>
2025-02-11 16:08:51 +01:00
alperozturk 6e39b56273 fix logic
Signed-off-by: alperozturk <[email protected]>
2025-02-11 13:34:34 +01:00
alperozturk 288e0c02c9 use sealed class
Signed-off-by: alperozturk <[email protected]>
2025-02-11 13:16:41 +01:00
alperozturk d295cb2af3 add TODO
Signed-off-by: alperozturk <[email protected]>
2025-02-11 12:57:56 +01:00
alperozturk 8a6299c6f4 add DownloadKeyError
Signed-off-by: alperozturk <[email protected]>
2025-02-11 12:57:56 +01:00
Tobias Kaminsky 7d739855c6 Merge pull request #14501 from alexknop/fixScaling
Fix Image Scaling/Rotating
2025-02-11 10:46:01 +01:00
Alex Knop ffedbd3a9b spotlessApply
Signed-off-by: Alex Knop <[email protected]>
2025-02-11 09:09:56 +01:00
Alex Knop 3c70fb5c48 fix scaling
Signed-off-by: Alex Knop <[email protected]>
2025-02-11 09:09:56 +01:00
Tobias Kaminsky 69f13537d8 Merge pull request #14516 from nextcloud/update-library-2025-02-09
Update library to 2025-02-09
2025-02-11 08:02:50 +01:00
Tobias Kaminsky eef4356c05 Merge pull request #14524 from nextcloud/use-correct-permissions
Check API Level for READ_MEDIA_VISUAL_USER_SELECTED Permission
2025-02-11 07:41:04 +01:00
Nextcloud bot ad679dafc7 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-11 03:01:10 +00:00
Tobias Kaminsky 6117fd2912 Merge pull request #14509 from nextcloud/increase-pin-enter-delay
Increase PIN Enter Delay
2025-02-10 15:12:14 +01:00
Tobias Kaminsky 7971003ca3 Merge pull request #14461 from nextcloud/remove-login-flow-v1
Remove Login Flow v1
2025-02-10 15:02:37 +01:00
alperozturk a332939c40 remove unused resources
Signed-off-by: alperozturk <[email protected]>
2025-02-10 12:31:18 +01:00
alperozturk add2c11194 remove v1
Signed-off-by: alperozturk <[email protected]>
2025-02-10 12:31:16 +01:00
alperozturk 9b59ad7902 fix detekt
Signed-off-by: alperozturk <[email protected]>
2025-02-10 12:28:55 +01:00
github-actions 1771c92439 Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: github-actions <[email protected]>
2025-02-10 12:25:36 +01:00
alperozturk ee49209907 check permission correctly according to the api level
Signed-off-by: alperozturk <[email protected]>
2025-02-10 12:25:36 +01:00
alperozturk fc2d0630a2 fix delay
Signed-off-by: alperozturk <[email protected]>
2025-02-10 12:25:03 +01:00
Tobias Kaminsky 174b8fc9c9 Merge pull request #14498 from nextcloud/bugfix/e2ee-delete-file
BugFix - E2EE Delete File
2025-02-10 11:14:27 +01:00
alperozturk bd78477f25 persist delay
Signed-off-by: alperozturk <[email protected]>
2025-02-10 11:13:21 +01:00
alperozturk b3acccff9b remove unused resource
Signed-off-by: alperozturk <[email protected]>
2025-02-10 11:13:21 +01:00
alperozturk e8c34f5626 count minute parts
Signed-off-by: alperozturk <[email protected]>
2025-02-10 11:13:21 +01:00
alperozturk 2f6c76ec87 revert brute_force_delay
Signed-off-by: alperozturk <[email protected]>
2025-02-10 11:13:21 +01:00
alperozturk f35983455c fix start value
Signed-off-by: alperozturk <[email protected]>
2025-02-10 11:13:21 +01:00
alperozturk 19e22e6601 show live delay
Signed-off-by: alperozturk <[email protected]>
2025-02-10 11:13:21 +01:00
alperozturk 4180cd9d45 increase delay
Signed-off-by: alperozturk <[email protected]>
2025-02-10 11:13:21 +01:00
Tobias Kaminsky 98ee020364 Merge pull request #14364 from nextcloud/stop-upload-when-device-not-have-internet-connection
Stop Uploads When the Device Doesn’t Have an Internet Connection
2025-02-10 11:05:45 +01:00
Tobias Kaminsky de0a88dd0b Merge pull request #14485 from nextcloud/bugfix/observe-download-state
BugFix - Observe Download State In Encrypted Folder
2025-02-10 10:59:47 +01:00
Tobias Kaminsky 108c04ed6e Merge pull request #14475 from nextcloud/nmc/useLocalizedLogMessage
Use localized log message
2025-02-10 10:52:51 +01:00
Tobias Kaminsky 86dec28a63 Merge pull request #14514 from nextcloud/dismiss-conflict-resolve-dialog-after-decision
Dismiss Conflict Resolve Dialog Notification After User's Action
2025-02-10 10:51:06 +01:00
alperozturk 67705248f9 dismiss previous notification
Signed-off-by: alperozturk <[email protected]>
2025-02-10 09:35:49 +01:00
alperozturk da604e6c6c dismissErrorNotification
Signed-off-by: alperozturk <[email protected]>
2025-02-10 09:35:49 +01:00
alperozturk fa5f80c073 fix
Signed-off-by: alperozturk <[email protected]>
2025-02-10 09:35:49 +01:00
Nextcloud bot 9cad72801b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-10 06:05:13 +00:00
Nextcloud bot 35907b34d5 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-10 02:58:44 +00:00
Nextcloud bot e333e00404 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-09 03:02:22 +00:00
Tobias Kaminsky 1baa17d4b5 Update library to 2025-02-09
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-02-09 00:00:41 +01:00
Andy Scherzinger 87e3acdbc1 Merge pull request #14515 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-02-08 14:06:58 +01:00
Nextcloud bot 87178e578f Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-08 03:02:12 +00:00
nextcloud-android-bot 8040c3910c 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-02-08 02:50:03 +00:00
alperozturk 704cf2d786 fix kotlin spotless check
Signed-off-by: alperozturk <[email protected]>
2025-02-07 15:04:53 +01:00
alperozturk 66646fb570 fix
Signed-off-by: alperozturk <[email protected]>
2025-02-07 14:48:56 +01:00
Tobias Kaminsky 78806ff412 Merge pull request #14159 from nextcloud/tos
ToS
2025-02-07 07:44:22 +01:00
Nextcloud bot 55b49fd11d Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-07 02:58:50 +00:00
tobiasKaminsky e864c6be54 ToS
Signed-off-by: tobiasKaminsky <[email protected]>
2025-02-06 14:01:58 +01:00
Andy Scherzinger c528914acf Merge pull request #14508 from nextcloud/renovate/gradle-actions-4.x
Update gradle/actions action to v4.3.0
2025-02-06 11:37:18 +01:00
renovate[bot] 28dba7633e Update gradle/actions action to v4.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-06 10:32:09 +00:00
renovate[bot] 9298d0c1d7 Update codecov/codecov-action action to v5.3.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-06 10:29:27 +00:00
renovate[bot] 33eb41f2fc Update actions/setup-java action to v4.7.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-06 10:29:20 +00:00
renovate[bot] ab8f10f9fe Update ubuntu:noble Docker digest to 7229784
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-06 10:22:22 +00:00
Nextcloud bot bd907b120b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-06 03:00:07 +00:00
alperozturk b4e6a5c712 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-02-05 14:08:25 +01:00
alperozturk 495d673503 observe download state
Signed-off-by: alperozturk <[email protected]>
2025-02-05 14:08:25 +01:00
alperozturk e279256d2c fix
Signed-off-by: alperozturk <[email protected]>
2025-02-05 14:02:06 +01:00
Andy Scherzinger 24ff655029 Merge pull request #14496 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-02-05 11:44:53 +01:00
nextcloud-android-bot 8a7cc9e990 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-02-05 09:52:16 +00:00
Tobias Kaminsky a4038fe45e Merge pull request #14480 from nextcloud/update-library-2025-02-02
Update library to 2025-02-02
2025-02-05 08:05:27 +01:00
Nextcloud bot 8a4a719684 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-05 02:59:44 +00:00
Nextcloud bot 9ccc57a36b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-04 02:59:37 +00:00
Andy Scherzinger 1df4daf45f Merge pull request #14489 from nextcloud/renovate/gradle-8.x
Update dependency gradle to v8.12.1
2025-02-03 19:26:22 +01:00
Andy Scherzinger 9acf736e94 Merge pull request #14488 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.3
2025-02-03 19:25:52 +01:00
renovate[bot] 32f5be60bf Update dependency gradle to v8.12.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-03 18:20:56 +00:00
renovate[bot] 56122d91c2 Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-03 18:14:41 +00:00
Nextcloud bot b4e4b232af Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-03 03:21:50 +00:00
Tobias Kaminsky 7f9c5a51be Update library to 2025-02-02
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-02-02 00:05:55 +01:00
Nextcloud bot fa1c68b590 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-02-01 02:59:35 +00:00
Andy Scherzinger c42a637e8c Merge pull request #14476 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-30 07:53:33 +01:00
nextcloud-android-bot a762a866e3 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-01-30 06:51:44 +00:00
A117870935 5c4d35188b Using localized log message for ui.
Signed-off-by: A117870935 <[email protected]>
2025-01-30 12:15:08 +05:30
Nextcloud bot 0c5d350361 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-29 02:56:49 +00:00
Andy Scherzinger a311dadc3c Merge pull request #14471 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-28 07:26:08 +01:00
nextcloud-android-bot b08e034212 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-01-28 06:24:19 +00:00
Nextcloud bot 638c616ab6 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-27 02:55:58 +00:00
Nextcloud bot df647b2dda Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-26 03:06:02 +00:00
Andy Scherzinger b3c8d01a9c Merge pull request #14466 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-25 12:30:10 +01:00
nextcloud-android-bot 361be05b35 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-01-25 11:07:25 +00:00
Nextcloud bot 579cf70aec Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-25 03:16:58 +00:00
Andy Scherzinger 4a172b5ec4 Merge pull request #14460 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-24 09:16:34 +01:00
nextcloud-android-bot 1c0a481bd2 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-01-24 08:15:09 +00:00
Nextcloud bot fad69d9af6 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-24 02:58:24 +00:00
Tobias Kaminsky 85ca4c7e78 Merge pull request #14456 from nextcloud/upgrade-to-next-major-version
Upgrade to Next Major Version
2025-01-23 17:59:45 +01:00
Tobias Kaminsky bf8d42ca8d Merge pull request #14455 from nextcloud/checkWrongSettingsOnCorrectBranch
check library commit on correct branch
2025-01-23 17:40:11 +01:00
tobiasKaminsky 636a8289f5 check library commit on correct branch
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-23 17:32:29 +01:00
alperozturk 4e0a653227 upgrade to next major version
Signed-off-by: alperozturk <[email protected]>
2025-01-23 15:55:31 +01:00
Tobias Kaminsky 890464a8bc Merge pull request #14453 from nextcloud/failOnServerFail
do not continue when server fails
2025-01-23 15:09:45 +01:00
tobiasKaminsky 56f3b2d2a0 1
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-23 14:30:48 +01:00
tobiasKaminsky 603453999f do not continue when server fails
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-23 14:29:51 +01:00
Nextcloud bot 11e4d2b4f2 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-23 11:19:15 +00:00
Tobias Kaminsky d458de7b68 Merge pull request #14446 from nextcloud/bump-outdated-server-version
Bump OUTDATED_SERVER_VERSION
2025-01-23 11:08:53 +01:00
Tobias Kaminsky af94104553 Merge pull request #14445 from nextcloud/update-nx-version-for-drone
Bump Nextcloud version to 30 in drone.yml
2025-01-23 11:08:43 +01:00
Tobias Kaminsky 800b4c0c9e Merge pull request #14450 from nextcloud/useLatestLib
use latest lib
2025-01-23 11:06:23 +01:00
alperozturk 91bbdd3db2 bump OUTDATED_SERVER_VERSION
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-23 10:44:39 +01:00
tobiasKaminsky d0285de807 remote wipe is enabled for all servers
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-23 10:31:27 +01:00
tobiasKaminsky 31ff399264 use latest lib
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-23 09:49:49 +01:00
Tobias Kaminsky a4c48a85c7 Merge pull request #14448 from nextcloud/dropAndroid7_0
drop Android 7.0 support
2025-01-23 09:40:53 +01:00
Tobias Kaminsky 1fcffb0440 Merge pull request #14447 from nextcloud/bump-min-supported-server-version
bump MINIMUM_SUPPORTED_SERVER_VERSION
2025-01-23 09:34:57 +01:00
alperozturk eba3efdd47 bump SERVER_VERSION
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-23 09:33:47 +01:00
Andy Scherzinger 8305716aaa Merge pull request #14449 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-23 08:57:40 +01:00
nextcloud-android-bot 71ed6cbdba 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-01-23 07:55:54 +00:00
Nextcloud bot 1fef3812e7 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-23 03:00:19 +00:00
ZetaTom 25ea3c63a0 Bump version
- replace calls to removed library functions

Signed-off-by: ZetaTom <[email protected]>
2025-01-22 16:52:50 +01:00
tobiasKaminsky dd073607f8 drop Android 7.0 support
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-22 16:13:03 +01:00
alperozturk ec23d60ef3 bump MINIMUM_SUPPORTED_SERVER_VERSION
Signed-off-by: alperozturk <[email protected]>
2025-01-22 15:27:49 +01:00
Tobias Kaminsky 91492862ae Merge pull request #14443 from nextcloud/bumpMasterTo31
bump master to 31 alpha
2025-01-22 14:08:22 +01:00
tobiasKaminsky c4df387e10 bump master to 31 alpha
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-22 14:06:58 +01:00
Tobias Kaminsky e513d97faf Merge pull request #14442 from nextcloud/recommended-files-on-refresh
Fetch Recommended Files Via OnRefresh
2025-01-22 13:26:48 +01:00
Tobias Kaminsky 1ade346313 Merge pull request #14412 from nextcloud/feature/file_download_limits
Support Files Download Limits
2025-01-22 13:24:59 +01:00
ZetaTom a3ab2f479e Update download limit on file details screen
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 11:59:59 +01:00
ZetaTom d7411426c6 Fix NullPointerException
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:03 +01:00
ZetaTom c2f91a10cd Update database (rebase)
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:03 +01:00
ZetaTom c90274d3ce Update verification metadata
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:03 +01:00
tobiasKaminsky ee1d5d5fa2 add screenshot
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-22 10:33:02 +01:00
ZetaTom 43f9cfe89f Fix lint
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:02 +01:00
tobiasKaminsky bb946abef5 update lib
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-22 10:33:02 +01:00
ZetaTom 9ca02254ff Update library version
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:02 +01:00
ZetaTom 7555f99681 Implement suggestions
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:02 +01:00
ZetaTom bd6468ace3 Constrain text input length
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:02 +01:00
ZetaTom f93ce96cb0 Use string quantities
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:02 +01:00
ZetaTom e4443f0949 Do not allow to set download limit for folders
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:02 +01:00
ZetaTom c0c9f05930 Add screenshot tests for files download limit
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:01 +01:00
ZetaTom f787c348a1 Fix lint
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:01 +01:00
ZetaTom 9f32169c24 Show files download limit in FileDetailsSharingProcessFragment
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:01 +01:00
ZetaTom a6b5c7a51f Get files download limit on refresh
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:01 +01:00
ZetaTom f87fddbe0c Refactor GetSharesForFileOperation
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:01 +01:00
ZetaTom ec1e97ae93 Add operations for files download limit
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:01 +01:00
ZetaTom 4d1bc6275f Extend capabilities by files download limit
Signed-off-by: ZetaTom <[email protected]>
2025-01-22 10:33:01 +01:00
Tobias Kaminsky a32e4c6a4a Merge pull request #14415 from nextcloud/bugfix/scan-document-layout
BugFix - Document Scan Layout
2025-01-22 10:21:23 +01:00
alperozturk 4bd8dc4782 add todo comment
Signed-off-by: alperozturk <[email protected]>
2025-01-22 10:02:34 +01:00
alperozturk b3fd559a56 call with onrefresh
Signed-off-by: alperozturk <[email protected]>
2025-01-22 10:01:47 +01:00
Tobias Kaminsky f676b9ccfa Merge pull request #14178 from nextcloud/feature/recommended-files
Feature - Recommended Files
2025-01-22 09:30:45 +01:00
alperozturk ba8cb444b1 use ResetCapabilitiesPostMigration
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:10 +01:00
alperozturk 818fa92019 remove manual migration
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:10 +01:00
alperozturk 51eb05811a remove manual migration
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:09 +01:00
alperozturk 58bc9ff664 MIGRATION_85_to_86
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:09 +01:00
alperozturk ae44632e46 add migration
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:09 +01:00
alperozturk 58461221ad update ss
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:09 +01:00
alperozturk 80272d2ca0 getRecommendations
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:05 +01:00
alperozturk 6e2a0ef8e9 use reason instead of timestamp. just like web app and ios
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:05 +01:00
alperozturk 59ed43684c update lib
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:05 +01:00
alperozturk a90f1c439d rebase
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:05 +01:00
alperozturk 1b924c823a change loader image view background color
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:05 +01:00
alperozturk f4bc915ceb better alignment, cleanup list_header
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:04 +01:00
alperozturk 5739b47205 add more padding
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:04 +01:00
alperozturk f06c07ca71 fix duplicated item
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:04 +01:00
alperozturk caf5fc086e update lib
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:04 +01:00
alperozturk 6b5f2f5d1a change layout width
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:04 +01:00
alperozturk 45c86e0fc6 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:04 +01:00
alperozturk af5678c773 shouldShowRecommendedFiles
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:04 +01:00
alperozturk 1c64df738a fix ss test
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:03 +01:00
alperozturk f3d702520f fix ui
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:03 +01:00
alperozturk 89f5f1f627 fix ui
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:03 +01:00
alperozturk 81785da41b fix ui
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:03 +01:00
alperozturk 98d6bf9530 fix ui
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:03 +01:00
alperozturk f5b4c2e05c use api
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:03 +01:00
tobiasKaminsky 46d46f480a update lib
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-22 08:49:03 +01:00
alperozturk 2898a57305 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:02 +01:00
alperozturk 2a0ee47ba9 visual fixes
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:02 +01:00
alperozturk 415629020c visual fixes
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:02 +01:00
alperozturk 7b81ac7176 notifyItemChanged
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:02 +01:00
alperozturk 3d2bcd934c notifyItemChanged
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:02 +01:00
alperozturk 3977f5759e use library, remove mock data
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:02 +01:00
alperozturk 48478d93a7 set on click listener
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:01 +01:00
alperozturk 946f73e866 add dimens
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:01 +01:00
alperozturk fb1d42be04 setOnClickListener
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:01 +01:00
alperozturk 01b98279ff add dimens
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:01 +01:00
alperozturk dcb8e3eb49 add thumbnail generation logic and fix UI
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:01 +01:00
alperozturk 6b199b5f01 make items square
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:01 +01:00
alperozturk b3e620b368 add RecommendedFilesAdapter
Signed-off-by: alperozturk <[email protected]>
2025-01-22 08:49:00 +01:00
Andy Scherzinger c41bc1b45f Merge pull request #14441 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-22 08:10:10 +01:00
nextcloud-android-bot 7057302b14 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2025-01-22 07:06:08 +00:00
Nextcloud bot f98650fb42 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-22 03:01:38 +00:00
Tobias Kaminsky 79d4298305 Merge pull request #14339 from nextcloud/feature/add-tag-color
Feature - Add Tag Color
2025-01-21 18:24:39 +01:00
Alper ÖztürkandTom 0387dd1aba Update app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
Co-authored-by: Tom <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-01-21 16:59:53 +01:00
Alper ÖztürkandTom d313605bac Update app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
Co-authored-by: Tom <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-01-21 16:59:46 +01:00
Alper ÖztürkandTom 57ff3cdc34 Update app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
Co-authored-by: Tom <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-01-21 16:59:29 +01:00
Alper ÖztürkandTom 18c1e09788 Update app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
Co-authored-by: Tom <[email protected]>
Signed-off-by: Alper Öztürk <[email protected]>
2025-01-21 16:59:21 +01:00
alperozturk e655e853d7 Revert "revert"
This reverts commit b269a44482.
2025-01-21 14:41:19 +01:00
alperozturk d8483df966 update the library
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:50:15 +01:00
alperozturk 1fcb481530 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:44:03 +01:00
alperozturk fea9359473 update tests
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:44:03 +01:00
alperozturk 3ed763f855 update the lib
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:44:03 +01:00
alperozturk ed4049e83e use tag
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:44:00 +01:00
tobiasKaminsky 8853808ae5 spotbugs
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-21 13:43:35 +01:00
tobiasKaminsky 89854f4acc fix after rebase
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-21 13:43:35 +01:00
alperozturk d03c4a1d9d add tag colors to the file details
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:43:34 +01:00
alperozturk b269a44482 revert
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:43:34 +01:00
alperozturk 6cba3abba3 add system tag color
Signed-off-by: alperozturk <[email protected]>
2025-01-21 13:43:32 +01:00
Tobias Kaminsky de514e134a Merge pull request #14343 from nextcloud/remove-bottom-bar-from-file-details
Remove Bottom Navigation Bar From File Details
2025-01-21 12:31:10 +01:00
alperozturk e31ea78a2f fix
Signed-off-by: alperozturk <[email protected]>
2025-01-21 11:43:07 +01:00
Tobias Kaminsky fc7926cd39 Merge pull request #14354 from nextcloud/fix-task-processing-api
BugFix - TaskProcessingAPI
2025-01-21 11:42:08 +01:00
Tobias Kaminsky f953f52107 Merge pull request #14438 from nextcloud/revert-auto-upload-scan-logic
Revert Get Files For Auto Upload
2025-01-21 11:37:09 +01:00
alperozturk dc0de747cb add comment
Signed-off-by: alperozturk <[email protected]>
2025-01-21 10:48:26 +01:00
alperozturk 0b38126fa6 revert
Signed-off-by: alperozturk <[email protected]>
2025-01-21 10:36:08 +01:00
Tobias Kaminsky d8de72619c Merge pull request #14384 from 0ranki/gh-10645-master
Hard-code ignore files with prefix .trashed
2025-01-21 10:31:15 +01:00
alperozturk 0aec71e628 update lib
Signed-off-by: alperozturk <[email protected]>
2025-01-21 10:15:52 +01:00
tobiasKaminsky 840848645d update lib
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-21 10:04:46 +01:00
alperozturk 957433ff12 update lib
Signed-off-by: alperozturk <[email protected]>
2025-01-21 10:00:46 +01:00
alperozturk 8c324f7555 fix
Signed-off-by: alperozturk <[email protected]>
2025-01-21 10:00:32 +01:00
Nextcloud bot d825d37645 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-21 02:59:42 +00:00
Tobias Kaminsky 02f6d86cb9 Merge pull request #14432 from nextcloud/fix/auto-upload-notification
Show auto upload notification in all activities
2025-01-20 16:08:58 +01:00
ZetaTom 5d8995189d Adjust phrasing
Signed-off-by: ZetaTom <[email protected]>
2025-01-20 15:23:19 +01:00
ZetaTom b529b6b9d4 Fix dialogue not showing when in different activity
- moved call to onResume from onNewIntent

Signed-off-by: ZetaTom <[email protected]>
2025-01-20 15:23:19 +01:00
Alper Öztürk 61dfce1293 Merge pull request #14431 from nextcloud/update-library-2025-01-19
Update library to 2025-01-19
2025-01-20 15:22:48 +01:00
Nextcloud bot cb712d7947 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-20 02:54:36 +00:00
Nextcloud bot 3e1855a7eb Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-19 03:02:56 +00:00
Tobias Kaminsky 5bab7f1fea Update library to 2025-01-19
Signed-off-by: Tobias Kaminsky <[email protected]>
2025-01-19 00:00:50 +01:00
Jarno Rankinen 46feea9298 gh-10645 remove leftover variable
Signed-off-by: Jarno Rankinen <[email protected]>
2025-01-18 22:03:40 +02:00
Jarno Rankinen 7533433dae gh-10645 Simple unit test for hasExcludePrefix
Signed-off-by: Jarno Rankinen <[email protected]>
2025-01-18 21:39:46 +02:00
Jarno Rankinen 780634432b gh-10645 Use hasExcludePrefix for folders too
- Rename EXCLUDE_FILENAME_PREFIXES to EXCLUDE_PREFIXES
- Add '.thumbnail' to EXCLUDE_PREFIXES
- Use for folder upload check

Signed-off-by: Jarno Rankinen <[email protected]>
2025-01-18 21:36:05 +02:00
Nextcloud bot 0d1bdc6eee Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-18 02:58:41 +00:00
Andy Scherzinger 5fa6128ad6 Merge pull request #14425 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2
2025-01-17 15:05:02 +01:00
renovate[bot] 2d75bd7a08 fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 10:56:52 +00:00
Tobias Kaminsky e568059eff Merge pull request #14421 from nextcloud/bugfix/dont-show-auto-upload-notification-multiple-times
BugFix - Don't Show Auto Upload Notification More Than Once
2025-01-17 10:09:57 +01:00
alperozturk daf590289c fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-01-17 09:52:36 +01:00
alperozturk c93e1efa2f dont show multiple notification
Signed-off-by: alperozturk <[email protected]>
2025-01-17 09:28:06 +01:00
Tobias Kaminsky a50a4c9e94 Merge pull request #14419 from nextcloud/clarifyPermission
clarify when permission dialog is shown
2025-01-17 08:56:28 +01:00
tobiasKaminsky 04ee7ab50c clarify when permission dialog is shown
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-17 08:38:07 +01:00
Nextcloud bot dfa6cf9ea2 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-17 02:58:11 +00:00
Andy Scherzinger 537b42dc00 Merge pull request #14369 from nextcloud/renovate/daggerversion
Update daggerVersion to v2.55
2025-01-16 10:17:30 +01:00
alperozturk 24fb8315f3 addSystemBarPaddings
Signed-off-by: alperozturk <[email protected]>
2025-01-16 10:04:18 +01:00
Nextcloud bot b6a6367125 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-16 02:58:34 +00:00
alperozturk a2aaa8c29d e2e not supported for auto upload
Signed-off-by: alperozturk <[email protected]>
2025-01-15 15:51:04 +01:00
alperozturk 0dd424175a add e2e variant
Signed-off-by: alperozturk <[email protected]>
2025-01-15 15:43:23 +01:00
alperozturk d35eb72002 check variables
Signed-off-by: alperozturk <[email protected]>
2025-01-15 15:27:04 +01:00
alperozturk b3981bdd6d handleLocalBehaviour
Signed-off-by: alperozturk <[email protected]>
2025-01-15 15:01:56 +01:00
alperozturk ab190f5c91 Don't Show Failed Upload Message For Same File
Signed-off-by: alperozturk <[email protected]>
2025-01-15 15:01:38 +01:00
Alper Öztürk b11ea53ade Merge pull request #14355 from nextcloud/renovate/org.json-json-20250107.x
Update dependency org.json:json to v20250107
2025-01-15 11:09:46 +01:00
renovate[bot] 2ecab07ed7 fix(deps): update daggerversion to v2.55
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-15 11:05:38 +01:00
Jarno Rankinen dea10cf1ad gh-10645 Define exclude prefixes in list
- Added '.pending' and '.nomedia' to the list of exclude prefixes

Signed-off-by: Jarno Rankinen <[email protected]>
2025-01-14 18:36:26 +02:00
renovate[bot] 8ede55bc59 Update dependency org.json:json to v20250107
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 14:06:46 +00:00
Tobias Kaminsky 49c20af2bf Merge pull request #14407 from nextcloud/ask-permissions-from-re-enable-auto-upload-dialog
Request Media Location and Storage Permissions in the Action of the ReEnableAutoUploadDialog
2025-01-14 14:49:12 +01:00
alperozturk ba159a7528 update translation
Signed-off-by: alperozturk <[email protected]>
2025-01-14 14:32:32 +01:00
alperozturk 14c3a9c60e add request permission
Signed-off-by: alperozturk <[email protected]>
2025-01-14 14:16:47 +01:00
Tobias Kaminsky cb137eb669 Merge pull request #14405 from nextcloud/dont-ask-ACCESS_MEDIA_LOCATION-permission-if-device-have-full-disk-access
Don't Ask ACCESS_MEDIA_LOCATION Permission If App Already Has Full Disk Access
2025-01-14 12:57:57 +01:00
alperozturk 5c8f4b17e0 remove empty lines
Signed-off-by: alperozturk <[email protected]>
2025-01-14 12:49:35 +01:00
alperozturk 93f208ec81 fix
Signed-off-by: alperozturk <[email protected]>
2025-01-14 12:47:36 +01:00
Tobias Kaminsky 0abff314e9 Merge pull request #14247 from nextcloud/media_permission
request media_location
2025-01-14 09:46:28 +01:00
alperozturk 12b3fff7c9 fix code analytics
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
tobiasKaminsky 523bfd301c update due to code review
Signed-off-by: tobiasKaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
Tobias KaminskyandTom bbf5687733 Update app/src/main/res/values/strings.xml
Co-authored-by: Tom <[email protected]>
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
alperozturk f5af0804d4 no need to request external storage permission again, requestMediaLocationPermission when user pressed the close button
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
Tobias KaminskyandCopilot Autofix powered by AI a35f2306f0 Fix code scanning alert no. 243: Use of implicit PendingIntents
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
github-actions cf11dc8d56 Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: github-actions <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
tobiasKaminsky cef0410b54 fixes after review
Signed-off-by: tobiasKaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
tobiasKaminsky e3e9da3143 Show more info about auto upload on GPlay
Signed-off-by: tobiasKaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
tobiasKaminsky 0d1456f926 request media_location
Signed-off-by: tobiasKaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
tobiasKaminsky 1aacaf34cc show more info about permissions
Signed-off-by: tobiasKaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
tobiasKaminsky 0a3904b5e1 request media_location
Signed-off-by: tobiasKaminsky <[email protected]>
Signed-off-by: alperozturk <[email protected]>
2025-01-14 09:20:43 +01:00
Tobias Kaminsky a968f41be5 Merge pull request #14396 from nextcloud/hideCustomUpload
GPLAY: do not show our custom uploader, due to lack of permission
2025-01-14 08:40:31 +01:00
tobiasKaminsky ae2ded2623 update screenshot
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-14 07:01:08 +01:00
Nextcloud bot a110e0e3b6 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-14 01:39:27 +00:00
Andy Scherzinger 1a3081c9c7 Merge pull request #14390 from nextcloud/renovate/actions-upload-artifact-4.x
chore(deps): update actions/upload-artifact action to v4.6.0
2025-01-13 17:42:09 +01:00
Andy Scherzinger 0a452bf4f2 build(deps): Add meta data
Signed-off-by: Andy Scherzinger <[email protected]>
2025-01-13 16:55:57 +01:00
renovate[bot] eb2ddc2752 chore(deps): update actions/upload-artifact action to v4.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 16:46:35 +01:00
Andy Scherzinger a5bfd72014 Merge pull request #14389 from nextcloud/renovate/mockkversion
fix(deps): update mockkversion to v1.13.16
2025-01-13 16:46:09 +01:00
tobiasKaminsky f584c83281 GPLAY: do not show our custom uploader, due to lack of permission
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-13 16:35:16 +01:00
Tobias Kaminsky e37d88b1e5 Merge pull request #14324 from nextcloud/revert-13232-patch-1
Revert "Set content length to -1 for InputStream request bodies from the nextcloud/Android-SingleSignOn library"
2025-01-13 16:25:04 +01:00
Andy Scherzinger e2fc4e74cc Merge pull request #14388 from nextcloud/renovate/github-codeql-action-3.x
chore(deps): update github/codeql-action action to v3.28.1
2025-01-13 16:06:42 +01:00
Tobias Kaminsky e31c098bd0 Merge pull request #14332 from nextcloud/bugfix/e2e-share-file-from-other-app
Bugfix - E2E Share File From Other Apps
2025-01-13 16:05:19 +01:00
Nextcloud bot 77d19a477f Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-13 12:48:15 +00:00
Tobias Kaminsky ee28629ea9 Merge pull request #14348 from nextcloud/bugfix/g-play-setup-e2e
BugFix - GPlay Variant E2E Dialog
2025-01-13 13:44:12 +01:00
renovate[bot] 8cabbb68bf fix(deps): update mockkversion to v1.13.16
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 11:25:56 +00:00
renovate[bot] 9ece8638ea chore(deps): update github/codeql-action action to v3.28.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 11:20:16 +00:00
alperozturk 47d76272b1 fix
Signed-off-by: alperozturk <[email protected]>
2025-01-13 11:30:12 +01:00
alperozturk 4f95bfff61 add getFileNameBasedOnEncryptionStatus
Signed-off-by: alperozturk <[email protected]>
2025-01-13 11:30:12 +01:00
alperozturk 9670a9a189 fix
Signed-off-by: alperozturk <[email protected]>
2025-01-13 10:11:59 +01:00
Andy Scherzinger 3c60fa6089 Merge pull request #14370 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.0
2025-01-13 09:34:17 +01:00
Tobias Kaminsky cdeeda640c Merge pull request #14381 from nextcloud/update-library-2025-01-12
Update library to 2025-01-12
2025-01-13 09:08:05 +01:00
Jarno Rankinen eda0b6f886 Hard-code ignore files with prefix .trashed
Signed-off-by: Jarno Rankinen <[email protected]>
2025-01-13 09:47:14 +02:00
Tobias Kaminsky c9335923dc Update library to 2025-01-12
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-13 07:08:06 +01:00
Nextcloud bot 4152a618ac Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-13 02:57:27 +00:00
Nextcloud bot 231aebd69e Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-12 03:09:06 +00:00
Nextcloud bot bc510d849b Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-11 02:57:23 +00:00
Andy Scherzinger ba9f0351e2 Merge pull request #14368 from nextcloud/renovate/androidpluginversion
fix(deps): update dependency com.android.tools.build:gradle to v8.8.0
2025-01-10 20:31:49 +01:00
Tobias Kaminsky 61bba6946c Merge pull request #14361 from nextcloud/lintTranslations
re-add lint check for translation
2025-01-10 15:39:49 +01:00
renovate[bot] c0019861a9 fix(deps): update dependency com.android.tools.build:gradle to v8.8.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 12:12:35 +00:00
tobiasKaminsky c1c126d5a5 re-add lint check for translation
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-10 13:08:00 +01:00
Tobias Kaminsky 2924351be9 Merge pull request #14371 from nextcloud/updateLib
bump lib
2025-01-10 13:06:35 +01:00
renovate[bot] a2929f5872 fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 08:38:04 +00:00
tobiasKaminsky cf4c7475ba bump lib
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-10 09:14:12 +01:00
Tobias Kaminsky 52bd89be7b Merge pull request #14363 from nextcloud/revertVerification
revert removing verification
2025-01-10 09:10:18 +01:00
Nextcloud bot e29a115884 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-10 02:57:24 +00:00
tobiasKaminsky 6a81c4c8b3 revert removing verification
Signed-off-by: tobiasKaminsky <[email protected]>
2025-01-09 16:01:32 +01:00
Nextcloud bot 536b709cc2 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-09 14:04:14 +00:00
Nextcloud bot d930db2781 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-09 13:58:08 +00:00
Nextcloud bot 07ee2e1003 Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2025-01-09 13:47:15 +00:00
Tobias Kaminsky a7c8d19e86 Revert "Set content length to -1 for InputStream request bodies from the nextcloud/Android-SingleSignOn library" 2025-01-07 08:05:27 +01:00
430 changed files with 43970 additions and 11256 deletions

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
FROM ubuntu:noble@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
FROM ubuntu:noble@sha256:b59d21599a2b151e23eea5f6602f4af4d7d31c4e236d22bf0b62b86d2e386b8f
ARG DEBIAN_FRONTEND=noninteractive
ENV ANDROID_HOME=/usr/lib/android-sdk
+5 -3
View File
@@ -36,7 +36,7 @@ services:
image: ghcr.io/nextcloud/continuous-integration-shallow-server:latest # also change in updateScreenshots.sh
environment:
EVAL: true
SERVER_VERSION: 'stable29'
SERVER_VERSION: 'stable30'
commands:
- BRANCH="$SERVER_VERSION" /usr/local/bin/initnc.sh
- echo 127.0.0.1 server >> /etc/hosts
@@ -57,6 +57,7 @@ services:
- su www-data -c "git clone --depth 1 -b $SERVER_VERSION https://github.com/nextcloud/photos.git /var/www/html/apps/photos/"
- su www-data -c "cd /var/www/html/apps/photos; composer install --no-dev"
- su www-data -c "php /var/www/html/occ app:enable -f photos"
- su www-data -c "php /var/www/html/occ config:system:set ratelimit.protection.enabled --value false --type bool"
- /usr/local/bin/run.sh
trigger:
@@ -73,7 +74,7 @@ name: tests-master
steps:
- name: gplay
image: ghcr.io/nextcloud/continuous-integration-android8:3
image: ghcr.io/nextcloud/continuous-integration-android8:4
privileged: true
environment:
LOG_USERNAME:
@@ -115,6 +116,7 @@ services:
- su www-data -c "git clone --depth 1 https://github.com/nextcloud/photos.git /var/www/html/apps/photos/"
- su www-data -c "cd /var/www/html/apps/photos; composer install --no-dev"
- su www-data -c "php /var/www/html/occ app:enable -f photos"
- su www-data -c "php /var/www/html/occ config:system:set ratelimit.protection.enabled --value false --type bool"
- /usr/local/bin/run.sh
trigger:
@@ -183,6 +185,6 @@ name: GIT_TOKEN
data: XIoa9IYq+xQ+N5iln8dlpWv0jV6ROr7HuE24ioUr4uQ8m8SjyH0yognWYLYLqnbTKrFWlFZiEMQTH/sZiWjRFvV1iL0=
---
kind: signature
hmac: f0d3fa25f7f901e8b3deacec52db0d5a81f05f7d4f13af27c633ad712ecdbc4d
hmac: ea9432c9317fa6ca12a282bb117c9f3268ddb29b208dbd772795ba19cf395082
...
+3
View File
@@ -4,6 +4,9 @@ contact_links:
- name: 🚨 Report a security or privacy issue
url: https://hackerone.com/nextcloud
about: Report security and privacy related issues privately to the Nextcloud team, so we can coordinate the fix and release without potentially exposing all Nextcloud servers and users in the meantime.
- name: 🚨 报告安全或隐私问题
url: https://hackerone.com/nextcloud
about: 请以私密方式向 Nextcloud 团队报告安全和隐私相关问题,以便我们能够协调修复工作并安排发布计划,避免在此期间可能暴露所有 Nextcloud 服务器和用户的风险。
- name: ❓ Community Support and Help
url: https://help.nextcloud.com/
about: Configuration, webserver/proxy or performance issues and other questions
+19 -9
View File
@@ -1,9 +1,11 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-FileCopyrightText: 2023 Josh Richards <[email protected]>
# SPDX-FileCopyrightText: 2025 Marcel Hibbe <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "Analysis"
@@ -24,9 +26,14 @@ concurrency:
jobs:
analysis:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Setup variables
- name: Disabled on forks
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not analyze PRs from forks'
exit 1
- name: Setup variables # zizmor: ignore[template-injection]
id: get-vars
run: |
if [ -z "$GITHUB_HEAD_REF" ]; then
@@ -46,10 +53,11 @@ jobs:
fi
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
repository: ${{ steps.get-vars.outputs.repo }}
ref: ${{ steps.get-vars.outputs.branch }}
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: "temurin"
java-version: 17
@@ -61,9 +69,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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" >> $HOME/.gradle/gradle.properties
echo "org.gradle.parallel=true" >> $HOME/.gradle/gradle.properties
echo "org.gradle.configureondemand=true" >> $HOME/.gradle/gradle.properties
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 }}
{
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g"
echo "org.gradle.caching=true"
echo "org.gradle.parallel=true"
echo "org.gradle.configureondemand=true"
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 -1
View File
@@ -24,10 +24,11 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: "temurin"
java-version: 17
- uses: gradle/actions/wrapper-validation@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
- name: Build ${{ matrix.flavor }}
run: |
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" >> gradle.properties
+2 -1
View File
@@ -6,7 +6,7 @@
name: Auto approve sync
on:
pull_request_target:
pull_request_target: # zizmor: ignore[dangerous-triggers]
branches:
- master
- main
@@ -38,3 +38,4 @@ jobs:
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: "temurin"
java-version: 17
+8 -4
View File
@@ -4,6 +4,7 @@
# SPDX-FileCopyrightText: 2023-2024 Andy Scherzinger <[email protected]>
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-FileCopyrightText: 2025 Marcel Hibbe <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "CodeQL"
@@ -22,7 +23,7 @@ permissions:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
@@ -34,16 +35,19 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set Swap Space
if: runner.environment == 'github-hosted'
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
with:
swap-size-gb: 10
- name: Initialize CodeQL
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
languages: ${{ matrix.language }}
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: "temurin"
java-version: 17
@@ -53,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@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: "temurin"
java-version: 17
@@ -1,29 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2023 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "Validate Gradle Wrapper"
on:
pull_request:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: validate-gradle-wrapper-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0
+6 -1
View File
@@ -15,8 +15,13 @@ on:
schedule:
- cron: '30 1 * * *'
permissions:
contents: read
pull-requests: write
jobs:
pr-feedback:
if: ${{ github.repository_owner == 'nextcloud' }}
runs-on: ubuntu-latest
steps:
- name: The get-github-handles-from-website action
@@ -31,7 +36,7 @@ jobs:
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
- uses: marcelklehr/pr-feedback-action@1883b38a033fb16f576875e0cf45f98b857655c4
- uses: nextcloud/pr-feedback-action@f0cab224dea8e1f282f9451de322f323c78fc7a5 # main
with:
feedback-message: |
Hello there,
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
- name: set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
with:
distribution: "temurin"
+12 -8
View File
@@ -9,7 +9,7 @@
name: Auto approve renovate PRs
on:
pull_request_target:
pull_request_target: # zizmor: ignore[dangerous-triggers]
branches:
- main
- master
@@ -24,7 +24,7 @@ concurrency:
jobs:
auto-approve-merge:
if: github.actor == 'renovate[bot]'
if: github.event.pull_request.user.login == 'renovate[bot]'
runs-on: ubuntu-latest
permissions:
# for hmarr/auto-approve-action to approve PRs
@@ -46,13 +46,17 @@ jobs:
# GitHub actions bot approve
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
if: startsWith(steps.branchname.outputs.branch, 'renovate/')
if: github.actor == 'renovate'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Enable GitHub auto merge
- name: Auto merge
uses: alexwilson/enable-github-automerge-action@main
if: startsWith(steps.branchname.outputs.branch, 'renovate/')
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
# Enable GitHub auto merge
- name: Enable Pull Request Automerge
if: github.actor == 'renovate'
run: gh pr merge --merge --auto
env:
GH_TOKEN: ${{ secrets.AUTOMERGE }}
+2 -2
View File
@@ -34,7 +34,7 @@ jobs:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: results.sarif
results_format: sarif
@@ -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@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
sarif_file: results.sarif
+6 -6
View File
@@ -28,14 +28,14 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Gradle cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: AVD cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
id: avd-cache
with:
path: |
@@ -43,7 +43,7 @@ jobs:
~/.android/adb*
key: avd-${{ matrix.api-level }}
- uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: "temurin"
java-version: 17
@@ -56,7 +56,7 @@ jobs:
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
@@ -87,7 +87,7 @@ jobs:
- name: Run screenshot tests
env:
SHOT_TEST: "true"
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
@@ -102,7 +102,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}}
- name: Archive Espresso results
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: ${{ always() }}
with:
name: Report-${{ matrix.color }}-${{ matrix.scheme }}
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
with:
days-before-stale: 28
days-before-close: 14
+4 -4
View File
@@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: "temurin"
java-version: 17
@@ -33,7 +33,7 @@ jobs:
if: ${{ always() }}
run: scripts/deleteOldComments.sh "test" "Unit" ${{github.event.number}}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
- name: Run unit tests with coverage
run: ./gradlew jacocoTestGplayDebugUnitTest
- name: Upload failing results
@@ -42,14 +42,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "test" "Unit" ${{github.event.number}}
- name: Upload coverage to codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
fail_ci_if_error: true
- name: Upload jacoco artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: test-results
path: app/build/reports/tests/testGplayDebugUnitTest/
+33 -28
View File
@@ -9,24 +9,26 @@ GEM
public_suffix (>= 2.0.2, < 7.0)
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.1021.0)
aws-sdk-core (3.214.0)
aws-eventstream (1.4.0)
aws-partitions (1.1115.0)
aws-sdk-core (3.225.2)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
base64
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.96.0)
aws-sdk-core (~> 3, >= 3.210.0)
logger
aws-sdk-kms (1.104.0)
aws-sdk-core (~> 3, >= 3.225.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.176.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-s3 (1.189.1)
aws-sdk-core (~> 3, >= 3.225.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.10.1)
aws-sigv4 (1.12.1)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
base64 (0.2.0)
base64 (0.3.0)
cgi (0.4.1)
claide (1.1.0)
colored (1.2)
@@ -34,7 +36,7 @@ GEM
commander (4.6.0)
highline (~> 2.0.0)
declarative (0.0.20)
digest-crc (0.6.5)
digest-crc (0.7.0)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.6.20240107)
dotenv (2.8.1)
@@ -59,8 +61,8 @@ GEM
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-multipart (1.1.0)
multipart-post (~> 2.0)
faraday-net_http (1.0.2)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
@@ -68,8 +70,8 @@ GEM
faraday-retry (1.0.3)
faraday_middleware (1.2.1)
faraday (~> 1.0)
fastimage (2.3.1)
fastlane (2.226.0)
fastimage (2.4.0)
fastlane (2.228.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
@@ -109,7 +111,7 @@ GEM
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.4.0)
xcpretty (~> 0.4.1)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-huawei_appgallery_connect (1.0.31)
cgi
@@ -132,12 +134,12 @@ GEM
google-apis-core (>= 0.11.0, < 2.a)
google-apis-storage_v1 (0.31.0)
google-apis-core (>= 0.11.0, < 2.a)
google-cloud-core (1.7.1)
google-cloud-core (1.8.0)
google-cloud-env (>= 1.0, < 3.a)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.4.0)
google-cloud-errors (1.5.0)
google-cloud-storage (1.47.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
@@ -155,34 +157,37 @@ GEM
highline (2.0.3)
http-cookie (1.0.8)
domain_name (~> 0.5)
httpclient (2.8.3)
httpclient (2.9.0)
mutex_m
jmespath (1.6.2)
json (2.9.0)
jwt (2.9.3)
json (2.12.2)
jwt (2.10.1)
base64
logger (1.7.0)
mini_magick (4.13.2)
mini_mime (1.1.5)
multi_json (1.15.0)
multipart-post (2.4.1)
mutex_m (0.3.0)
nanaimo (0.4.0)
naturally (2.2.1)
naturally (2.2.2)
nkf (0.2.0)
optparse (0.6.0)
os (1.1.4)
plist (3.7.1)
public_suffix (6.0.1)
rake (13.2.1)
plist (3.7.2)
public_suffix (6.0.2)
rake (13.3.0)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.3.9)
rexml (3.4.1)
rouge (3.28.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
rubyzip (2.4.1)
security (0.1.5)
signet (0.19.0)
signet (0.20.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
@@ -209,7 +214,7 @@ GEM
colored2 (~> 3.1)
nanaimo (~> 0.4.0)
rexml (>= 3.3.6, < 4.0)
xcpretty (0.4.0)
xcpretty (0.4.1)
rouge (~> 3.28.0)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)
+1 -1
View File
@@ -4,7 +4,7 @@
-->
# [Nextcloud](https://nextcloud.com) Android app :iphone:
[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/android)](https://api.reuse.software/info/github.com/nextcloud/android) [![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/80401cb343854343b4d94acbfb72d3ec)](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com\&utm_medium=referral\&utm_content=nextcloud/android\&utm_campaign=Badge_Grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest)
[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/android)](https://api.reuse.software/info/github.com/nextcloud/android) [![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/fb4cf26336774ee3a5c9adfe829c41aa)](https://app.codacy.com/gh/nextcloud/android/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
alt="Download from Google Play"
+132 -130
View File
@@ -16,11 +16,11 @@ import org.gradle.internal.jvm.Jvm
buildscript {
dependencies {
classpath "com.android.tools.build:gradle:$androidPluginVersion"
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.27'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.7"
classpath libs.spotbugs.gradle.plugin
classpath libs.kotlin.gradle.plugin
classpath libs.detekt.gradle.plugin
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
classpath 'com.karumi:shot:6.1.0'
classpath "com.karumi:shot:6.1.0"
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath "org.jacoco:org.jacoco.report:$jacoco_version"
classpath "org.jacoco:org.jacoco.agent:$jacoco_version"
@@ -28,39 +28,39 @@ buildscript {
}
plugins {
id "org.jetbrains.kotlin.plugin.compose" version "2.1.0"
id "com.diffplug.spotless" version "6.25.0"
id "org.jetbrains.kotlin.kapt" version "2.1.0"
id 'com.google.devtools.ksp' version '2.1.0-1.0.29' apply false
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.spotless)
alias(libs.plugins.kapt)
alias(libs.plugins.ksp) apply false
}
apply plugin: 'com.android.application'
apply plugin: "com.android.application"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
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'
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: "shot"
}
apply plugin: 'com.google.devtools.ksp'
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
exclude group: "org.jetbrains", module: "annotations-java5" // via prism4j, already using annotations explicitly
// check for updates every build
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
cacheChangingModulesFor 0, "seconds"
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
}
}
@@ -78,25 +78,25 @@ configurations.configureEach {
// semantic versioning for version code
def versionMajor = 3
def versionMinor = 30
def versionMinor = 33
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('=')
def (key, value) = it.tokenize("=")
ndkEnv.put(key, value)
}
def perfAnalysis = project.hasProperty('perfAnalysis')
def perfAnalysis = project.hasProperty("perfAnalysis")
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'
namespace "com.owncloud.android"
testNamespace "${namespace}.test"
androidResources {
@@ -105,12 +105,12 @@ android {
defaultConfig {
applicationId "com.nextcloud.client"
minSdkVersion 24
minSdkVersion 26
targetSdkVersion 35
compileSdk 35
buildConfigField 'boolean', 'CI', ciBuild.toString()
buildConfigField 'boolean', 'RUNTIME_PERF_ANALYSIS', perfAnalysis.toString()
buildConfigField "boolean", "CI", ciBuild.toString()
buildConfigField "boolean", "RUNTIME_PERF_ANALYSIS", perfAnalysis.toString()
javaCompileOptions {
annotationProcessorOptions {
@@ -127,7 +127,7 @@ android {
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'
testInstrumentationRunnerArguments disableAnalytics: "true"
versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
@@ -146,7 +146,7 @@ android {
buildTypes {
debug {
testCoverageEnabled(project.hasProperty('coverage'))
testCoverageEnabled(project.hasProperty("coverage"))
resConfigs "xxxhdpi"
}
}
@@ -158,17 +158,17 @@ android {
productFlavors {
// used for f-droid
generic {
applicationId 'com.nextcloud.client'
applicationId "com.nextcloud.client"
dimension "default"
}
gplay {
applicationId 'com.nextcloud.client'
applicationId "com.nextcloud.client"
dimension "default"
}
huawei {
applicationId 'com.nextcloud.client'
applicationId "com.nextcloud.client"
dimension "default"
}
@@ -197,18 +197,18 @@ android {
// 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
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/**'
source "src"
include "**/*.java"
exclude "**/gen/**"
classpath = files()
}
@@ -217,9 +217,9 @@ android {
ignoreFailures = true // should continue checking
ruleSets = []
source 'src'
include '**/*.java'
exclude '**/gen/**'
source "src"
include "**/*.java"
exclude "**/gen/**"
reports {
xml {
@@ -231,7 +231,7 @@ android {
}
}
check.dependsOn 'checkstyle', 'spotbugsGplayDebug', 'pmd', 'lint', 'spotlessKotlinCheck', 'detekt'
check.dependsOn "checkstyle", "spotbugsGplayDebug", "pmd", "lint", "spotlessKotlinCheck", "detekt"
buildFeatures {
dataBinding true
@@ -252,7 +252,7 @@ android {
lint {
abortOnError false
checkGeneratedSources true
disable 'MissingTranslation', 'GradleDependency', 'VectorPath', 'IconMissingDensityFolder', 'IconDensities', 'GoogleAppIndexingWarning', 'MissingDefaultResource', 'InvalidPeriodicWorkRequestInterval', 'StringFormatInvalid', 'MissingQuantity'
disable "MissingTranslation", "GradleDependency", "VectorPath", "IconMissingDensityFolder", "IconDensities", "GoogleAppIndexingWarning", "MissingDefaultResource", "InvalidPeriodicWorkRequestInterval", "StringFormatInvalid", "MissingQuantity"
htmlOutput file("$project.buildDir/reports/lint/lint.html")
htmlReport true
}
@@ -269,62 +269,84 @@ android {
dependencies {
implementation("com.github.nextcloud:android-library:$androidLibraryVersion") {
exclude group: 'org.ogce', module: 'xpp3' // unused in Android and brings wrong Junit version
exclude group: "org.ogce", module: "xpp3" // unused in Android and brings wrong Junit version
}
// splash screen dependency ref: https://developer.android.com/develop/ui/views/launch/splash-screen/migrate
implementation libs.splashscreen
// Jetpack Compose
implementation(platform("androidx.compose:compose-bom:2024.12.01"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.material3:material3")
debugImplementation("androidx.compose.ui:ui-tooling")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation(platform(libs.compose.bom))
implementation(libs.compose.ui)
implementation(libs.compose.ui.graphics)
implementation(libs.compose.material3)
debugImplementation(libs.compose.ui.tooling)
implementation(libs.compose.ui.tooling.preview)
compileOnly 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
// Media3
implementation libs.media3.ui
implementation libs.media3.session
implementation libs.media3.exoplayer
implementation libs.media3.datasource
// Room
implementation libs.room.runtime
ksp "androidx.room:room-compiler:$roomVersion"
androidTestImplementation libs.room.testing
// 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
compileOnly "org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2"
// remove after entire switch to lib v2
implementation "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
implementation 'org.apache.jackrabbit:jackrabbit-webdav:2.13.5' // remove after entire switch to lib v2
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.jakewharton:disklrucache:2.0.2'
implementation "org.apache.jackrabbit:jackrabbit-webdav:2.13.5" // remove after entire switch to lib v2
implementation "androidx.constraintlayout:constraintlayout:2.2.1"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
implementation "com.google.android.material:material:1.12.0"
implementation "com.jakewharton:disklrucache:2.0.2"
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation 'androidx.webkit:webkit:1.12.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.3.7'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7"
implementation "androidx.lifecycle:lifecycle-service:2.8.7"
implementation "androidx.webkit:webkit:1.14.0"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.exifinterface:exifinterface:1.4.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.9.1"
implementation "androidx.lifecycle:lifecycle-service:2.9.1"
implementation "androidx.work:work-runtime:$workRuntime"
implementation "androidx.work:work-runtime-ktx:$workRuntime"
implementation "androidx.fragment:fragment-ktx:1.8.5"
implementation 'com.github.albfernandez:juniversalchardet:2.0.3' // need this version for Android <7
compileOnly 'com.google.code.findbugs:annotations:3.0.1u2'
implementation 'commons-io:commons-io:2.18.0'
implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.12.1'
implementation 'org.lukhnos:nnio:0.3.1'
implementation 'org.bouncycastle:bcpkix-jdk18on:1.79'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'com.github.nextcloud-deps:sectioned-recyclerview:0.6.1'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.29'
implementation 'com.github.nextcloud-deps:qrcodescanner:0.1.2.4' // 'com.github.blikoon:QRCodeScanner:0.1.2'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation('com.github.bumptech.glide:glide:3.8.0') {
implementation "androidx.fragment:fragment-ktx:1.8.8"
implementation "com.github.albfernandez:juniversalchardet:2.5.0" // need this version for Android <7
compileOnly "com.google.code.findbugs:annotations:3.0.1u2"
implementation "commons-io:commons-io:2.19.0"
implementation "org.greenrobot:eventbus:3.3.1"
implementation "com.googlecode.ez-vcard:ez-vcard:0.12.1"
implementation "org.lukhnos:nnio:0.3.1"
implementation "org.bouncycastle:bcpkix-jdk18on:1.81"
implementation "com.google.code.gson:gson:2.13.1"
implementation "com.github.nextcloud-deps:sectioned-recyclerview:0.6.1"
implementation "com.github.chrisbanes:PhotoView:2.3.0"
implementation "pl.droidsonroids.gif:android-gif-drawable:1.2.29"
implementation "com.github.nextcloud-deps:qrcodescanner:0.1.2.4" // "com.github.blikoon:QRCodeScanner:0.1.2"
implementation "com.google.android.flexbox:flexbox:3.0.0"
implementation("com.github.bumptech.glide:glide:3.8.0") {
exclude group: "com.android.support"
}
implementation 'com.caverock:androidsvg:1.4'
implementation 'androidx.annotation:annotation:1.9.1'
implementation 'com.vanniktech:emoji-google:0.21.0'
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
implementation "com.caverock:androidsvg:1.4"
implementation "androidx.annotation:annotation:1.9.1"
implementation "com.vanniktech:emoji-google:0.21.0"
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.9.1")
// document scanner not available on FDroid (generic) due to OpenCV binaries
gplayImplementation project(':appscan')
huaweiImplementation project(':appscan')
qaImplementation project(':appscan')
gplayImplementation project(":appscan")
huaweiImplementation project(":appscan")
qaImplementation project(":appscan")
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.13.0'
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.9'
spotbugsPlugins "com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0"
spotbugsPlugins "com.mebigfatguy.fb-contrib:fb-contrib:7.6.10"
implementation "com.google.dagger:dagger:$daggerVersion"
implementation "com.google.dagger:dagger-android:$daggerVersion"
@@ -332,17 +354,12 @@ dependencies {
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$daggerVersion"
implementation 'org.conscrypt:conscrypt-android:2.5.3'
implementation "org.conscrypt:conscrypt-android:2.5.3"
implementation "androidx.media3:media3-ui:$androidxMediaVersion"
implementation "androidx.media3:media3-session:$androidxMediaVersion"
implementation "androidx.media3:media3-exoplayer:$androidxMediaVersion"
implementation "androidx.media3:media3-datasource-okhttp:$androidxMediaVersion"
implementation 'me.zhanghai.android.fastscroll:library:1.3.0'
implementation "me.zhanghai.android.fastscroll:library:1.3.0"
// Shimmer animation
implementation 'io.github.elye:loaderviewlibrary:3.0.0'
implementation "io.github.elye:loaderviewlibrary:3.0.0"
// dependencies for markdown rendering
implementation "io.noties.markwon:core:$markwonVersion"
@@ -356,88 +373,73 @@ dependencies {
kapt "io.noties:prism4j-bundler:$prismVersion"
// dependencies for image cropping and rotation
implementation 'com.vanniktech:android-image-cropper:4.6.0'
implementation "com.vanniktech:android-image-cropper:4.6.0"
implementation 'org.osmdroid:osmdroid-android:6.1.20'
implementation "org.osmdroid:osmdroid-android:6.1.20"
implementation('org.mnode.ical4j:ical4j:3.0.0') {
['org.apache.commons', 'commons-logging'].each {
implementation("org.mnode.ical4j:ical4j:3.0.0") {
["org.apache.commons", "commons-logging"].each {
exclude group: "$it"
}
}
if (perfAnalysis) {
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.14'
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.14"
}
// dependencies for local unit tests
testImplementation 'junit:junit:4.13.2'
testImplementation "junit:junit:4.13.2"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "androidx.test:core:$androidxTestVersion"
testImplementation 'org.json:json:20240303'
testImplementation "org.json:json:20250517"
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
testImplementation 'androidx.arch.core:core-testing:2.2.0'
testImplementation "androidx.arch.core:core-testing:2.2.0"
testImplementation "io.mockk:mockk:$mockkVersion"
testImplementation "io.mockk:mockk-android:$mockkVersion"
// dependencies for instrumented tests
// JUnit4 Rules
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation "androidx.test.ext:junit:1.2.1"
androidTestImplementation "androidx.test:rules:$androidxTestVersion"
// Android JUnit Runner
androidTestImplementation "androidx.test:runner:1.6.2"
androidTestUtil "androidx.test:orchestrator:1.5.1"
androidTestImplementation "androidx.test:core-ktx:$androidxTestVersion"
// Espresso
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-web:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-accessibility:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-idling-resource:$espressoVersion"
// Mocking support
androidTestImplementation 'com.github.tmurakami:dexopener:2.0.5' // required to allow mocking on API 27 and older
androidTestImplementation "com.github.tmurakami:dexopener:2.0.5" // required to allow mocking on API 27 and older
androidTestImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
androidTestImplementation "org.mockito:mockito-core:$mockitoVersion"
androidTestImplementation("org.mockito:mockito-android:$mockitoVersion")
androidTestImplementation "io.mockk:mockk-android:$mockkVersion"
androidTestImplementation 'androidx.arch.core:core-testing:2.2.0'
androidTestImplementation "androidx.arch.core:core-testing:2.2.0"
androidTestImplementation "com.facebook.testing.screenshot:core:0.15.0"
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
// androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
// 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 'tools.fastlane:screengrab:2.1.1'
androidTestImplementation "tools.fastlane:screengrab:2.1.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.github.stateless4j:stateless4j:2.6.0"
// upon each update first test: new registration, receive push
gplayImplementation "com.google.firebase:firebase-messaging:24.1.0"
gplayImplementation 'com.google.android.gms:play-services-base:18.5.0'
gplayImplementation 'com.google.android.play:review-ktx:2.0.2'
gplayImplementation "com.google.firebase:firebase-messaging:24.1.1"
gplayImplementation "com.google.android.gms:play-services-base:18.5.0"
gplayImplementation "com.google.android.play:review-ktx:2.0.2"
implementation 'com.github.nextcloud.android-common:ui:0.24.0'
implementation "androidx.room:room-runtime:$roomVersion"
ksp "androidx.room:room-compiler:$roomVersion"
androidTestImplementation "androidx.room:room-testing:$roomVersion"
implementation "com.github.nextcloud.android-common:ui:$androidCommonLibraryVersion"
implementation "io.coil-kt:coil:2.7.0"
// splash screen dependency ref: https://developer.android.com/develop/ui/views/launch/splash-screen/migrate
implementation 'androidx.core:core-splashscreen:1.0.1'
}
configurations.configureEach {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
force 'org.objenesis:objenesis:3.4'
cacheChangingModulesFor 0, "seconds"
force "org.objenesis:objenesis:3.4"
eachDependency { details ->
if ('org.jacoco' == details.requested.group) {
if ("org.jacoco" == details.requested.group) {
details.useVersion "$jacoco_version"
}
}
@@ -483,7 +485,7 @@ jacoco {
spotbugs {
ignoreFailures = true // should continue checking
effort = Effort.MAX
reportLevel = Confidence.valueOf('MEDIUM')
reportLevel = Confidence.valueOf("MEDIUM")
}
tasks.withType(SpotBugsTask){task ->
@@ -500,11 +502,11 @@ tasks.withType(SpotBugsTask){task ->
html {
required = true
outputLocation = file("$project.buildDir/reports/spotbugs/spotbugs.html")
stylesheet = 'fancy.xsl'
stylesheet = "fancy.xsl"
}
}
}
ksp {
arg('room.schemaLocation', "$projectDir/schemas")
arg("room.schemaLocation", "$projectDir/schemas")
}
-4
View File
@@ -37,10 +37,6 @@
<issue id="UnusedQuantity">
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="StringFormatCount">
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="ExtraTranslation">
<ignore path="**/strings.xml"/>
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

@@ -31,7 +31,7 @@ class RegisteredUserTest {
val ownCloudAccount = OwnCloudAccount(uri, credentials)
val server = Server(
uri = URI(uri.toString()),
version = OwnCloudVersion.nextcloud_17
version = OwnCloudVersion.nextcloud_18
)
return RegisteredUser(
account = account,
@@ -6,6 +6,7 @@
*/
package com.nextcloud.client.jobs
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
@@ -19,13 +20,19 @@ import androidx.work.WorkInfo
import androidx.work.WorkManager
import com.nextcloud.client.account.User
import com.nextcloud.client.core.Clock
import com.nextcloud.utils.extensions.toByteArray
import com.owncloud.android.lib.common.utils.Log_OC
import org.apache.commons.io.FileUtils
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Assert.fail
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import org.junit.runner.RunWith
import org.junit.runners.Suite
import org.mockito.ArgumentMatcher
@@ -37,6 +44,8 @@ import org.mockito.kotlin.eq
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever
import java.io.File
import java.io.IOException
import java.util.Date
import java.util.UUID
import java.util.concurrent.CountDownLatch
@@ -82,9 +91,11 @@ class BackgroundJobManagerTest {
internal lateinit var workManager: WorkManager
internal lateinit var clock: Clock
internal lateinit var backgroundJobManager: BackgroundJobManagerImpl
internal lateinit var context: Context
@Before
fun setUpFixture() {
context = mock()
user = mock()
whenever(user.accountName).thenReturn(USER_ACCOUNT_NAME)
workManager = mock()
@@ -302,16 +313,36 @@ class BackgroundJobManagerTest {
private lateinit var jobInfo: LiveData<JobInfo?>
private lateinit var request: OneTimeWorkRequest
@get:Rule
var folder: TemporaryFolder = TemporaryFolder()
@Before
fun setUp() {
var selectedContactsFile: File? = null
try {
selectedContactsFile = folder.newFile("hashset_cache.txt")
} catch (_: IOException) {
Log_OC.e("ImmediateContactsImport", "error creating temporary test file in ")
fail("hashset_cache cannot be found")
}
if (selectedContactsFile == null) {
fail("hashset_cache cannot be found")
}
val requestCaptor: KArgumentCaptor<OneTimeWorkRequest> = argumentCaptor()
workInfo = MutableLiveData()
whenever(workManager.getWorkInfoByIdLiveData(any())).thenReturn(workInfo)
val selectedContacts = intArrayOf(1, 2, 3)
val contractsAsByteArray = selectedContacts.toByteArray()
FileUtils.writeByteArrayToFile(selectedContactsFile, contractsAsByteArray)
jobInfo = backgroundJobManager.startImmediateContactsImport(
contactsAccountName = "name",
contactsAccountType = "type",
vCardFilePath = "/path/to/vcard/file",
selectedContacts = intArrayOf(1, 2, 3)
selectedContactsFilePath = selectedContactsFile!!.absolutePath
)
verify(workManager).enqueueUniqueWork(
any(),
@@ -13,21 +13,26 @@ import com.nextcloud.client.core.ClockImpl
import com.nextcloud.client.preferences.AppPreferences
import com.nextcloud.client.preferences.AppPreferencesImpl
import com.nextcloud.test.RetryTestRule
import com.owncloud.android.AbstractIT
import com.nextcloud.utils.extensions.toByteArray
import com.owncloud.android.AbstractOnServerIT
import com.owncloud.android.R
import com.owncloud.android.datamodel.OCFile
import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.operations.DownloadFileOperation
import ezvcard.Ezvcard
import ezvcard.VCard
import org.apache.commons.io.FileUtils
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Assert.fail
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import java.io.BufferedInputStream
import java.io.File
import java.io.FileInputStream
import java.io.IOException
class ContactsBackupIT : AbstractOnServerIT() {
private val workManager = WorkManager.getInstance(targetContext)
@@ -43,14 +48,38 @@ class ContactsBackupIT : AbstractOnServerIT() {
@get:Rule
val retryTestRule = RetryTestRule() // flaky test
@get:Rule
var folder: TemporaryFolder = TemporaryFolder()
private val vcard: String = "vcard.vcf"
private var selectedContactsFile: File? = null
@Before
fun setup() {
try {
selectedContactsFile = folder.newFile("hashset_cache.txt")
} catch (_: IOException) {
Log_OC.e("ContactsBackupIT", "error creating temporary test file in ")
}
}
@Test
fun importExport() {
val intArray = intArrayOf(0)
if (selectedContactsFile == null) {
fail("hashset_cache cannot be found")
}
val contractsAsByteArray = intArray.toByteArray()
FileUtils.writeByteArrayToFile(selectedContactsFile, contractsAsByteArray)
// import file to local contacts
backgroundJobManager.startImmediateContactsImport(null, null, getFile(vcard).absolutePath, intArray)
backgroundJobManager.startImmediateContactsImport(
null,
null,
getFile(vcard).absolutePath,
selectedContactsFile!!.absolutePath
)
longSleep()
// export contact
@@ -86,7 +115,7 @@ class ContactsBackupIT : AbstractOnServerIT() {
fail("ocFile.storagePath cannot be null")
}
assertTrue(DownloadFileOperation(user, ocFile, AbstractIT.targetContext).execute(client).isSuccess)
assertTrue(DownloadFileOperation(user, ocFile, targetContext).execute(client).isSuccess)
val file = ocFile?.storagePath?.let { File(it) }
if (file == null) {
@@ -9,6 +9,7 @@ package com.nextcloud.utils
import com.nextcloud.utils.autoRename.AutoRename
import com.owncloud.android.AbstractOnServerIT
import com.owncloud.android.datamodel.e2e.v2.decrypted.DecryptedFile
import com.owncloud.android.lib.resources.status.NextcloudVersion
import com.owncloud.android.lib.resources.status.OCCapability
import org.junit.Before
@@ -122,25 +123,25 @@ class AutoRenameTests : AbstractOnServerIT() {
@Test
fun testMiddleInvalidFolderChar() {
val folderPath = "abc/def/kg$forbiddenFilenameCharacter/lmo/pp"
val result = AutoRename.rename(folderPath, capability, true)
val expectedFolderName = "abc/def/kg_/lmo/pp"
val folderPath = "abc/def/kg$forbiddenFilenameCharacter/lmo/pp/"
val result = AutoRename.rename(folderPath, capability)
val expectedFolderName = "abc/def/kg_/lmo/pp/"
assert(result == expectedFolderName) { "Expected $expectedFolderName but got $result" }
}
@Test
fun testEndInvalidFolderChar() {
val folderPath = "abc/def/kg/lmo/pp$forbiddenFilenameCharacter"
val result = AutoRename.rename(folderPath, capability, true)
val expectedFolderName = "abc/def/kg/lmo/pp_"
val folderPath = "abc/def/kg/lmo/pp$forbiddenFilenameCharacter/"
val result = AutoRename.rename(folderPath, capability)
val expectedFolderName = "abc/def/kg/lmo/pp_/"
assert(result == expectedFolderName) { "Expected $expectedFolderName but got $result" }
}
@Test
fun testStartInvalidFolderChar() {
val folderPath = "${forbiddenFilenameCharacter}abc/def/kg/lmo/pp"
val result = AutoRename.rename(folderPath, capability, true)
val expectedFolderName = "_abc/def/kg/lmo/pp"
val folderPath = "${forbiddenFilenameCharacter}abc/def/kg/lmo/pp/"
val result = AutoRename.rename(folderPath, capability)
val expectedFolderName = "_abc/def/kg/lmo/pp/"
assert(result == expectedFolderName) { "Expected $expectedFolderName but got $result" }
}
@@ -155,16 +156,16 @@ class AutoRenameTests : AbstractOnServerIT() {
@Test
fun testStartsWithPathSeparator() {
val folderPath = "/abc/def/kg/lmo/pp$forbiddenFilenameCharacter/file.txt/"
val result = AutoRename.rename(folderPath, capability, true)
val result = AutoRename.rename(folderPath, capability)
val expectedFolderName = "/abc/def/kg/lmo/pp_/file.txt/"
assert(result == expectedFolderName) { "Expected $expectedFolderName but got $result" }
}
@Test
fun testStartsWithPathSeparatorAndValidFilepath() {
val folderPath = "/COm02/2569.webp"
val result = AutoRename.rename(folderPath, capability, true)
val expectedFolderName = "/COm02/2569.webp"
val folderPath = "/COm02/2569.webp/"
val result = AutoRename.rename(folderPath, capability)
val expectedFolderName = "/COm02/2569.webp/"
assert(result == expectedFolderName) { "Expected $expectedFolderName but got $result" }
}
@@ -175,4 +176,58 @@ class AutoRenameTests : AbstractOnServerIT() {
val expectedFilename = "_file.txt"
assert(result == expectedFilename) { "Expected $expectedFilename but got $result" }
}
@Test
fun testRenameExtensionForFolder() {
val filename = "/Pictures/@User/SubDir/08.16.07 Ka Yel/"
val result = AutoRename.rename(filename, capability)
assert(result == filename) { "Expected $filename but got $result" }
}
@Test
fun testRenameExtensionForFile() {
val filename = "/Pictures/@User/SubDir/08.16.07 Ka Yel.TXT"
val result = AutoRename.rename(filename, capability)
val expectedFilename = "/Pictures/@User/SubDir/08.16.07 Ka Yel.txt"
assert(result == expectedFilename) { "Expected $expectedFilename but got $result" }
}
@Test
fun testE2EEFile() {
val decryptedFile = DecryptedFile(
authenticationTag = "HQlWBdm+gYC5kZwWnqXR1Q==",
filename = "a:a.jpg",
nonce = "sigyys8SfPZSScDJ860vYw==",
mimetype = "image/jpeg",
key = "sigyys8SfPZSScDJ860vYw=="
)
val result = AutoRename.rename(decryptedFile.filename, capability)
val expectedFilename = "a_a.jpg"
assert(result == expectedFilename) { "Expected $expectedFilename but got $result" }
}
@Test
fun testRemovingLeadingWhitespace() {
val filename = " readme.txt"
val result = AutoRename.rename(filename, capability)
val expectedFilename = "readme.txt"
assert(result == expectedFilename) { "Expected $expectedFilename but got $result" }
}
@Test
fun testRemovingTrailingWhitespace() {
val filename = "readme.txt "
val result = AutoRename.rename(filename, capability)
val expectedFilename = "readme.txt"
assert(result == expectedFilename) { "Expected $expectedFilename but got $result" }
}
@Test
fun testRemovingTrailingAndLeadingWhitespace() {
val filename = " readme.txt "
val result = AutoRename.rename(filename, capability)
val expectedFilename = "readme.txt"
assert(result == expectedFilename) { "Expected $expectedFilename but got $result" }
}
}
@@ -0,0 +1,268 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.utils
import com.google.gson.Gson
import com.owncloud.android.datamodel.quickPermission.QuickPermissionType
import com.owncloud.android.lib.resources.shares.OCShare
import com.owncloud.android.lib.resources.shares.ShareType
import com.owncloud.android.lib.resources.shares.attributes.ShareAttributes
import com.owncloud.android.ui.fragment.util.SharePermissionManager
import junit.framework.TestCase.assertEquals
import junit.framework.TestCase.assertFalse
import junit.framework.TestCase.assertNotNull
import junit.framework.TestCase.assertTrue
import org.junit.Test
@Suppress("TooManyFunctions")
class SharePermissionManagerTest {
private fun createShare(sharePermission: Int, isFolder: Boolean = false, attributesJson: String? = null): OCShare {
return if (isFolder) {
OCShare("/test")
.apply {
permissions = sharePermission
attributes = attributesJson
shareType = ShareType.INTERNAL
sharedDate = 1188206955
shareWith = "User 1"
sharedWithDisplayName = "User 1"
}
} else {
OCShare("/test.png")
.apply {
permissions = sharePermission
attributes = attributesJson
shareType = ShareType.INTERNAL
sharedDate = 1188206955
shareWith = "User 1"
sharedWithDisplayName = "User 1"
}
}.apply {
this.isFolder = isFolder
}
}
// region Permission change tests
@Test
fun testTogglePermissionShouldAddPermissionFlagWhenChecked() {
val initialPermission = OCShare.READ_PERMISSION_FLAG
val updatedPermission =
SharePermissionManager.togglePermission(true, initialPermission, OCShare.UPDATE_PERMISSION_FLAG)
val updatedShare = createShare(updatedPermission)
assertTrue(SharePermissionManager.isCustomPermission(updatedShare))
}
@Test
fun testTogglePermissionShouldRemovePermissionFlagWhenUnchecked() {
val initialPermission = OCShare.READ_PERMISSION_FLAG + OCShare.UPDATE_PERMISSION_FLAG
val updatedPermission =
SharePermissionManager.togglePermission(false, initialPermission, OCShare.UPDATE_PERMISSION_FLAG)
val updatedShare = createShare(updatedPermission)
assertTrue(SharePermissionManager.isViewOnly(updatedShare))
}
// endregion
// region HasPermissions tests
@Test
fun testHasPermissionShouldReturnTrueIfPermissionPresent() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.UPDATE_PERMISSION_FLAG
assertTrue(SharePermissionManager.hasPermission(permission, OCShare.UPDATE_PERMISSION_FLAG))
}
@Test
fun testHasPermissionShouldReturnFalseIfPermissionNotPresent() {
val permission = OCShare.READ_PERMISSION_FLAG
assertFalse(SharePermissionManager.hasPermission(permission, OCShare.UPDATE_PERMISSION_FLAG))
}
// endregion
// region Helper Method Tests
@Test
fun testCanEditShouldReturnTrueIfAllPermissionsPresent() {
val share = createShare(OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER, isFolder = true)
assertTrue(SharePermissionManager.canEdit(share))
}
@Test
fun testCanEditShouldReturnFalseIfPermissionsAreInsufficient() {
val share = createShare(OCShare.READ_PERMISSION_FLAG)
assertFalse(SharePermissionManager.canEdit(share))
}
@Test
fun testIsViewOnlyShouldReturnTrueIfOnlyReadPermissionSet() {
val share = createShare(OCShare.READ_PERMISSION_FLAG)
assertTrue(SharePermissionManager.isViewOnly(share))
}
@Test
fun testIsFileRequestShouldReturnTrueIfOnlyCreatePermissionSetOnFolder() {
val share = createShare(OCShare.CREATE_PERMISSION_FLAG, isFolder = true)
assertTrue(SharePermissionManager.isFileRequest(share))
}
@Test
fun testIsFileRequestShouldReturnFalseIfOnlyCreatePermissionSetOnFile() {
val share = createShare(OCShare.CREATE_PERMISSION_FLAG)
assertFalse(SharePermissionManager.isFileRequest(share))
}
@Test
fun testIsSecureFileDropShouldReturnTrueIfReadAndCreatePermissionsPresent() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.CREATE_PERMISSION_FLAG
val share = createShare(permission)
assertTrue(SharePermissionManager.isSecureFileDrop(share))
}
@Test
fun testCanReshareShouldReturnTrueIfSharePermissionIsPresent() {
val share = createShare(OCShare.SHARE_PERMISSION_FLAG)
assertTrue(SharePermissionManager.canReshare(share))
}
@Test
fun testGetMaximumPermissionForFolder() {
assertEquals(
OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER,
SharePermissionManager.getMaximumPermission(isFolder = true)
)
}
@Test
fun testGetMaximumPermissionForFile() {
assertEquals(
OCShare.MAXIMUM_PERMISSIONS_FOR_FILE,
SharePermissionManager.getMaximumPermission(isFolder = false)
)
}
// endregion
// region GetSelectedTypeTests
@Test
fun testGetSelectedTypeShouldReturnCanEditWhenFullPermissionsGiven() {
val share = createShare(OCShare.MAXIMUM_PERMISSIONS_FOR_FILE)
assertEquals(QuickPermissionType.CAN_EDIT, SharePermissionManager.getSelectedType(share, encrypted = false))
}
@Test
fun testGetSelectedTypeShouldReturnSecureFileDropWhenEncryptedAndReadCreateGiven() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.CREATE_PERMISSION_FLAG
val share = createShare(permission)
assertEquals(
QuickPermissionType.SECURE_FILE_DROP,
SharePermissionManager.getSelectedType(share, encrypted = true)
)
}
@Test
fun testGetSelectedTypeShouldReturnFileRequestWhenCreatePermissionGiven() {
val share = createShare(OCShare.CREATE_PERMISSION_FLAG, isFolder = true)
assertEquals(QuickPermissionType.FILE_REQUEST, SharePermissionManager.getSelectedType(share, encrypted = false))
}
@Test
fun testGetSelectedTypeShouldReturnViewOnlyWhenReadPermissionGiven() {
val share = createShare(OCShare.READ_PERMISSION_FLAG)
assertEquals(QuickPermissionType.VIEW_ONLY, SharePermissionManager.getSelectedType(share, encrypted = false))
}
@Test
fun testGetSelectedTypeShouldReturnCustomPermissionOnlyWhenCustomPermissionGiven() {
val share = createShare(OCShare.READ_PERMISSION_FLAG + OCShare.UPDATE_PERMISSION_FLAG)
assertEquals(
QuickPermissionType.CUSTOM_PERMISSIONS,
SharePermissionManager.getSelectedType(share, encrypted = false)
)
}
@Test
fun testGetSelectedTypeShouldReturnNoneOnlyWhenNoPermissionGiven() {
val share = createShare(OCShare.NO_PERMISSION)
assertEquals(
QuickPermissionType.NONE,
SharePermissionManager.getSelectedType(share, encrypted = false)
)
}
// endregion
// region CustomPermissions Tests
@Test
fun testIsCustomPermissionShouldReturnFalseWhenNoPermissionsGiven() {
val permission = OCShare.NO_PERMISSION
val share = createShare(permission, isFolder = false)
assertFalse(SharePermissionManager.isCustomPermission(share))
}
@Test
fun testIsCustomPermissionShouldReturnFalseWhenNoReadPermissionsGiven() {
val permission = OCShare.SHARE_PERMISSION_FLAG + OCShare.UPDATE_PERMISSION_FLAG
val share = createShare(permission, isFolder = false)
assertFalse(SharePermissionManager.isCustomPermission(share))
}
@Test
fun testIsCustomPermissionShouldReturnTrueWhenUpdatePermissionsGivenOnFile() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.UPDATE_PERMISSION_FLAG
val share = createShare(permission, isFolder = false)
assertTrue(SharePermissionManager.isCustomPermission(share))
}
@Test
fun testIsCustomPermissionShouldReturnTrueWhenUpdateAndSharePermissionsGivenOnFile() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.UPDATE_PERMISSION_FLAG + OCShare.SHARE_PERMISSION_FLAG
val share = createShare(permission, isFolder = false)
assertTrue(SharePermissionManager.isCustomPermission(share))
}
@Test
fun testIsCustomPermissionShouldReturnFalseWhenCreatePermissionsGivenOnFile() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.CREATE_PERMISSION_FLAG
val share = createShare(permission, isFolder = false)
assertFalse(SharePermissionManager.isCustomPermission(share))
}
@Test
fun testIsCustomPermissionShouldReturnFalseWhenDeletePermissionsGivenOnFile() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.DELETE_PERMISSION_FLAG
val share = createShare(permission, isFolder = false)
assertFalse(SharePermissionManager.isCustomPermission(share))
}
@Test
fun testIsCustomPermissionShouldReturnTrueWhenCreatePermissionsGivenOnFolder() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.CREATE_PERMISSION_FLAG
val share = createShare(permission, isFolder = true)
assertTrue(SharePermissionManager.isCustomPermission(share))
}
@Test
fun testIsCustomPermissionShouldReturnTrueWhenMixedPermissionsOnFile() {
val permission = OCShare.READ_PERMISSION_FLAG + OCShare.UPDATE_PERMISSION_FLAG
val share = createShare(permission, isFolder = false)
assertTrue(SharePermissionManager.isCustomPermission(share))
}
// endregion
// region Attributes Tests
@Test
fun testToggleAllowDownloadAndSyncShouldCreateAttributeJsonIfNoneExists() {
val json = SharePermissionManager.toggleAllowDownloadAndSync(true, null)
assertNotNull(json)
val downloadAttribute = ShareAttributes.createDownloadAttributes(true)
val expectedJson = Gson().toJson(listOf(downloadAttribute))
assertEquals(json, expectedJson)
}
@Test
fun testIsAllowDownloadAndSyncEnabledShouldReturnFalseIfAttributeIsMissing() {
val share = createShare(OCShare.READ_PERMISSION_FLAG, attributesJson = null)
assertFalse(SharePermissionManager.isAllowDownloadAndSyncEnabled(share))
}
// endregion
}
@@ -38,7 +38,6 @@ import com.nextcloud.test.RandomStringGenerator;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.ArbitraryDataProviderImpl;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.datamodel.UploadsStorageManager;
import com.owncloud.android.db.OCUpload;
import com.owncloud.android.files.services.NameCollisionPolicy;
@@ -254,19 +253,12 @@ public abstract class AbstractIT {
file.mkdirs();
return file;
} else {
switch (name) {
case "empty.txt":
return createFile("empty.txt", 0);
case "nonEmpty.txt":
return createFile("nonEmpty.txt", 100);
case "chunkedFile.txt":
return createFile("chunkedFile.txt", 500000);
default:
return createFile(name, 0);
}
return switch (name) {
case "empty.txt" -> createFile("empty.txt", 0);
case "nonEmpty.txt" -> createFile("nonEmpty.txt", 100);
case "chunkedFile.txt" -> createFile("chunkedFile.txt", 500000);
default -> createFile(name, 0);
};
}
}
@@ -355,7 +347,7 @@ public abstract class AbstractIT {
}
}
public OCFile createFolder(String remotePath) {
public void createFolder(String remotePath) {
RemoteOperationResult check = new ExistenceCheckRemoteOperation(remotePath, false).execute(client);
if (!check.isSuccess()) {
@@ -363,8 +355,6 @@ public abstract class AbstractIT {
.execute(client)
.isSuccess());
}
return getStorageManager().getFileByDecryptedRemotePath(remotePath.endsWith("/") ? remotePath : remotePath + "/");
}
public void uploadFile(File file, String remotePath) {
@@ -13,8 +13,6 @@ import android.accounts.OperationCanceledException;
import android.content.ActivityNotFoundException;
import android.net.Uri;
import android.os.Bundle;
import android.os.NetworkOnMainThreadException;
import com.nextcloud.client.account.User;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.account.UserAccountManagerImpl;
@@ -8,8 +8,6 @@
*/
package com.owncloud.android;
import android.os.NetworkOnMainThreadException;
import com.nextcloud.client.account.UserAccountManagerImpl;
import com.nextcloud.client.device.BatteryStatus;
import com.nextcloud.client.device.PowerManagementService;
@@ -201,6 +199,23 @@ public class UploadIT extends AbstractOnServerIT {
uploadOCUpload(ocUpload);
}
@Test
public void testUploadInNonExistingParentFolder() {
createFolder(FOLDER + "2/3/4/");
assertTrue(new RemoveFileOperation(getStorageManager().getFileByPath(FOLDER),
false,
user,
false,
targetContext,
getStorageManager()
).execute(client).isSuccess());
OCUpload ocUpload = new OCUpload(FileStorageUtils.getTemporalPath(account.name) + "/empty.txt",
FOLDER + "2/3/4/1.txt", account.name);
uploadOCUpload(ocUpload);
}
@Test
public void testUploadOnChargingOnlyButNotCharging() {
OCUpload ocUpload = new OCUpload(FileStorageUtils.getTemporalPath(account.name) + "/empty.txt",
@@ -469,7 +484,7 @@ public class UploadIT extends AbstractOnServerIT {
assertEquals(remotePath, ocFile.getRemotePath());
assertEquals(creationTimestamp, ocFile.getCreationTimestamp());
assertTrue(uploadTimestamp - 10 < ocFile.getUploadTimestamp() ||
assertTrue(uploadTimestamp - 10 < ocFile.getUploadTimestamp() &&
uploadTimestamp + 10 > ocFile.getUploadTimestamp());
}
@@ -36,6 +36,7 @@ public class OCFileUnitTest {
private static final String STORAGE_PATH = "/mnt/sd/localpath/to/a/file.txt";
private static final String MIME_TYPE = "text/plain";
private static final long FILE_LENGTH = 9876543210L;
private static final long UPLOADED_TIMESTAMP = 8765431109L;
private static final long CREATION_TIMESTAMP = 8765432109L;
private static final long MODIFICATION_TIMESTAMP = 7654321098L;
private static final long MODIFICATION_TIMESTAMP_AT_LAST_SYNC_FOR_DATA = 6543210987L;
@@ -63,6 +64,7 @@ public class OCFileUnitTest {
mFile.setStoragePath(STORAGE_PATH);
mFile.setMimeType(MIME_TYPE);
mFile.setFileLength(FILE_LENGTH);
mFile.setUploadTimestamp(UPLOADED_TIMESTAMP);
mFile.setCreationTimestamp(CREATION_TIMESTAMP);
mFile.setModificationTimestamp(MODIFICATION_TIMESTAMP);
mFile.setModificationTimestampAtLastSyncForData(MODIFICATION_TIMESTAMP_AT_LAST_SYNC_FOR_DATA);
@@ -93,6 +95,7 @@ public class OCFileUnitTest {
assertThat(fileReadFromParcel.getStoragePath(), is(STORAGE_PATH));
assertThat(fileReadFromParcel.getMimeType(), is(MIME_TYPE));
assertThat(fileReadFromParcel.getFileLength(), is(FILE_LENGTH));
assertThat(fileReadFromParcel.getUploadTimestamp(), is(UPLOADED_TIMESTAMP));
assertThat(fileReadFromParcel.getCreationTimestamp(), is(CREATION_TIMESTAMP));
assertThat(fileReadFromParcel.getModificationTimestamp(), is(MODIFICATION_TIMESTAMP));
assertThat(
@@ -15,7 +15,9 @@ import org.junit.Test;
import java.io.IOException;
import static junit.framework.TestCase.assertEquals;
import static junit.framework.TestCase.assertNotNull;
import static junit.framework.TestCase.assertNull;
import static junit.framework.TestCase.assertTrue;
public class RemoveFileOperationIT extends AbstractOnServerIT {
@@ -50,6 +52,50 @@ public class RemoveFileOperationIT extends AbstractOnServerIT {
getStorageManager())
.execute(client)
.isSuccess());
assertNull(getStorageManager().getFileByPath(parent));
assertNull(getStorageManager().getFileByPath(path));
assertNotNull(getStorageManager().getFileByPath("/"));
}
@Test
public void deleteOnlyParentFolder() {
// create some more data
createFolder("/test1/");
createFolder("/test2/");
String parent = "/test/";
String path = parent + "folder1/";
OCFile parentFolder = getStorageManager().getFileByPath(parent);
assertNull(parentFolder);
OCFile folder = getStorageManager().getFileByPath(path);
assertNull(folder);
createFolder(path);
folder = getStorageManager().getFileByPath(path);
assertNotNull(folder);
parentFolder = getStorageManager().getFileByPath(parent);
assertNotNull(parentFolder);
assertEquals(5, getStorageManager().getAllFiles().size());
assertTrue(new RemoveFileOperation(parentFolder,
false,
user,
false,
targetContext,
getStorageManager())
.execute(client)
.isSuccess());
assertNull(getStorageManager().getFileByPath(parent));
assertNull(getStorageManager().getFileByPath(path));
assertNotNull(getStorageManager().getFileByPath("/"));
assertEquals(3, getStorageManager().getAllFiles().size());
}
@Test
@@ -10,6 +10,7 @@ package com.owncloud.android.ui.activity;
import android.content.Intent;
import com.nextcloud.client.account.UserAccountManagerImpl;
import com.nextcloud.utils.extensions.FileDataStorageManagerExtensionsKt;
import com.owncloud.android.AbstractIT;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.FileDataStorageManager;
@@ -45,11 +46,13 @@ public class ConflictsResolveActivityIT extends AbstractIT {
@ScreenshotTest
public void screenshotTextFiles() {
OCFile newFile = new OCFile("/newFile.txt");
newFile.setRemoteId("0001");
newFile.setFileLength(56000);
newFile.setModificationTimestamp(1522019340);
newFile.setStoragePath(FileStorageUtils.getSavePath(user.getAccountName()) + "/nonEmpty.txt");
OCFile existingFile = new OCFile("/newFile.txt");
existingFile.setRemoteId("0002");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);
@@ -62,13 +65,14 @@ public class ConflictsResolveActivityIT extends AbstractIT {
ConflictsResolveActivity sut = activityRule.launchActivity(intent);
ConflictsResolveDialog dialog = ConflictsResolveDialog.newInstance(targetContext,
newFile,
existingFile,
UserAccountManagerImpl
.fromContext(targetContext)
.getUser()
);
ConflictsResolveDialog dialog = ConflictsResolveDialog.newInstance(
FileDataStorageManagerExtensionsKt.getDecryptedPath(storageManager, existingFile),
targetContext,
newFile,
existingFile,
UserAccountManagerImpl
.fromContext(targetContext)
.getUser());
dialog.showDialog(sut);
getInstrumentation().waitForIdleSync();
@@ -185,11 +189,13 @@ public class ConflictsResolveActivityIT extends AbstractIT {
user.getAccountName());
OCFile existingFile = new OCFile("/newFile.txt");
existingFile.setRemoteId("0001");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);
OCFile newFile = new OCFile("/newFile.txt");
newFile.setFileLength(56000);
newFile.setRemoteId("0002");
newFile.setModificationTimestamp(1522019340);
newFile.setStoragePath(FileStorageUtils.getSavePath(user.getAccountName()) + "/nonEmpty.txt");
@@ -276,11 +282,13 @@ public class ConflictsResolveActivityIT extends AbstractIT {
user.getAccountName());
OCFile existingFile = new OCFile("/newFile.txt");
existingFile.setRemoteId("0001");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);
OCFile newFile = new OCFile("/newFile.txt");
newFile.setFileLength(56000);
newFile.setRemoteId("0002");
newFile.setModificationTimestamp(1522019340);
newFile.setStoragePath(FileStorageUtils.getSavePath(user.getAccountName()) + "/nonEmpty.txt");
@@ -77,7 +77,7 @@ class UploadFilesActivityIT : AbstractIT() {
waitForIdleSync()
longSleep()
screenshot(sut.fileListFragment.binding.listRoot)
screenshot(sut.fileListFragment.binding?.listRoot)
}
@Test
@@ -153,7 +153,7 @@ class UploadFilesActivityIT : AbstractIT() {
onIdleSync {
val screenShotName = createName(testClassName + "_" + "selectAll", "")
screenshotViaName(sut.fileListFragment.binding.listRoot, screenShotName)
screenshotViaName(sut.fileListFragment.binding?.listRoot, screenShotName)
}
}
}
@@ -587,11 +587,12 @@ public class DialogFragmentIT extends AbstractIT {
}
OCFile ocFile = new OCFile("/test.md");
ocFile.setRemoteId("0001");
final FileActionsBottomSheet sut = FileActionsBottomSheet.newInstance(ocFile, false);
showDialog(sut);
}
private FileDisplayActivity showDialog(DialogFragment dialog) {
private void showDialog(DialogFragment dialog) {
Intent intent = new Intent(targetContext, FileDisplayActivity.class);
FileDisplayActivity sut = activityRule.getActivity();
@@ -600,10 +601,10 @@ public class DialogFragmentIT extends AbstractIT {
sut = activityRule.launchActivity(intent);
}
return showDialog(sut, dialog);
showDialog(sut, dialog);
}
private FileDisplayActivity showDialog(FileDisplayActivity sut, DialogFragment dialog) {
private void showDialog(FileDisplayActivity sut, DialogFragment dialog) {
dialog.show(sut.getSupportFragmentManager(), "");
getInstrumentation().waitForIdleSync();
@@ -614,7 +615,6 @@ public class DialogFragmentIT extends AbstractIT {
screenshot(Objects.requireNonNull(dialog.requireDialog().getWindow()).getDecorView());
return sut;
}
private void hideCursors(ViewGroup viewGroup) {
File diff suppressed because it is too large. Load diff
@@ -1,6 +1,7 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Alper Ozturk <alper.ozturk@nextcloud.com>
* SPDX-FileCopyrightText: 2022 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
@@ -11,69 +12,89 @@ import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import androidx.test.espresso.intent.rule.IntentsTestRule
import androidx.annotation.UiThread
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.IdlingRegistry
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.isRoot
import com.nextcloud.test.TestActivity
import com.owncloud.android.AbstractIT
import com.owncloud.android.datamodel.OCFile
import com.owncloud.android.datamodel.ThumbnailsCacheManager
import com.owncloud.android.datamodel.ThumbnailsCacheManager.InitDiskCacheTask
import com.owncloud.android.datamodel.ThumbnailsCacheManager.PREFIX_RESIZED_IMAGE
import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.lib.resources.files.model.ImageDimension
import com.owncloud.android.utils.EspressoIdlingResource
import com.owncloud.android.utils.ScreenshotTest
import org.junit.After
import org.junit.Assert.assertNotNull
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import java.util.Random
class GalleryFragmentIT : AbstractIT() {
@get:Rule
val testActivityRule = IntentsTestRule(TestActivity::class.java, true, false)
lateinit var activity: TestActivity
val random = Random(1)
private val testClassName = "com.owncloud.android.ui.fragment.GalleryFragmentIT"
private val random = Random(1)
@Before
fun before() {
activity = testActivityRule.launchActivity(null)
fun registerIdlingResource() {
IdlingRegistry.getInstance().register(EspressoIdlingResource.countingIdlingResource)
// initialise thumbnails cache on background thread
InitDiskCacheTask().execute()
@Suppress("DEPRECATION")
ThumbnailsCacheManager.initDiskCacheAsync()
}
@After
override fun after() {
fun unregisterIdlingResource() {
IdlingRegistry.getInstance().unregister(EspressoIdlingResource.countingIdlingResource)
ThumbnailsCacheManager.clearCache()
super.after()
}
@Test
@UiThread
@ScreenshotTest
@Test
fun showEmpty() {
val sut = GalleryFragment()
activity.addFragment(sut)
launchActivity<TestActivity>().use { scenario ->
scenario.onActivity { activity ->
onIdleSync {
EspressoIdlingResource.increment()
val sut = GalleryFragment()
activity.addFragment(sut)
EspressoIdlingResource.decrement()
waitForIdleSync()
screenshot(activity)
val screenShotName = createName(testClassName + "_" + "showEmpty", "")
onView(isRoot()).check(matches(isDisplayed()))
screenshotViaName(activity, screenShotName)
}
}
}
}
@Test
@UiThread
@ScreenshotTest
fun showGallery() {
createImage(10000001, 700, 300)
createImage(10000002, 500, 300)
createImage(10000007, 300, 400)
launchActivity<TestActivity>().use { scenario ->
scenario.onActivity { activity ->
onIdleSync {
EspressoIdlingResource.increment()
createImage(10000001, 700, 300)
createImage(10000002, 500, 300)
createImage(10000007, 300, 400)
val sut = GalleryFragment()
activity.addFragment(sut)
val sut = GalleryFragment()
activity.addFragment(sut)
EspressoIdlingResource.decrement()
waitForIdleSync()
shortSleep()
screenshot(activity)
val screenShotName = createName(testClassName + "_" + "showGallery", "")
onView(isRoot()).check(matches(isDisplayed()))
screenshotViaName(activity, screenShotName)
}
}
}
}
private fun createImage(id: Int, width: Int? = null, height: Int? = null) {
@@ -15,6 +15,7 @@ import com.owncloud.android.AbstractIT
import com.owncloud.android.datamodel.OCFile
import com.owncloud.android.lib.resources.shares.ShareType
import com.owncloud.android.lib.resources.shares.ShareeUser
import com.owncloud.android.lib.resources.tags.Tag
import com.owncloud.android.utils.MimeType
import com.owncloud.android.utils.ScreenshotTest
import org.junit.Assert
@@ -50,7 +51,7 @@ class OCFileListFragmentStaticServerIT : AbstractIT() {
fileLength = 3072000
modificationTimestamp = 746443755000
parentId = sut.storageManager.getFileByEncryptedRemotePath("/").fileId
tags = listOf("Top secret")
tags = listOf(Tag("", "Top secret", null))
sut.storageManager.saveFile(this)
}
@@ -72,7 +73,7 @@ class OCFileListFragmentStaticServerIT : AbstractIT() {
fileLength = 12092000
modificationTimestamp = 746143952000
parentId = sut.storageManager.getFileByEncryptedRemotePath("/").fileId
tags = listOf("Confidential", "+5")
tags = listOf(Tag("", "Confidential", null), Tag("", "+5", null))
sut.storageManager.saveFile(this)
}
@@ -391,7 +392,7 @@ class OCFileListFragmentStaticServerIT : AbstractIT() {
testFolder.richWorkspace = "1"
activity.storageManager.saveFile(testFolder)
sut.adapter.currentDirectory = testFolder
sut.adapter.setCurrentDirectory(testFolder)
Assert.assertTrue(sut.adapter.shouldShowHeader())
}
}
@@ -150,7 +150,7 @@ internal class SharedListFragmentIT : AbstractIT() {
sut.runOnUiThread {
fragment.isLoading = false
fragment.mEmptyListContainer.visibility = View.GONE
fragment.mEmptyListContainer?.visibility = View.GONE
fragment.adapter.setData(
shares,
SearchType.SHARED_FILTER,
@@ -502,7 +502,7 @@ public class EncryptionTestIT extends AbstractIT {
// de-serialize
EncryptedFolderMetadataFileV1 encryptedFolderMetadata2 = deserializeJSON(encryptedJson,
new TypeToken<EncryptedFolderMetadataFileV1>() {
new TypeToken<>() {
});
// decrypt
@@ -11,6 +11,7 @@ import com.owncloud.android.AbstractIT
import com.owncloud.android.datamodel.MediaFolder
import com.owncloud.android.datamodel.MediaFolderType
import com.owncloud.android.datamodel.SyncedFolder
import com.owncloud.android.utils.SyncedFolderUtils.hasExcludePrefix
import org.apache.commons.io.FileUtils
import org.junit.AfterClass
import org.junit.Assert
@@ -205,6 +206,21 @@ class SyncedFolderUtilsTest : AbstractIT() {
Assert.assertFalse(SyncedFolderUtils.isQualifyingMediaFolder(folder))
}
@Test
fun testInstantUploadPathIgnoreExcludedPrefixes() {
val testFiles = listOf(
"IMG_nnn.jpg",
"my_documents",
"Music",
".trashed_IMG_nnn.jpg",
".pending_IMG_nnn.jpg",
".nomedia",
".thumbdata_IMG_nnn",
".thumbnail"
).filter { !hasExcludePrefix(it) }
Assert.assertTrue(testFiles.size == 3)
}
companion object {
private const val SELFIE = "selfie.png"
private const val SCREENSHOT = "screenshot.JPG"
@@ -17,11 +17,12 @@ import org.junit.Test
class CapabilityUtilsIT : AbstractIT() {
@Test
fun checkOutdatedWarning() {
assertFalse(test(NextcloudVersion.nextcloud_31))
assertFalse(test(NextcloudVersion.nextcloud_30))
assertFalse(test(NextcloudVersion.nextcloud_29))
assertFalse(test(NextcloudVersion.nextcloud_28))
assertFalse(test(NextcloudVersion.nextcloud_27))
assertTrue(test(NextcloudVersion.nextcloud_29))
assertTrue(test(NextcloudVersion.nextcloud_28))
assertTrue(test(NextcloudVersion.nextcloud_27))
assertTrue(test(NextcloudVersion.nextcloud_26))
assertTrue(test(NextcloudVersion.nextcloud_25))
assertTrue(test(NextcloudVersion.nextcloud_24))
@@ -31,7 +32,6 @@ class CapabilityUtilsIT : AbstractIT() {
assertTrue(test(OwnCloudVersion.nextcloud_20))
assertTrue(test(OwnCloudVersion.nextcloud_19))
assertTrue(test(OwnCloudVersion.nextcloud_18))
assertTrue(test(OwnCloudVersion.nextcloud_17))
}
private fun test(version: OwnCloudVersion): Boolean {
+1 -4
View File
@@ -13,10 +13,7 @@
android:name="android.permission.REQUEST_INSTALL_PACKAGES"
tools:node="remove"/>
<uses-permission
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:node="remove"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
<application
android:name=".MainApp"
+5
View File
@@ -47,6 +47,7 @@
<uses-permission
android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
android:maxSdkVersion="25" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<!--
Apps that target Android 9 (API level 28) or higher and use foreground services
must request the FOREGROUND_SERVICE permission
@@ -263,6 +264,10 @@
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name="com.canhub.cropper.CropImageActivity"
android:exported="false"
tools:replace="android:exported" />
<receiver
android:name="com.nextcloud.receiver.OfflineOperationActionReceiver"
@@ -237,7 +237,7 @@ public class InputStreamBinder extends IInputStreamService.Stub {
case "POST":
method = new PostMethod(requestUrl);
if (requestBodyInputStream != null) {
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream, -1);
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream);
((PostMethod) method).setRequestEntity(requestEntity);
} else if (request.getRequestBody() != null) {
StringRequestEntity requestEntity = new StringRequestEntity(
@@ -251,7 +251,7 @@ public class InputStreamBinder extends IInputStreamService.Stub {
case "PATCH":
method = new PatchMethod(requestUrl);
if (requestBodyInputStream != null) {
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream, -1);
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream);
((PatchMethod) method).setRequestEntity(requestEntity);
} else if (request.getRequestBody() != null) {
StringRequestEntity requestEntity = new StringRequestEntity(
@@ -265,7 +265,7 @@ public class InputStreamBinder extends IInputStreamService.Stub {
case "PUT":
method = new PutMethod(requestUrl);
if (requestBodyInputStream != null) {
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream, -1);
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream);
((PutMethod) method).setRequestEntity(requestEntity);
} else if (request.getRequestBody() != null) {
StringRequestEntity requestEntity = new StringRequestEntity(
@@ -502,12 +502,15 @@ public class InputStreamBinder extends IInputStreamService.Stub {
@VisibleForTesting
public static NameValuePair[] convertMapToNVP(Map<String, String> map) {
NameValuePair[] nvp = new NameValuePair[map.size()];
final var nvp = new NameValuePair[map.size()];
int i = 0;
for (String key : map.keySet()) {
nvp[i] = new NameValuePair(key, map.get(key));
for (Map.Entry<String, String> entry : map.entrySet()) {
final var nameValuePair = new NameValuePair(entry.getKey(), entry.getValue());
nvp[i] = nameValuePair;
i++;
}
return nvp;
}
@@ -9,7 +9,6 @@ package com.nextcloud.client.account;
import android.accounts.Account;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
/**
* This interface provides access to currently selected user.
@@ -80,11 +80,16 @@ class AssistantViewModel(
viewModelScope.launch(Dispatchers.IO) {
val taskTypesResult = repository.getTaskTypes()
if (taskTypesResult.isNullOrEmpty()) {
if (taskTypesResult == null) {
updateSnackbarMessage(R.string.assistant_screen_task_types_error_state_message)
return@launch
}
if (taskTypesResult.isEmpty()) {
updateSnackbarMessage(R.string.assistant_screen_task_list_empty_message)
return@launch
}
_taskTypes.update {
taskTypesResult
}
@@ -262,11 +262,6 @@ private fun EmptyTaskList(
taskTypes: List<TaskTypeData>?,
viewModel: AssistantViewModel
) {
val text = stringResource(
id = R.string.assistant_screen_no_task_available_text,
selectedTaskType?.name ?: ""
)
Column(
modifier = Modifier
.fillMaxSize()
@@ -280,7 +275,11 @@ private fun EmptyTaskList(
Spacer(modifier = Modifier.height(8.dp))
}
CenterText(text = text)
CenterText(
text = stringResource(
id = R.string.assistant_screen_create_a_new_task_from_bottom_right_text
)
)
}
}
@@ -9,6 +9,7 @@ package com.nextcloud.client.assistant.repository
import com.nextcloud.utils.extensions.getRandomString
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import com.owncloud.android.lib.resources.assistant.v2.model.Shape
import com.owncloud.android.lib.resources.assistant.v2.model.Task
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInput
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInputShape
@@ -24,15 +25,15 @@ class AssistantMockRepository(private val giveEmptyTasks: Boolean = false) : Ass
"core:text2text",
"Free text to text prompt",
"Runs an arbitrary prompt through a language model that returns a reply",
listOf(
TaskInputShape(
inputShape = TaskInputShape(
input = Shape(
"Prompt",
"Describe a task that you want the assistant to do or ask a question",
"Text"
)
),
listOf(
TaskOutputShape(
outputShape = TaskOutputShape(
output = Shape(
"Generated reply",
"The generated text from the assistant",
"Text"
@@ -20,14 +20,15 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.nextcloud.client.assistant.extensions.getModifiedAtRepresentation
import com.nextcloud.client.assistant.extensions.getStatusIcon
import com.owncloud.android.R
import com.owncloud.android.lib.resources.assistant.v2.model.Task
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInput
import com.owncloud.android.lib.resources.assistant.v2.model.TaskOutput
@@ -35,7 +36,7 @@ import com.owncloud.android.lib.resources.status.OCCapability
import java.util.concurrent.TimeUnit
@Composable
fun TaskStatusView(task: Task, foregroundColor: Color, capability: OCCapability) {
fun TaskStatusView(task: Task, capability: OCCapability) {
val context = LocalContext.current
Row(
@@ -50,13 +51,13 @@ fun TaskStatusView(task: Task, foregroundColor: Color, capability: OCCapability)
Image(
painter = painterResource(id = iconId),
modifier = Modifier.size(16.dp),
colorFilter = ColorFilter.tint(foregroundColor),
colorFilter = ColorFilter.tint(color = colorResource(R.color.text_color)),
contentDescription = "status icon"
)
description?.let {
Spacer(modifier = Modifier.width(6.dp))
Text(text = description, color = foregroundColor)
Text(text = description, color = colorResource(R.color.text_color))
}
}
}
@@ -141,7 +142,6 @@ private fun TaskStatusViewPreview() {
items(tasks) {
TaskStatusView(
it,
foregroundColor = Color.White,
OCCapability().apply {
versionMayor = 30
}
@@ -32,7 +32,6 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
@@ -40,6 +39,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.nextcloud.client.assistant.taskDetail.TaskDetailBottomSheet
import com.nextcloud.utils.extensions.truncateWithEllipsis
import com.owncloud.android.R
import com.owncloud.android.lib.resources.assistant.v2.model.Task
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInput
@@ -56,7 +56,7 @@ fun TaskView(task: Task, capability: OCCapability, showTaskActions: () -> Unit)
modifier = Modifier
.fillMaxWidth()
.clip(RoundedCornerShape(8.dp))
.background(colorResource(R.color.primary))
.background(color = colorResource(R.color.task_container))
.clickable {
showTaskDetailBottomSheet = true
}
@@ -66,10 +66,11 @@ fun TaskView(task: Task, capability: OCCapability, showTaskActions: () -> Unit)
task.input?.input?.let {
Text(
text = it,
color = Color.White,
text = it.truncateWithEllipsis(30),
color = colorResource(R.color.text_color),
fontSize = 18.sp,
textAlign = TextAlign.Left,
maxLines = 1,
fontWeight = FontWeight.Bold,
modifier = Modifier.width(300.dp)
)
@@ -78,16 +79,10 @@ fun TaskView(task: Task, capability: OCCapability, showTaskActions: () -> Unit)
Spacer(modifier = Modifier.height(12.dp))
task.output?.output?.let {
val output = if (it.length >= 100) {
it.take(100) + "..."
} else {
it
}
Text(
text = output,
text = it.truncateWithEllipsis(100),
fontSize = 18.sp,
color = Color.White,
color = colorResource(R.color.text_color),
textAlign = TextAlign.Left,
modifier = Modifier
.animateContentSize(
@@ -99,10 +94,10 @@ fun TaskView(task: Task, capability: OCCapability, showTaskActions: () -> Unit)
)
}
TaskStatusView(task, foregroundColor = Color.White, capability)
TaskStatusView(task, capability)
if (showTaskDetailBottomSheet) {
TaskDetailBottomSheet(task, capability, showTaskActions = {
TaskDetailBottomSheet(task, showTaskActions = {
showTaskDetailBottomSheet = false
showTaskActions()
}) {
@@ -118,7 +113,7 @@ fun TaskView(task: Task, capability: OCCapability, showTaskActions: () -> Unit)
Icon(
imageVector = Icons.Filled.MoreVert,
contentDescription = "More button",
tint = Color.White
tint = colorResource(R.color.text_color)
)
}
}
@@ -7,11 +7,9 @@
package com.nextcloud.client.assistant.taskDetail
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.spring
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
@@ -19,44 +17,35 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.ModalBottomSheet
import androidx.compose.material3.Text
import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.nextcloud.client.assistant.task.TaskStatusView
import com.nextcloud.utils.extensions.getRandomString
import com.owncloud.android.R
import com.owncloud.android.lib.resources.assistant.v2.model.Task
import com.owncloud.android.lib.resources.assistant.v2.model.TaskInput
import com.owncloud.android.lib.resources.assistant.v2.model.TaskOutput
import com.owncloud.android.lib.resources.status.OCCapability
@Suppress("LongMethod")
@OptIn(ExperimentalFoundationApi::class, ExperimentalMaterial3Api::class)
@Composable
fun TaskDetailBottomSheet(task: Task, capability: OCCapability, showTaskActions: () -> Unit, dismiss: () -> Unit) {
var showInput by remember { mutableStateOf(true) }
fun TaskDetailBottomSheet(task: Task, showTaskActions: () -> Unit, dismiss: () -> Unit) {
val sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true)
ModalBottomSheet(
@@ -84,88 +73,56 @@ fun TaskDetailBottomSheet(task: Task, capability: OCCapability, showTaskActions:
)
}
}
Row(
modifier = Modifier
.fillMaxWidth()
.background(
color = colorResource(id = R.color.light_grey),
shape = RoundedCornerShape(8.dp)
)
) {
TextInputSelectButton(
Modifier.weight(1f),
R.string.assistant_task_detail_screen_input_button_title,
showInput,
onClick = {
showInput = true
}
)
TextInputSelectButton(
Modifier.weight(1f),
R.string.assistant_task_detail_screen_output_button_title,
!showInput,
onClick = {
showInput = false
}
)
}
}
item {
Spacer(modifier = Modifier.height(16.dp))
Column(
modifier = Modifier
.fillMaxSize()
.background(
color = MaterialTheme.colorScheme.secondaryContainer,
shape = RoundedCornerShape(8.dp)
)
.padding(16.dp)
) {
Text(
text = if (showInput) {
task.input?.input ?: ""
} else {
task.output?.output ?: stringResource(R.string.assistant_screen_task_output_empty_text)
},
fontSize = 12.sp,
color = MaterialTheme.colorScheme.onPrimaryContainer,
modifier = Modifier
.animateContentSize(
animationSpec = spring(
dampingRatio = Spring.DampingRatioLowBouncy,
stiffness = Spring.StiffnessLow
)
)
)
}
TaskStatusView(task, foregroundColor = colorResource(R.color.text_color), capability)
Spacer(modifier = Modifier.height(32.dp))
InputOutputCard(task)
}
}
}
}
@Composable
private fun TextInputSelectButton(modifier: Modifier, titleId: Int, highlightCondition: Boolean, onClick: () -> Unit) {
Button(
onClick = onClick,
shape = RoundedCornerShape(8.dp),
colors = if (highlightCondition) {
ButtonDefaults.buttonColors(containerColor = MaterialTheme.colorScheme.primary)
} else {
ButtonDefaults.buttonColors(containerColor = MaterialTheme.colorScheme.secondary)
},
modifier = modifier
.widthIn(min = 0.dp, max = 200.dp)
.padding(horizontal = 4.dp)
fun InputOutputCard(task: Task) {
Column(
modifier = Modifier
.fillMaxWidth()
.background(Color.Transparent, shape = RoundedCornerShape(8.dp))
) {
Text(text = stringResource(id = titleId), color = MaterialTheme.colorScheme.surface)
TitleDescriptionBox(
title = stringResource(R.string.assistant_task_detail_screen_input_button_title),
description = task.input?.input ?: ""
)
Spacer(modifier = Modifier.height(16.dp))
TitleDescriptionBox(
title = stringResource(R.string.assistant_task_detail_screen_output_button_title),
description = task.output?.output ?: stringResource(R.string.assistant_screen_task_output_empty_text)
)
}
}
@Composable
private fun TitleDescriptionBox(title: String, description: String?) {
Text(
text = title,
fontWeight = FontWeight.Bold,
fontSize = 16.sp,
color = colorResource(R.color.text_color)
)
Box(
modifier = Modifier
.fillMaxWidth()
.padding(top = 8.dp)
.background(color = colorResource(R.color.task_container), RoundedCornerShape(8.dp))
.padding(12.dp)
) {
Text(
text = description ?: "",
color = colorResource(R.color.text_color)
)
}
}
@@ -188,9 +145,6 @@ private fun TaskDetailScreenPreview() {
1707692337,
1707692337
),
OCCapability().apply {
versionMayor = 30
},
showTaskActions = {
}
) {
@@ -29,6 +29,7 @@ import com.nextcloud.client.database.entity.SyncedFolderEntity
import com.nextcloud.client.database.entity.UploadEntity
import com.nextcloud.client.database.entity.VirtualEntity
import com.nextcloud.client.database.migrations.DatabaseMigrationUtil
import com.nextcloud.client.database.migrations.MIGRATION_88_89
import com.nextcloud.client.database.migrations.Migration67to68
import com.nextcloud.client.database.migrations.RoomMigration
import com.nextcloud.client.database.migrations.addLegacyMigrations
@@ -68,7 +69,12 @@ import com.owncloud.android.db.ProviderMeta
AutoMigration(from = 81, to = 82),
AutoMigration(from = 82, to = 83),
AutoMigration(from = 83, to = 84),
AutoMigration(from = 84, to = 85, spec = DatabaseMigrationUtil.DeleteColumnSpec::class)
AutoMigration(from = 84, to = 85, spec = DatabaseMigrationUtil.DeleteColumnSpec::class),
AutoMigration(from = 85, to = 86, spec = DatabaseMigrationUtil.ResetCapabilitiesPostMigration::class),
AutoMigration(from = 86, to = 87, spec = DatabaseMigrationUtil.ResetCapabilitiesPostMigration::class),
AutoMigration(from = 87, to = 88, spec = DatabaseMigrationUtil.ResetCapabilitiesPostMigration::class),
// manual migration used for 88 to 89
AutoMigration(from = 89, to = 90)
],
exportSchema = true
)
@@ -101,7 +107,7 @@ abstract class NextcloudDatabase : RoomDatabase() {
.addLegacyMigrations(clock, context)
.addMigrations(RoomMigration())
.addMigrations(Migration67to68())
.fallbackToDestructiveMigration()
.addMigrations(MIGRATION_88_89)
.build()
}
return instance!!
@@ -17,6 +17,9 @@ interface FileDao {
@Query("SELECT * FROM filelist WHERE _id = :id LIMIT 1")
fun getFileById(id: Long): FileEntity?
@Query("SELECT * FROM filelist WHERE local_id = :localId LIMIT 1")
fun getFileByLocalId(localId: Long): FileEntity?
@Query("SELECT * FROM filelist WHERE path = :path AND file_owner = :fileOwner LIMIT 1")
fun getFileByEncryptedRemotePath(path: String, fileOwner: String): FileEntity?
@@ -130,5 +130,15 @@ data class CapabilityEntity(
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_FORBIDDEN_FORBIDDEN_FILENAME_EXTENSIONS)
val forbiddenFileNameExtensions: Int?,
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_FORBIDDEN_FORBIDDEN_FILENAME_BASE_NAMES)
val forbiddenFilenameBaseNames: Int?
val forbiddenFilenameBaseNames: Int?,
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_FILES_DOWNLOAD_LIMIT)
val filesDownloadLimit: Int?,
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_FILES_DOWNLOAD_LIMIT_DEFAULT)
val filesDownloadLimitDefault: Int?,
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_RECOMMENDATION)
val recommendation: Int?,
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_NOTES_FOLDER_PATH)
val notesFolderPath: String?,
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_DEFAULT_PERMISSIONS)
val defaultPermissions: Int?
)
@@ -119,5 +119,7 @@ data class FileEntity(
@ColumnInfo(name = ProviderTableMeta.FILE_INTERNAL_TWO_WAY_SYNC_TIMESTAMP)
val internalTwoWaySync: Long?,
@ColumnInfo(name = ProviderTableMeta.FILE_INTERNAL_TWO_WAY_SYNC_RESULT)
val internalTwoWaySyncResult: String?
val internalTwoWaySyncResult: String?,
@ColumnInfo(name = ProviderTableMeta.FILE_UPLOADED)
val uploaded: Long?
)
@@ -54,5 +54,11 @@ data class ShareEntity(
@ColumnInfo(name = ProviderTableMeta.OCSHARES_SHARE_LINK)
val shareLink: String?,
@ColumnInfo(name = ProviderTableMeta.OCSHARES_SHARE_LABEL)
val shareLabel: String?
val shareLabel: String?,
@ColumnInfo(name = ProviderTableMeta.OCSHARES_DOWNLOADLIMIT_LIMIT)
val downloadLimitLimit: Int?,
@ColumnInfo(name = ProviderTableMeta.OCSHARES_DOWNLOADLIMIT_COUNT)
val downloadLimitCount: Int?,
@ColumnInfo(name = ProviderTableMeta.OCSHARES_ATTRIBUTES)
val attributes: String?
)
@@ -10,6 +10,7 @@ package com.nextcloud.client.database.migrations
import androidx.room.DeleteColumn
import androidx.room.migration.AutoMigrationSpec
import androidx.sqlite.db.SupportSQLiteDatabase
import com.nextcloud.client.database.migrations.model.SQLiteColumnType
object DatabaseMigrationUtil {
@@ -18,6 +19,32 @@ object DatabaseMigrationUtil {
const val TYPE_INTEGER_PRIMARY_KEY = "INTEGER PRIMARY KEY"
const val KEYWORD_NOT_NULL = "NOT NULL"
fun addColumnIfNotExists(
db: SupportSQLiteDatabase,
tableName: String,
columnName: String,
columnType: SQLiteColumnType
) {
val cursor = db.query("PRAGMA table_info($tableName)")
var columnExists = false
while (cursor.moveToNext()) {
val nameIndex = cursor.getColumnIndex("name")
if (nameIndex != -1) {
val existingColumnName = cursor.getString(nameIndex)
if (existingColumnName == columnName) {
columnExists = true
break
}
}
}
cursor.close()
if (!columnExists) {
db.execSQL("ALTER TABLE $tableName ADD COLUMN `$columnName` ${columnType.value}")
}
}
/**
* Utility method to add or remove columns from a table
*
@@ -0,0 +1,30 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Alper Ozturk <alper.ozturk@nextcloud.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.client.database.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.nextcloud.client.database.migrations.model.SQLiteColumnType
import com.owncloud.android.db.ProviderMeta.ProviderTableMeta
val MIGRATION_88_89 = object : Migration(88, 89) {
override fun migrate(database: SupportSQLiteDatabase) {
DatabaseMigrationUtil.addColumnIfNotExists(
database,
ProviderTableMeta.FILE_TABLE_NAME,
ProviderTableMeta.FILE_UPLOADED,
SQLiteColumnType.INTEGER_DEFAULT_NULL
)
DatabaseMigrationUtil.addColumnIfNotExists(
database,
ProviderTableMeta.CAPABILITIES_TABLE_NAME,
ProviderTableMeta.CAPABILITIES_NOTES_FOLDER_PATH,
SQLiteColumnType.TEXT_DEFAULT_NULL
)
}
}
@@ -0,0 +1,13 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Alper Ozturk <alper.ozturk@nextcloud.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.client.database.migrations.model
enum class SQLiteColumnType(val value: String) {
INTEGER_DEFAULT_NULL("INTEGER DEFAULT NULL"),
TEXT_DEFAULT_NULL("TEXT DEFAULT NULL")
}
@@ -33,6 +33,7 @@ import com.nextcloud.ui.ImageDetailFragment;
import com.nextcloud.ui.SetStatusDialogFragment;
import com.nextcloud.ui.composeActivity.ComposeActivity;
import com.nextcloud.ui.fileactions.FileActionsBottomSheet;
import com.nextcloud.ui.trashbinFileActions.TrashbinFileActionsBottomSheet;
import com.nmc.android.ui.LauncherActivity;
import com.owncloud.android.MainApp;
import com.owncloud.android.authentication.AuthenticatorActivity;
@@ -97,6 +98,7 @@ import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;
import com.owncloud.android.ui.dialog.StoragePermissionDialogFragment;
import com.owncloud.android.ui.dialog.SyncFileNotEnoughSpaceDialogFragment;
import com.owncloud.android.ui.dialog.SyncedFolderPreferencesDialogFragment;
import com.owncloud.android.ui.dialog.TermsOfServiceDialog;
import com.owncloud.android.ui.dialog.setupEncryption.SetupEncryptionDialogFragment;
import com.owncloud.android.ui.fragment.ExtendedListFragment;
import com.owncloud.android.ui.fragment.FeatureFragment;
@@ -124,7 +126,6 @@ import com.owncloud.android.ui.preview.PreviewTextFileFragment;
import com.owncloud.android.ui.preview.PreviewTextFragment;
import com.owncloud.android.ui.preview.PreviewTextStringFragment;
import com.owncloud.android.ui.preview.pdf.PreviewPdfFragment;
import com.nextcloud.ui.trashbinFileActions.TrashbinFileActionsBottomSheet;
import com.owncloud.android.ui.trashbin.TrashbinActivity;
import androidx.annotation.OptIn;
@@ -502,4 +503,6 @@ abstract class ComponentsModule {
@ContributesAndroidInjector
abstract BackgroundPlayerService backgroundPlayerService();
@ContributesAndroidInjector
abstract TermsOfServiceDialog termsOfServiceDialog();
}
@@ -127,9 +127,7 @@ class EditImageActivity :
}
menu?.findItem(R.id.custom_menu_placeholder_item)?.apply {
icon = saveIcon
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
contentDescription = getString(R.string.common_save)
}
contentDescription = getString(R.string.common_save)
}
return true
}
@@ -16,6 +16,7 @@ import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutManager
@@ -51,9 +52,9 @@ class EtmBackgroundJobsFragment : EtmBaseFragment(), Injectable {
private val executionLogRow = view.findViewById<View>(R.id.etm_background_execution_logs_row)
val executionTimesRow = view.findViewById<View>(R.id.etm_background_execution_times_row)
var progressEnabled: Boolean = progressRow.visibility == View.VISIBLE
var progressEnabled: Boolean = progressRow.isVisible
get() {
return progressRow.visibility == View.VISIBLE
return progressRow.isVisible
}
set(value) {
field = value
@@ -64,9 +65,9 @@ class EtmBackgroundJobsFragment : EtmBaseFragment(), Injectable {
}
}
var logsEnabled: Boolean = executionLogRow.visibility == View.VISIBLE
var logsEnabled: Boolean = executionLogRow.isVisible
get() {
return executionLogRow.visibility == View.VISIBLE
return executionLogRow.isVisible
}
set(value) {
field = value
@@ -165,11 +166,13 @@ class EtmBackgroundJobsFragment : EtmBaseFragment(), Injectable {
return view
}
@Deprecated("Deprecated in Java")
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater)
inflater.inflate(R.menu.fragment_etm_background_jobs, menu)
}
@Deprecated("Deprecated in Java")
override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (item.itemId) {
R.id.etm_background_jobs_cancel -> {
@@ -15,6 +15,7 @@ import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
@@ -46,9 +47,9 @@ class EtmFileTransferFragment : EtmBaseFragment() {
val progress = view.findViewById<TextView>(R.id.etm_transfer_progress)
private val progressRow = view.findViewById<View>(R.id.etm_transfer_progress_row)
var progressEnabled: Boolean = progressRow.visibility == View.VISIBLE
var progressEnabled: Boolean = progressRow.isVisible
get() {
return progressRow.visibility == View.VISIBLE
return progressRow.isVisible
}
set(value) {
field = value
@@ -95,7 +95,7 @@ interface BackgroundJobManager {
* @param contactsAccountName Target contacts account name; null for local contacts
* @param contactsAccountType Target contacts account type; null for local contacts
* @param vCardFilePath Path to file containing all contact entries
* @param selectedContacts List of contact indices to import from [vCardFilePath] file
* @param selectedContactsFilePath File path of list of contact indices to import from [vCardFilePath] file
*
* @return Job info with current status; status is null if job does not exist
*/
@@ -103,7 +103,7 @@ interface BackgroundJobManager {
contactsAccountName: String?,
contactsAccountType: String?,
vCardFilePath: String,
selectedContacts: IntArray
selectedContactsFilePath: String
): LiveData<JobInfo?>
/**
@@ -308,13 +308,13 @@ internal class BackgroundJobManagerImpl(
contactsAccountName: String?,
contactsAccountType: String?,
vCardFilePath: String,
selectedContacts: IntArray
selectedContactsFilePath: String
): LiveData<JobInfo?> {
val data = Data.Builder()
.putString(ContactsImportWork.ACCOUNT_NAME, contactsAccountName)
.putString(ContactsImportWork.ACCOUNT_TYPE, contactsAccountType)
.putString(ContactsImportWork.VCARD_FILE_PATH, vCardFilePath)
.putIntArray(ContactsImportWork.SELECTED_CONTACTS_INDICES, selectedContacts)
.putString(ContactsImportWork.SELECTED_CONTACTS_FILE_PATH, selectedContactsFilePath)
.build()
val constraints = Constraints.Builder()
@@ -584,9 +584,14 @@ internal class BackgroundJobManagerImpl(
val tag = startFileUploadJobTag(user)
val constraints = Constraints.Builder()
.setRequiredNetworkType(NetworkType.CONNECTED)
.build()
val request = oneTimeRequestBuilder(FileUploadWorker::class, JOB_FILES_UPLOAD, user)
.addTag(tag)
.setInputData(data)
.setConstraints(constraints)
.build()
workManager.enqueueUniqueWork(tag, ExistingWorkPolicy.KEEP, request)
@@ -626,7 +631,9 @@ internal class BackgroundJobManagerImpl(
.setInputData(data)
.build()
workManager.enqueueUniqueWork(tag, ExistingWorkPolicy.REPLACE, request)
// Since for each file new FileDownloadWorker going to be scheduled,
// better to use ExistingWorkPolicy.KEEP policy.
workManager.enqueueUniqueWork(tag, ExistingWorkPolicy.KEEP, request)
}
override fun getFileUploads(user: User): LiveData<List<JobInfo>> {
@@ -16,12 +16,16 @@ import android.provider.ContactsContract
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.nextcloud.client.logger.Logger
import com.nextcloud.utils.extensions.toIntArray
import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.ui.fragment.contactsbackup.BackupListFragment
import com.owncloud.android.ui.fragment.contactsbackup.VCardComparator
import ezvcard.Ezvcard
import ezvcard.VCard
import org.apache.commons.io.FileUtils
import third_parties.ezvcard_android.ContactOperations
import java.io.BufferedInputStream
import java.io.File
import java.io.FileInputStream
import java.io.IOException
import java.util.Collections
@@ -39,15 +43,27 @@ class ContactsImportWork(
const val ACCOUNT_TYPE = "account_type"
const val ACCOUNT_NAME = "account_name"
const val VCARD_FILE_PATH = "vcard_file_path"
const val SELECTED_CONTACTS_INDICES = "selected_contacts_indices"
const val SELECTED_CONTACTS_FILE_PATH = "selected_contacts_file_path"
}
@Suppress("ComplexMethod", "NestedBlockDepth") // legacy code
@Suppress("ComplexMethod", "NestedBlockDepth", "LongMethod", "ReturnCount") // legacy code
override fun doWork(): Result {
val vCardFilePath = inputData.getString(VCARD_FILE_PATH) ?: ""
val contactsAccountName = inputData.getString(ACCOUNT_NAME)
val contactsAccountType = inputData.getString(ACCOUNT_TYPE)
val selectedContactsIndices = inputData.getIntArray(SELECTED_CONTACTS_INDICES) ?: IntArray(0)
val selectedContactsFilePath = inputData.getString(SELECTED_CONTACTS_FILE_PATH)
if (selectedContactsFilePath == null) {
Log_OC.d(TAG, "selectedContactsFilePath is null")
return Result.failure()
}
val selectedContactsFile = File(selectedContactsFilePath)
if (!selectedContactsFile.exists()) {
Log_OC.d(TAG, "selectedContactsFile not exists")
return Result.failure()
}
val selectedContactsIndices = readCheckedContractsFromFile(selectedContactsFile)
val inputStream = BufferedInputStream(FileInputStream(vCardFilePath))
val vCards = ArrayList<VCard>()
@@ -79,16 +95,21 @@ class ContactsImportWork(
cursor.moveToNext()
}
}
for (contactIndex in selectedContactsIndices) {
val vCard = vCards[contactIndex]
if (BackupListFragment.getDisplayName(vCard).isEmpty()) {
if (!ownContactMap.containsKey(vCard)) {
operations.insertContact(vCard)
try {
val vCard = vCards[contactIndex]
if (BackupListFragment.getDisplayName(vCard).isEmpty()) {
if (!ownContactMap.containsKey(vCard)) {
operations.insertContact(vCard)
} else {
operations.updateContact(vCard, ownContactMap[vCard])
}
} else {
operations.updateContact(vCard, ownContactMap[vCard])
operations.insertContact(vCard) // Insert All the contacts without name
}
} else {
operations.insertContact(vCard) // Insert All the contacts without name
} catch (t: Throwable) {
Log_OC.e(TAG, "skipping contactIndex: $contactIndex due to: $t")
}
}
} catch (e: Exception) {
@@ -103,9 +124,22 @@ class ContactsImportWork(
logger.e(TAG, "Error closing vCard stream", e)
}
Log_OC.d(TAG, "ContractsImportWork successfully completed")
selectedContactsFile.delete()
return Result.success()
}
@Suppress("TooGenericExceptionCaught")
fun readCheckedContractsFromFile(file: File): IntArray {
return try {
val fileData = FileUtils.readFileToByteArray(file)
fileData.toIntArray()
} catch (e: Exception) {
Log_OC.e(TAG, "Exception readCheckedContractsFromFile: $e")
intArrayOf()
}
}
private fun getContactFromCursor(cursor: Cursor): VCard? {
val lookupKey = cursor.getString(cursor.getColumnIndexOrThrow(ContactsContract.Contacts.LOOKUP_KEY))
val uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_VCARD_URI, lookupKey)
@@ -36,8 +36,6 @@ import com.owncloud.android.utils.FileStorageUtils
import com.owncloud.android.utils.FilesSyncHelper
import com.owncloud.android.utils.MimeType
import com.owncloud.android.utils.MimeTypeUtil
import com.owncloud.android.utils.SyncedFolderUtils.isFileNameQualifiedForAutoUpload
import com.owncloud.android.utils.SyncedFolderUtils.isQualifiedFolder
import java.io.File
import java.text.ParsePosition
import java.text.SimpleDateFormat
@@ -218,20 +216,6 @@ class FilesSyncWork(
syncedFolderProvider.updateSyncFolder(syncedFolder)
}
private fun getAllFiles(path: String): Set<File> {
return File(path).takeIf { it.exists() }
?.walkTopDown()
?.asSequence()
?.filter { file ->
file.isFile &&
file.exists() &&
isQualifiedFolder(file.parentFile?.path) &&
isFileNameQualifiedForAutoUpload(file.name)
}
?.toSet()
?: emptySet()
}
@Suppress("LongMethod") // legacy code
private fun uploadFilesFromFolder(
context: Context,
@@ -259,12 +243,20 @@ class FilesSyncWork(
null
}
val files = getAllFiles(syncedFolder.localPath)
if (files.isEmpty()) {
// Ensure only new files are processed for upload.
// Files that have been previously uploaded cannot be re-uploaded,
// even if they have been deleted or moved from the target folder,
// as they are already marked as uploaded in the database.
val paths = filesystemDataProvider.getFilesForUpload(
syncedFolder.localPath,
syncedFolder.id.toString()
)
if (paths.isEmpty()) {
return
}
val pathsAndMimes = files.map { file ->
val pathsAndMimes = paths.map { path ->
val file = File(path)
val localPath = file.absolutePath
Triple(
localPath,
@@ -304,9 +296,9 @@ class FilesSyncWork(
syncedFolder.nameCollisionPolicy
)
for (file in files) {
for (path in paths) {
filesystemDataProvider.updateFilesystemFileAsSentForUpload(
file.path,
path,
syncedFolder.id.toString()
)
}
@@ -73,7 +73,7 @@ class MediaFoldersDetectionWork constructor(
private val randomIdGenerator = Random(clock.currentTime)
@Suppress("LongMethod", "ComplexMethod", "NestedBlockDepth") // legacy code
@Suppress("LongMethod", "ComplexMethod", "NestedBlockDepth", "ReturnCount") // legacy code
override fun doWork(): Result {
val arbitraryDataProvider: ArbitraryDataProvider = ArbitraryDataProviderImpl(context)
val gson = Gson()
@@ -190,6 +190,7 @@ class MediaFoldersDetectionWork constructor(
gson.toJson(mediaFoldersModel)
)
}
return Result.success()
}
@@ -28,7 +28,7 @@ import com.owncloud.android.utils.FileStorageUtils
import java.io.File
@Suppress("LongParameterList") // Legacy code
class OfflineSyncWork constructor(
class OfflineSyncWork(
private val context: Context,
params: WorkerParameters,
private val contentResolver: ContentResolver,
@@ -65,7 +65,7 @@ class OfflineSyncWork constructor(
return
}
val updatedEtag = checkEtagChanged(folderName, storageManager, user) ?: return
val updatedEtag = checkETagChanged(folderName, storageManager, user) ?: return
// iterate over downloaded files
val files = folder.listFiles { obj: File -> obj.isFile }
@@ -102,41 +102,39 @@ class OfflineSyncWork constructor(
}
/**
* @return new etag if changed, `null` otherwise
* @return new eTag if changed, `null` otherwise
*/
private fun checkEtagChanged(folderName: String, storageManager: FileDataStorageManager, user: User): String? {
val ocFolder = storageManager.getFileByPath(folderName) ?: return null
private fun checkETagChanged(folderName: String, storageManager: FileDataStorageManager, user: User): String? {
val folder = storageManager.getFileByEncryptedRemotePath(folderName) ?: return null
Log_OC.d(TAG, "$folderName: currentEtag: ${ocFolder.etag}")
Log_OC.d(TAG, "$folderName: current eTag: ${folder.etag}")
// check for etag change, if false, skip
val checkEtagOperation = CheckEtagRemoteOperation(
ocFolder.remotePath,
ocFolder.etagOnServer
)
val result = checkEtagOperation.execute(user, context)
val operation = CheckEtagRemoteOperation(folder.remotePath, folder.etagOnServer)
val result = operation.execute(user, context)
return when (result.code) {
ResultCode.ETAG_UNCHANGED -> {
Log_OC.d(TAG, "$folderName: eTag unchanged")
null
}
ResultCode.FILE_NOT_FOUND -> {
val removalResult = storageManager.removeFolder(ocFolder, true, true)
val removalResult = storageManager.removeFolder(folder, true, true)
if (!removalResult) {
Log_OC.e(TAG, "removal of " + ocFolder.storagePath + " failed: file not found")
Log_OC.e(TAG, "removal of " + folder.storagePath + " failed: file not found")
}
null
}
ResultCode.ETAG_CHANGED -> {
Log_OC.d(TAG, "$folderName: eTag changed")
result.data[0] as String
result?.data?.get(0) as? String
}
else -> if (connectivityService.isInternetWalled) {
Log_OC.d(TAG, "No connectivity, skipping sync")
null
} else {
Log_OC.d(TAG, "$folderName: eTag changed")
result.data[0] as String
result?.data?.get(0) as? String
}
}
}
@@ -0,0 +1,52 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper.ozturk@nextcloud.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.client.jobs.clipboard
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.os.Build
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.owncloud.android.lib.common.utils.Log_OC
class ClipboardClearWorker(
private val context: Context,
params: WorkerParameters
) : Worker(context, params) {
private val tag = ClipboardClearWorker::class.java.name
companion object {
const val CLIPBOARD_TEXT = "clipboard_text"
}
@Suppress("TooGenericExceptionCaught", "ReturnCount")
override fun doWork(): Result {
try {
val clipboardManager = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
val currentClip = clipboardManager.primaryClip ?: return Result.success()
val clipboardText = currentClip.getItemAt(0).text?.toString() ?: return Result.success()
val copiedText = inputData.getString(CLIPBOARD_TEXT)
if (copiedText != clipboardText) {
return Result.success()
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
clipboardManager.clearPrimaryClip()
} else {
val newEmptyClip = ClipData.newPlainText("EmptyClipContent", "")
clipboardManager.setPrimaryClip(newEmptyClip)
}
return Result.success()
} catch (e: Exception) {
Log_OC.e(tag, "Error in clipboard clear worker", e)
return Result.retry()
}
}
}
@@ -11,6 +11,7 @@ import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import com.nextcloud.client.jobs.notification.WorkerNotificationManager
import com.nextcloud.utils.numberFormatter.NumberFormatter
import com.owncloud.android.R
import com.owncloud.android.operations.DownloadFileOperation
import com.owncloud.android.utils.theme.ViewThemeUtils
@@ -25,17 +26,8 @@ class DownloadNotificationManager(
) : WorkerNotificationManager(id, context, viewThemeUtils, R.string.downloader_download_in_progress_ticker) {
@Suppress("MagicNumber")
fun prepareForStart(operation: DownloadFileOperation, currentDownloadIndex: Int, totalDownloadSize: Int) {
currentOperationTitle = if (totalDownloadSize > 1) {
String.format(
context.getString(R.string.downloader_notification_manager_download_text),
currentDownloadIndex,
totalDownloadSize,
File(operation.savePath).name
)
} else {
File(operation.savePath).name
}
fun prepareForStart(operation: DownloadFileOperation) {
currentOperationTitle = File(operation.savePath).name
notificationBuilder.run {
setContentTitle(currentOperationTitle)
@@ -55,7 +47,8 @@ class DownloadNotificationManager(
@Suppress("MagicNumber")
fun updateDownloadProgress(percent: Int, totalToTransfer: Long) {
setProgress(percent, R.string.downloader_notification_manager_in_progress_text, totalToTransfer < 0)
val progressText = NumberFormatter.getPercentageText(percent)
setProgress(percent, progressText, totalToTransfer < 0)
showNotification()
}
@@ -16,7 +16,8 @@ import android.util.Pair
import androidx.core.util.component1
import androidx.core.util.component2
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import androidx.work.Worker
import androidx.work.CoroutineWorker
import androidx.work.ForegroundInfo
import androidx.work.WorkerParameters
import com.nextcloud.client.account.User
import com.nextcloud.client.account.UserAccountManager
@@ -38,10 +39,10 @@ import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.operations.DownloadFileOperation
import com.owncloud.android.operations.DownloadType
import com.owncloud.android.utils.theme.ViewThemeUtils
import java.security.SecureRandom
import java.util.AbstractList
import java.util.Optional
import java.util.Vector
import kotlin.random.Random
@Suppress("LongParameterList", "TooManyFunctions")
class FileDownloadWorker(
@@ -50,7 +51,7 @@ class FileDownloadWorker(
private var localBroadcastManager: LocalBroadcastManager,
private val context: Context,
params: WorkerParameters
) : Worker(context, params), OnAccountsUpdateListener, OnDatatransferProgressListener {
) : CoroutineWorker(context, params), OnAccountsUpdateListener, OnDatatransferProgressListener {
companion object {
private val TAG = FileDownloadWorker::class.java.simpleName
@@ -74,7 +75,6 @@ class FileDownloadWorker(
const val ACTIVITY_NAME = "ACTIVITY_NAME"
const val PACKAGE_NAME = "PACKAGE_NAME"
const val CONFLICT_UPLOAD_ID = "CONFLICT_UPLOAD_ID"
const val EXTRA_DOWNLOAD_RESULT = "EXTRA_DOWNLOAD_RESULT"
const val EXTRA_REMOTE_PATH = "EXTRA_REMOTE_PATH"
const val EXTRA_LINKED_TO_PATH = "EXTRA_LINKED_TO_PATH"
@@ -96,7 +96,7 @@ class FileDownloadWorker(
private val intents = FileDownloadIntents(context)
private var notificationManager = DownloadNotificationManager(
SecureRandom().nextInt(),
Random.nextInt(),
context,
viewThemeUtils
)
@@ -111,21 +111,20 @@ class FileDownloadWorker(
private var downloadError: FileDownloadError? = null
@Suppress("TooGenericExceptionCaught")
override fun doWork(): Result {
@Suppress("TooGenericExceptionCaught", "ReturnCount")
override suspend fun doWork(): Result {
val foregroundInfo = createWorkerForegroundInfo()
setForeground(foregroundInfo)
return try {
val requestDownloads = getRequestDownloads()
setUser()
val remotePath = inputData.keyValueMap[FILE_REMOTE_PATH] as String? ?: return Result.failure()
val ocFile = fileDataStorageManager?.getFileByEncryptedRemotePath(remotePath) ?: return Result.failure()
val requestDownloads = getRequestDownloads(ocFile)
addAccountUpdateListener()
val foregroundInfo = ForegroundServiceHelper.createWorkerForegroundInfo(
notificationManager.getId(),
notificationManager.getNotification(),
ForegroundServiceType.DataSync
)
setForegroundAsync(foregroundInfo)
requestDownloads.forEachIndexed { currentDownloadIndex, requestedDownload ->
downloadFile(requestedDownload, currentDownloadIndex, requestDownloads.size)
requestDownloads.forEach {
downloadFile(it)
}
downloadError?.let {
@@ -133,30 +132,29 @@ class FileDownloadWorker(
notificationManager.dismissNotification()
}
setIdleWorkerState()
Log_OC.e(TAG, "FilesDownloadWorker successfully completed")
Result.success()
} catch (t: Throwable) {
notificationManager.dismissNotification()
notificationManager.showNewNotification(context.getString(R.string.downloader_unexpected_error))
Log_OC.e(TAG, "Error caught at FilesDownloadWorker(): " + t.localizedMessage)
setIdleWorkerState()
Result.failure()
} finally {
Log_OC.e(TAG, "FilesDownloadWorker cleanup")
notificationManager.dismissNotification()
setIdleWorkerState()
}
}
override fun onStopped() {
Log_OC.e(TAG, "FilesDownloadWorker stopped")
notificationManager.dismissNotification()
setIdleWorkerState()
super.onStopped()
private fun createWorkerForegroundInfo(): ForegroundInfo {
return ForegroundServiceHelper.createWorkerForegroundInfo(
notificationManager.getId(),
notificationManager.getNotification(),
ForegroundServiceType.DataSync
)
}
private fun setWorkerState(user: User?) {
WorkerStateLiveData.instance().setWorkState(WorkerState.DownloadStarted(user, currentDownload))
private fun setWorkerState(user: User?, percent: Int) {
WorkerStateLiveData.instance().setWorkState(WorkerState.DownloadStarted(user, currentDownload, percent))
}
private fun setIdleWorkerState() {
@@ -167,9 +165,8 @@ class FileDownloadWorker(
pendingDownloads.remove(accountName)
}
private fun getRequestDownloads(): AbstractList<String> {
setUser()
val files = getFiles()
private fun getRequestDownloads(ocFile: OCFile): AbstractList<String> {
val files = getFiles(ocFile)
val downloadType = getDownloadType()
conflictUploadId = inputData.keyValueMap[CONFLICT_UPLOAD_ID] as Long?
@@ -222,10 +219,7 @@ class FileDownloadWorker(
fileDataStorageManager = FileDataStorageManager(user, context.contentResolver)
}
private fun getFiles(): List<OCFile> {
val remotePath = inputData.keyValueMap[FILE_REMOTE_PATH] as String?
val file = fileDataStorageManager?.getFileByEncryptedRemotePath(remotePath) ?: return listOf()
private fun getFiles(file: OCFile): List<OCFile> {
return if (file.isFolder) {
fileDataStorageManager?.getAllFilesRecursivelyInsideFolder(file) ?: listOf()
} else {
@@ -252,14 +246,14 @@ class FileDownloadWorker(
}
@Suppress("TooGenericExceptionCaught", "DEPRECATION")
private fun downloadFile(downloadKey: String, currentDownloadIndex: Int, totalDownloadSize: Int) {
private fun downloadFile(downloadKey: String) {
currentDownload = pendingDownloads.get(downloadKey)
if (currentDownload == null) {
return
}
setWorkerState(user)
setWorkerState(user, 0)
Log_OC.e(TAG, "FilesDownloadWorker downloading: $downloadKey")
val isAccountExist = accountManager.exists(currentDownload?.user?.toPlatformAccount())
@@ -269,9 +263,8 @@ class FileDownloadWorker(
}
lastPercent = 0
notificationManager.run {
prepareForStart(currentDownload!!, currentDownloadIndex + 1, totalDownloadSize)
prepareForStart(currentDownload!!)
setContentIntent(intents.detailsIntent(currentDownload!!), PendingIntent.FLAG_IMMUTABLE)
}
@@ -423,8 +416,10 @@ class FileDownloadWorker(
}
lastPercent = percent
setWorkerState(user, lastPercent)
}
// CHECK: Is this class still needed after conversion from Foreground Services to Worker?
inner class FileDownloadProgressListener : OnDatatransferProgressListener {
private val boundListeners: MutableMap<Long, OnDatatransferProgressListener> = HashMap()
@@ -11,7 +11,6 @@ import android.app.Notification
import android.app.NotificationManager
import android.content.Context
import android.graphics.BitmapFactory
import android.os.Build
import android.os.Handler
import android.os.Looper
import androidx.core.app.NotificationCompat
@@ -40,10 +39,7 @@ open class WorkerNotificationManager(
setLargeIcon(BitmapFactory.decodeResource(context.resources, R.drawable.notification_icon))
setStyle(NotificationCompat.BigTextStyle())
priority = NotificationCompat.PRIORITY_LOW
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
setChannelId(NotificationUtils.NOTIFICATION_CHANNEL_DOWNLOAD)
}
setChannelId(NotificationUtils.NOTIFICATION_CHANNEL_DOWNLOAD)
}
fun showNotification() {
@@ -51,16 +47,14 @@ open class WorkerNotificationManager(
}
@Suppress("MagicNumber")
fun setProgress(percent: Int, progressTextId: Int, indeterminate: Boolean) {
val progressText = String.format(
context.getString(progressTextId),
percent
)
fun setProgress(percent: Int, progressText: String?, indeterminate: Boolean) {
notificationBuilder.run {
setProgress(100, percent, indeterminate)
setContentTitle(currentOperationTitle)
setContentText(progressText)
progressText?.let {
setContentText(progressText)
}
}
}
@@ -22,8 +22,6 @@ import com.nextcloud.client.preferences.AppPreferences
import com.nextcloud.model.WorkerState
import com.nextcloud.model.WorkerStateLiveData
import com.nextcloud.utils.extensions.getPercent
import com.nextcloud.utils.extensions.showToast
import com.owncloud.android.R
import com.owncloud.android.datamodel.FileDataStorageManager
import com.owncloud.android.datamodel.ThumbnailsCacheManager
import com.owncloud.android.datamodel.UploadsStorageManager
@@ -148,6 +146,11 @@ class FileUploadWorker(
return Result.success()
}
if (canExitEarly()) {
notificationManager.showConnectionErrorNotification()
return Result.failure()
}
Log_OC.d(TAG, "Handling ${uploadsPerPage.size} uploads for account $accountName")
val lastId = uploadsPerPage.last().uploadId
uploadFiles(totalUploadSize, uploadsPerPage, accountName)
@@ -163,14 +166,34 @@ class FileUploadWorker(
return Result.success()
}
private fun canExitEarly(): Boolean {
val result = !connectivityService.isConnected ||
connectivityService.isInternetWalled ||
isStopped
if (result) {
Log_OC.d(TAG, "No internet connection, stopping worker.")
} else {
notificationManager.dismissErrorNotification()
}
return result
}
@Suppress("NestedBlockDepth")
private fun uploadFiles(totalUploadSize: Int, uploadsPerPage: List<OCUpload>, accountName: String) {
val user = userAccountManager.getUser(accountName)
setWorkerState(user.get(), uploadsPerPage)
if (canExitEarly()) {
notificationManager.showConnectionErrorNotification()
return
}
run uploads@{
uploadsPerPage.forEach { upload ->
if (isStopped) {
if (canExitEarly()) {
notificationManager.showConnectionErrorNotification()
return@uploads
}
@@ -284,7 +307,7 @@ class FileUploadWorker(
context
)
) {
context.showToast(R.string.file_upload_worker_same_file_already_exists)
uploadFileOperation.handleLocalBehaviour()
return
}
@@ -11,6 +11,7 @@ import android.app.PendingIntent
import android.content.Context
import com.nextcloud.client.jobs.notification.WorkerNotificationManager
import com.nextcloud.utils.extensions.isFileSpecificError
import com.nextcloud.utils.numberFormatter.NumberFormatter
import com.owncloud.android.R
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import com.owncloud.android.operations.UploadFileOperation
@@ -43,10 +44,7 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
uploadFileOperation.fileName
}
val progressText = String.format(
context.getString(R.string.upload_notification_manager_upload_in_progress_text),
0
)
val progressText = NumberFormatter.getPercentageText(0)
notificationBuilder.run {
setProgress(100, 0, false)
@@ -71,7 +69,8 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
@Suppress("MagicNumber")
fun updateUploadProgress(percent: Int, currentOperation: UploadFileOperation?) {
setProgress(percent, R.string.upload_notification_manager_upload_in_progress_text, false)
val progressText = NumberFormatter.getPercentageText(percent)
setProgress(percent, progressText, false)
showNotification()
dismissOldErrorNotification(currentOperation)
}
@@ -143,6 +142,20 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
)
}
fun showConnectionErrorNotification() {
notificationManager.cancel(getId())
notificationBuilder.run {
setContentTitle(context.getString(R.string.file_upload_worker_error_notification_title))
setContentText("")
}
notificationManager.notify(
FileUploadWorker.NOTIFICATION_ERROR_ID,
notificationBuilder.build()
)
}
fun dismissOldErrorNotification(operation: UploadFileOperation?) {
if (operation == null) {
return
@@ -155,6 +168,8 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
}
}
fun dismissErrorNotification() = notificationManager.cancel(FileUploadWorker.NOTIFICATION_ERROR_ID)
fun dismissOldErrorNotification(remotePath: String, localPath: String) {
notificationManager.cancel(
NotificationUtils.createUploadNotificationTag(remotePath, localPath),
@@ -8,7 +8,6 @@ package com.nextcloud.client.media
import android.media.AudioFocusRequest
import android.media.AudioManager
import android.os.Build
/**
* Wrapper around audio manager exposing simplified audio focus API and
@@ -19,45 +18,29 @@ import android.os.Build
*/
internal class AudioFocusManager(
private val audioManger: AudioManager,
private val onFocusChange: (AudioFocus) -> Unit
private val onFocusChange: (AudioFocus) -> Unit,
requestBuilder: AudioFocusRequest.Builder = AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN)
) {
private val focusListener = object : AudioManager.OnAudioFocusChangeListener {
override fun onAudioFocusChange(focusChange: Int) {
val focus = when (focusChange) {
AudioManager.AUDIOFOCUS_GAIN -> AudioFocus.FOCUS
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT -> AudioFocus.FOCUS
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK -> AudioFocus.FOCUS
AudioManager.AUDIOFOCUS_LOSS -> AudioFocus.LOST
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT -> AudioFocus.LOST
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK -> AudioFocus.DUCK
else -> null
}
focus?.let { onFocusChange(it) }
}
}
private var focusRequest: AudioFocusRequest? = null
init {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
focusRequest = AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN).run {
setWillPauseWhenDucked(true)
setOnAudioFocusChangeListener(focusListener)
}.build()
private val focusListener = AudioManager.OnAudioFocusChangeListener { focusChange ->
val focus = when (focusChange) {
AudioManager.AUDIOFOCUS_GAIN,
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT,
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK -> AudioFocus.FOCUS
AudioManager.AUDIOFOCUS_LOSS,
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT -> AudioFocus.LOST
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK -> AudioFocus.DUCK
else -> null
}
focus?.let { onFocusChange(it) }
}
/**
* Request audio focus. Focus is reported via callback.
* If focus cannot be gained, lost of focus is reported.
*/
private val focusRequest = requestBuilder
.setWillPauseWhenDucked(true)
.setOnAudioFocusChangeListener(focusListener)
.build()
fun requestFocus() {
val requestResult = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
focusRequest?.let { audioManger.requestAudioFocus(it) }
} else {
audioManger.requestAudioFocus(focusListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN)
}
val requestResult = audioManger.requestAudioFocus(focusRequest)
if (requestResult == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {
focusListener.onAudioFocusChange(AudioManager.AUDIOFOCUS_GAIN)
} else {
@@ -65,17 +48,8 @@ internal class AudioFocusManager(
}
}
/**
* Release audio focus. Loss of focus is reported via callback.
*/
fun releaseFocus() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
focusRequest?.let {
audioManger.abandonAudioFocusRequest(it)
} ?: AudioManager.AUDIOFOCUS_REQUEST_FAILED
} else {
audioManger.abandonAudioFocus(focusListener)
}
audioManger.abandonAudioFocusRequest(focusRequest)
focusListener.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS)
}
}
@@ -10,7 +10,6 @@ import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.media.AudioManager
import android.os.Build
import android.os.Bundle
import android.os.IBinder
import android.widget.MediaController
@@ -184,10 +183,7 @@ class PlayerService : Service() {
setOngoing(true)
setContentTitle(ticker)
setContentText(content)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
setChannelId(NotificationUtils.NOTIFICATION_CHANNEL_MEDIA)
}
setChannelId(NotificationUtils.NOTIFICATION_CHANNEL_MEDIA)
}
ForegroundServiceHelper.startService(
Loaded 100 of 430 files, more files were not shown because too many files have changed in this diff. Show more