Compare commits

..
1112 Commits
Author SHA1 Message Date
Nextcloud bot fa4d3686d6 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-07 06:57:51 +00:00
f0d6a1e41e Update dependency com.diffplug.spotless to v8.11.0 (#17985)
* Update dependency com.diffplug.spotless to v8.11.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Tobias Kaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Tobias Kaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tobias Kaminsky <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-07 06:44:05 +00:00
alperozturk96andClaude Opus 5.5 2d0c23c6fe Revert "fix garm runner label"
This reverts commit d21dbf664f.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 19:44:57 +01:00
alperozturk96 d21dbf664f fix garm runner label
Signed-off-by: alperozturk96 <[email protected]>
2026-11-06 19:43:35 +01:00
Alper Öztürk 36cb08291b Merge pull request #17975 from nextcloud/fix/internal-71016-file-name-in-actionbar-when-notif-clicked
Actionbar should alway show current folder name
2026-11-06 19:10:32 +03:00
Daniele VerducciandAlper Öztürk a8ef34a4b5 Better way to retrieve folder name
Co-authored-by: Alper Öztürk <[email protected]>
Signed-off-by: Daniele Verducci <[email protected]>
2026-11-06 14:59:30 +01:00
daniele-verducci 24a40214b2 Actionbar should alway show current folder name
Signed-off-by: daniele-verducci <[email protected]>
2026-11-06 14:59:30 +01:00
Tobias Kaminsky 39219060c3 Merge pull request #17964 from nextcloud/fix/fastlane
fix fastlane
2026-11-06 09:01:27 +01:00
Nextcloud bot 2553d082b4 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-06 07:16:20 +00:00
Alper Öztürk 2735487fff Merge pull request #17956 from nextcloud/refactor/file-operation-helper-kotlin
refactor(file-operation-helper): kotlin
2026-11-06 08:48:29 +03:00
Alper Öztürk 7972a8e03c Merge pull request #17958 from nextcloud/fix/internal-109054-picker-navigation-brougth-to-main-files-list
Avoid picker navigation to affect main file list's one
2026-11-05 15:16:07 +03:00
daniele-verducci 3f4417d374 Better fix for picker navigation affecting all file list fragments
Signed-off-by: daniele-verducci <[email protected]>
2026-11-05 11:15:09 +01:00
daniele-verducci 6f2b9ce8b2 Avoid picker navigation to affect main file list's one
Signed-off-by: daniele-verducci <[email protected]>
2026-11-05 11:15:09 +01:00
alperozturk96 7fe6bde6ed fix fastlane
Signed-off-by: alperozturk96 <[email protected]>
2026-11-05 11:15:14 +03:00
Alper Öztürk 413ddaa77b Merge pull request #17960 from nextcloud/min-supported-version-nc23
min supported version is nc 23
2026-11-05 10:00:24 +03:00
Alper Öztürk d04ec2ae3d Merge pull request #17961 from nextcloud/fix/ci-5
fix ci
2026-11-05 09:53:26 +03:00
alperozturk96 c0b53f894a fix ci
Signed-off-by: alperozturk96 <[email protected]>
2026-11-05 09:07:50 +03:00
alperozturk96 d3dd3aac16 min supported version is nc 23
Signed-off-by: alperozturk96 <[email protected]>
2026-11-05 09:01:50 +03:00
alperozturk96 1b3da2686e refactor(file-operation-helper): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-11-05 08:49:05 +03:00
alperozturk96 996ce970e6 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-11-05 08:49:05 +03:00
Alper Öztürk 61b01b666b Merge pull request #17935 from nextcloud/feat/document-scanner-tablet-support
feat(scan): orientation support
2026-11-05 08:39:51 +03:00
Alper Öztürk 88148f3743 Merge pull request #17812 from nextcloud/feat/check-upload-quota
feat(upload): quota check
2026-11-05 08:36:19 +03:00
Alper Öztürk ecf31ffd22 Merge pull request #17957 from nextcloud/fix/ci-2
fix ci
2026-11-05 08:35:53 +03:00
Nextcloud bot 7046830a1e fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-05 03:49:23 +00:00
alperozturk96 2dc40b1836 fix ci
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 18:39:05 +03:00
alperozturk96 03a2fbeb6f notify upload list
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 15:46:40 +03:00
alperozturk96 25f5fd4d9c recover from exceed state
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 15:46:40 +03:00
alperozturk96 a82067a2bb use lib
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	gradle/libs.versions.toml
2026-11-04 15:46:40 +03:00
alperozturk96 66a2b6d56b add quota check for auto upload
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 15:46:40 +03:00
alperozturk96 bac9e1c5a1 add quota check for all uploads
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 15:46:40 +03:00
Alper Öztürk 152108a7c3 Merge pull request #17940 from nextcloud/fix/metadata-worker-cancellation
fix(metadata): cancellation
2026-11-04 15:29:49 +03:00
Tobias Kaminsky bec39ce821 Merge pull request #17924 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-11-04 13:23:09 +01:00
nextcloud-android-bot 23f4c60c2c 🔄 synced local '.' with remote 'config/root/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-04 11:55:02 +00:00
nextcloud-android-bot dc4e0e94f6 🔄 synced local 'fastlane/' with remote 'config/fastlane/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-04 11:55:02 +00:00
nextcloud-android-bot a9dc993969 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-04 11:55:02 +00:00
Alper Öztürk f09acb1803 Merge pull request #17945 from nextcloud/refactor/drawer-activity-kotlin
refactor(drawer-activity): kotlin
2026-11-04 14:36:39 +03:00
Alper Öztürk 33ed8d00f7 Merge pull request #17949 from nextcloud/refactor/abstract-it-kotlin
refactor(abstract-it): kotlin
2026-11-04 14:36:28 +03:00
alperozturk96 d466b7802e wip
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 14:21:18 +03:00
alperozturk96 0c8ec9e2b1 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 14:21:18 +03:00
alperozturk96 33014e63b4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 14:21:18 +03:00
alperozturk96 928461697d fix(metadata): cancellation
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java
2026-11-04 14:21:18 +03:00
Alper Öztürk bb45b7fa38 Merge pull request #17932 from nextcloud/fix/download-cancel
fix(download): cancel
2026-11-04 14:20:15 +03:00
Alper Öztürk 144b70b8e5 Merge pull request #17917 from nextcloud/fix/navigation-flicker
fix(file-list): flicker
2026-11-04 13:26:37 +03:00
Alper Öztürk ae1397630e Merge pull request #17919 from nextcloud/fix/17915-missing-share-icon
Fix missing share icon for newly-created files until a folder sync happens
2026-11-04 13:19:06 +03:00
Alper Öztürk a9b083ede1 Merge pull request #17913 from nextcloud/fix/fab-state
fix(fab): state
2026-11-04 13:13:04 +03:00
Alper Öztürk 62dca7aa6b Merge pull request #17916 from nextcloud/fix/navigation-to-all-files-from-upload-screen
fix(navigation): all files
2026-11-04 12:58:42 +03:00
alperozturk96 bbf06013cb wip
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 12:35:58 +03:00
alperozturk96 63d4560c5e wip
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 12:35:26 +03:00
daniele-verducci 31ebe1e6a4 Symmetrix fix for unshare
Signed-off-by: daniele-verducci <[email protected]>
2026-11-04 12:34:25 +03:00
daniele-verducci 04226699a5 Add sharee to file immediately to avoid the list being shown without the sharee icon until next folder sync
Signed-off-by: daniele-verducci <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/utils/extensions/OCFileExtensions.kt
2026-11-04 12:34:20 +03:00
Tobias Kaminsky 7091fc859d Merge pull request #17950 from nextcloud/fastlane2
further fastlane
2026-11-04 10:21:26 +01:00
tobiasKaminsky 7dde2537ba further fastlane
Signed-off-by: tobiasKaminsky <[email protected]>
2026-11-04 10:11:09 +01:00
alperozturk96 29f20c1efc simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 09:50:33 +03:00
alperozturk96 8d88042da4 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 09:45:12 +03:00
alperozturk96 a72dc25c55 convert to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 09:37:20 +03:00
alperozturk96 98faff15cd Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-11-04 09:37:19 +03:00
Alper Öztürk 3b53419d08 Merge pull request #17873 from Ruby20-50/add-date-format-pattern-test
Add unit tests for DateFormatPattern
2026-11-04 08:32:02 +03:00
Ruby20-50 c00ccf726f Merge branch 'add-date-format-pattern-test' of https://github.com/Ruby20-50/android into add-date-format-pattern-test 2026-11-04 02:27:43 +01:00
Ruby20-50 64b90f11b0 adjust naming
Signed-off-by: Ruby20-50 <[email protected]>
2026-11-04 02:24:05 +01:00
Ruba 4688d114d6 Merge branch 'master' into add-date-format-pattern-test 2026-11-03 21:55:32 +01:00
Ruby20-50 b6e7414e25 update test according to feedback
Signed-off-by: Ruby20-50 <[email protected]>
2026-11-03 21:37:31 +01:00
alperozturk96 29f82ab766 preserve corner after rotating and make it accessible
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 17:39:25 +03:00
alperozturk96 cbe895f258 dont recreate activity on config changes
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 17:28:29 +03:00
alperozturk96 3b4ceb77df adopt changes for app scan activity
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 17:03:55 +03:00
alperozturk96 9e2f2181a9 split into smaller classes
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 16:44:00 +03:00
alperozturk96 2a03185aaa convert to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 16:44:00 +03:00
alperozturk96 29c9b6201b Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 16:44:00 +03:00
Alper Öztürk caf6c2ca5e Merge pull request #17941 from nextcloud/fix/file-data-storage-manager-operations
fix(file-data-storage-manager): operations
2026-11-03 16:25:34 +03:00
Alper Öztürk a6b90e4c99 Merge pull request #17942 from nextcloud/fix/clear-system-insets-in-widget-config
Clear system insets in widget config
2026-11-03 15:20:20 +03:00
alperozturk96 e5d38cf0bf use dao functions
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 15:01:56 +03:00
daniele-verducci a74e9af79b Fix unreadable text on system bar
Signed-off-by: daniele-verducci <[email protected]>
2026-11-03 12:40:41 +01:00
daniele-verducci edd4afdc07 Theme activity to have matching color between system bars and layout
Signed-off-by: daniele-verducci <[email protected]>
2026-11-03 12:36:19 +01:00
daniele-verducci 612fdfba12 Clear system insets in widget config view
Signed-off-by: daniele-verducci <[email protected]>
2026-11-03 12:28:48 +01:00
alperozturk96 8ad26c9f5e fix deletion
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 13:58:08 +03:00
alperozturk96 d6796e31b6 optimize imports
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 13:58:08 +03:00
alperozturk96 a9d7451ae4 fix upsert
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 13:58:08 +03:00
Alper Öztürk c2618ba512 Merge pull request #17899 from nextcloud/refactor/error-message-adapter-kotlin
refactor(error-message-adapter): kotlin
2026-11-03 13:16:43 +03:00
Alper Öztürk 145c7c2570 Merge pull request #17938 from nextcloud/refactor/toolbar-activity-kotlin
refactor(toolbar-activity): kotlin
2026-11-03 13:06:13 +03:00
alperozturk96 0ec85602e7 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 11:16:33 +03:00
alperozturk96 858ecf8ddb simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 11:10:49 +03:00
alperozturk96 a6b3895031 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 10:35:24 +03:00
alperozturk96 9e5c932574 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 10:35:24 +03:00
alperozturk96 03a219dbaf remove theme color utils
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 10:35:24 +03:00
alperozturk96 0d1c6357ca convert to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 10:35:24 +03:00
alperozturk96 50a0eb7635 convert to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 10:35:24 +03:00
alperozturk96 6ba61b0b70 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-11-03 10:35:24 +03:00
Alper Öztürk ca9f4ecc56 Merge pull request #17937 from nextcloud/fix/picker-back-navigation-to-forbidden-folder
Fix back navigation to forbidden folder in file picker
2026-11-03 10:15:48 +03:00
daniele-verducci 7f8c416572 Fix back navigation to forbidden folder in file picker
Signed-off-by: daniele-verducci <[email protected]>
2026-11-03 09:42:54 +03:00
Alper Öztürk b70acc3cfd Merge pull request #17920 from nextcloud/fix/internal-109155-media-missing-empty-indicator-after-folder-deletion
Fixed empty view not shown in Media
2026-11-03 08:30:23 +03:00
Alper Öztürk d402f3acdb Merge pull request #17884 from nextcloud/improv/updateLibraryHash
Small improvement in update library script
2026-11-03 08:28:40 +03:00
daniele-verducci 8cba126120 Prevent script from failing it running on a macine with the git hooks configured as documented in CONTRIBUTING.md
Signed-off-by: daniele-verducci <[email protected]>
2026-11-02 17:44:52 +01:00
daniele-verducci 6a5224788f Early fail with clear message on updateLibraryHash to prevent confusion
Signed-off-by: daniele-verducci <[email protected]>
2026-11-02 17:44:52 +01:00
daniele-verducci 3ec1c781d9 Spotless
Signed-off-by: daniele-verducci <[email protected]>
2026-11-02 17:42:07 +01:00
Daniele VerducciandAlper Öztürk fec574b981 Oneliner with null casting for setHasFooter
Co-authored-by: Alper Öztürk <[email protected]>
Signed-off-by: Daniele Verducci <[email protected]>
2026-11-02 16:24:48 +01:00
daniele-verducci 2fc9fa2807 Fixed empty view not triggered in Media due to EmptyRecyclerView still expecting a footer
Signed-off-by: daniele-verducci <[email protected]>
2026-11-02 16:24:48 +01:00
alperozturk96 9875eb5303 better translation
Signed-off-by: alperozturk96 <[email protected]>
2026-11-02 14:46:22 +03:00
alperozturk96 a0d9a0c3b6 add cancel button
Signed-off-by: alperozturk96 <[email protected]>
2026-11-02 14:46:22 +03:00
alperozturk96 e7fee59135 fix download cancel
Signed-off-by: alperozturk96 <[email protected]>
2026-11-02 14:46:22 +03:00
Alper Öztürk a1ed32bf7b Merge pull request #17933 from nextcloud/fix/lint
fix lint
2026-11-02 14:45:44 +03:00
alperozturk96 aef268c7d7 fix lint
Signed-off-by: alperozturk96 <[email protected]>
2026-11-02 12:36:22 +03:00
renovate[bot] 3b0f7bb0d4 Update ubuntu:resolute Docker digest to 6a06111 (#17930)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-02 06:54:25 +00:00
86bc3a62a4 Update androidPluginVersion to v9.5.0 (#17928)
* Update androidPluginVersion to v9.5.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Tobias Kaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Tobias Kaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tobias Kaminsky <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-02 06:47:34 +00:00
Alper Öztürk 9eadf8ed4d Merge pull request #17921 from nextcloud/fix/upload-activity-back-navigation
Fixed back navigation in upload screen
2026-11-02 09:19:05 +03:00
Nextcloud bot 3499350263 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-02 04:19:42 +00:00
Andy Scherzinger 3145d45531 Merge pull request #17927 from nextcloud/renovate/gradle-actions-6.x
Update gradle/actions action to v6.4.1
2026-11-01 15:43:23 +01:00
renovate[bot] fde49354af Update gradle/actions action to v6.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-01 14:40:08 +00:00
Nextcloud bot 6362bae384 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-01 03:54:54 +00:00
Nextcloud bot 23baa00e31 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-31 03:43:38 +00:00
daniele-verducci 0578c7299c Fixed back navigation in upload screen
Signed-off-by: daniele-verducci <[email protected]>
2026-10-30 19:27:59 +01:00
alperozturk96 6533ecd576 fix(file-list): flicker
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 17:01:20 +03:00
alperozturk96 8b491d86a8 remove dead code
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 16:08:44 +03:00
alperozturk96 54a8f0a495 fix(navigation): all files
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 16:01:08 +03:00
alperozturk96 01ce97e453 use correct variable name for request code
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 15:39:35 +03:00
Alper Öztürk 593d7e09fb Merge pull request #17725 from nextcloud/feat/remove-retrieve-last-version
feat(open-file): remove syncing dialog
2026-10-30 15:20:36 +03:00
Alper Öztürk 58ef1b9a6d Merge pull request #17910 from nextcloud/refactor/document-storage-provider-kotlin
refactor(document-storage-provider): kotlin
2026-10-30 15:16:33 +03:00
alperozturk96 908a7e3d05 fix ci
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:46:44 +03:00
alperozturk96 ddefc90ed8 get rid of magic number
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:44:06 +03:00
alperozturk96 4b6a7b0c59 resolve conflict
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:39:37 +03:00
alperozturk96 ce7f23d282 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:26 +03:00
alperozturk96 cc7a22e8b7 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:26 +03:00
alperozturk96 0151b454a6 handle Image that isn't downloaded via -> fileOnItemClick -> previewImageWithSearchContext
Downloaded text file via -> fileOnItemClick -> previewFile -> startTextPreview
       Downloaded audio file via > fileOnItemClick -> previewFile -> startAudioPreview

Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:21 +03:00
alperozturk96 91af72e96c only sync when user get in directory
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:17 +03:00
alperozturk96 e0f7094c90 print results
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:14 +03:00
alperozturk96 10d1f99526 simplify startContentSynchronizations
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:13 +03:00
alperozturk96 a4f82c1df6 fix spotbugs: (This write of this shared primitive variable may not be visible to other threads)
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:12 +03:00
alperozturk96 bf430c7265 simplify openFile function
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:22:07 +03:00
alperozturk96 c17763d2c6 Check local eTag if it's outdated then run SynchronizeFileOperation else skip.
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/utils/extensions/OCFileExtensions.kt
2026-10-30 14:22:07 +03:00
alperozturk96 288c4d81d0 Only add when user open the folder first time not every 10 seconds.
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
2026-10-30 14:22:06 +03:00
alperozturk96 9d2c134bb7 reduce auto folder refresh to 10 seconds
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:21:56 +03:00
alperozturk96 2271bb9f35 use kotlin durations
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:21:56 +03:00
alperozturk96 db29c5d677 remove sync in progress dialog
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:21:56 +03:00
alperozturk96 b998db6394 add missing items for mFilesToSyncContents
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 14:21:55 +03:00
alperozturk96 3a82580828 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:37:05 +03:00
alperozturk96 cfb75c64e1 move logic inside enum
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:36:01 +03:00
alperozturk96 232fa2ea6e unify fab state logic
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
2026-10-30 13:35:58 +03:00
Alper Öztürk 3f73de97ef Merge pull request #17902 from nextcloud/refactor/file-display-activity
refactor(file-display-activity)
2026-10-30 13:34:49 +03:00
alperozturk96 84122f24e4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:54 +03:00
alperozturk96 93d1eeb8ce fix spotbugs and convert cursor implm to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:28 +03:00
alperozturk96 722823c9c4 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:28 +03:00
alperozturk96 60be5044ea use injections
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:28 +03:00
alperozturk96 ecefd79e91 optimize imports
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:28 +03:00
alperozturk96 528bd1f191 restructure package
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:28 +03:00
alperozturk96 ed2bfb4599 refactor(document-storage-provider): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:28 +03:00
alperozturk96 020edd6500 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-30 13:29:28 +03:00
renovate[bot] 26f565510d Update dependency com.google.code.gson:gson to v2.15.0 (#17894)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-30 09:29:26 +00:00
Tobias Kaminsky 8aefbb1d58 Merge pull request #17907 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.241.1
2026-10-30 09:28:30 +01:00
Nextcloud bot fb4cb3421f fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-30 03:48:09 +00:00
Alper Öztürk cc16cd5075 Merge pull request #17860 from nextcloud/remove-confusion-for-e2ee-operations
refactor(get-public-key): rename to get certificate
2026-10-29 17:18:19 +03:00
alperozturk96 25efb018de update lib
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 17:08:00 +03:00
alperozturk96 4fc858e987 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	gradle/libs.versions.toml
2026-10-29 17:02:36 +03:00
alperozturk96 97fe7e99e1 refactor(get-public-key): rename to get certificate
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	gradle/libs.versions.toml
2026-10-29 17:02:26 +03:00
Alper Öztürk 72483540ae Merge pull request #17841 from nextcloud/update-fastlane
build(fastlane): disable R8 optimization for release builds
2026-10-29 16:18:34 +03:00
Alper Öztürk 3348df5cf8 Merge pull request #17704 from nextcloud/fix/modification-date
fix(copy-upload): modification date
2026-10-29 16:13:47 +03:00
Alper Öztürk 58673046f2 Merge pull request #17890 from nextcloud/fix/document-storage-provider
fix(document-storage-provider): exceptions
2026-10-29 16:11:29 +03:00
renovate[bot] 62d234e059 Update dependency fastlane to v2.241.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-29 11:47:28 +00:00
Tobias Kaminsky a6a217cf9b Merge pull request #17904 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-10-29 12:45:37 +01:00
Tobias Kaminsky 6a0f80be69 Merge pull request #17903 from nextcloud/update-library-2026-10-29
Update library to 2026-10-29
2026-10-29 10:33:24 +01:00
nextcloud-android-bot 23f18c3f6d 🔄 synced local '.' with remote 'config/root/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-10-29 08:00:20 +00:00
nextcloud-android-bot c1ca00ec7b 🔄 synced local 'fastlane/' with remote 'config/fastlane/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-10-29 08:00:20 +00:00
nextcloud-android-bot 1e45fd05c1 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-10-29 08:00:20 +00:00
Tobias Kaminsky 101ad50866 Merge pull request #17868 from nextcloud/remove-codacy
chore: remove codacy
2026-10-29 08:48:35 +01:00
Tobias Kaminsky 24e07557ee Merge pull request #17898 from nextcloud/extractHashCheck
library hash check is extracted to daily check on server
2026-10-29 08:11:58 +01:00
Nextcloud Android Bot 28c97540f6 Update library to 2026-10-29
Signed-off-by: Nextcloud Android Bot <[email protected]>
2026-10-29 07:11:33 +00:00
alperozturk96 8f25744c93 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 09:25:18 +03:00
Alper Öztürk e85d31cc1c Merge pull request #17900 from nextcloud/fix/qrcode-login-when-no-enforced-servers
Fix QR login
2026-10-29 09:12:15 +03:00
alperozturk96 ec37270835 refactor
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 09:09:26 +03:00
alperozturk96 79a6424d74 refactor
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 09:09:00 +03:00
alperozturk96 54d67a271e increase long method to 120
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:49:43 +03:00
alperozturk96 9f8916e5d9 improve ContentUriLastModifiedResolver
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:45:02 +03:00
alperozturk96 e60810d66a add fallback to OS.fstat via ContentUriLastModifiedResolver
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:45:02 +03:00
alperozturk96 e038907f76 fix(copy-upload): modification date
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:45:02 +03:00
alperozturk96 fac406c2ec refactor document storage provider
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:43:50 +03:00
alperozturk96 e7f4dea232 fix null path and concurrent modification issue
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:43:50 +03:00
alperozturk96 a1da79b441 fix wrote
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:43:50 +03:00
alperozturk96 5241e7308c add more logs
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:43:50 +03:00
alperozturk96 d3f4305a87 check parent folder existance
Signed-off-by: alperozturk96 <[email protected]>
2026-10-29 08:43:50 +03:00
Nextcloud bot f9c3e5e617 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-29 03:50:00 +00:00
Andy Scherzinger e5117680ac Merge pull request #17876 from nextcloud/rakekniven-patch-2
fix(i18n): Fix typo in gallery unsupported file message
2026-10-28 20:33:51 +01:00
alperozturk96 bf09016f26 adopt latest changes from master
Signed-off-by: alperozturk96 <[email protected]>
2026-10-28 19:25:35 +03:00
alperozturk96 07488b2e8e build(fastlane): disable R8 optimization for release builds
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	fastlane/Fastfile
2026-10-28 19:21:24 +03:00
tobiasKaminsky 002c021319 library hash check is extracted to daily check on server
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-28 19:16:23 +03:00
Alper Öztürk 535e7b737b Merge pull request #17901 from nextcloud/fix/player-in-favorite
fix(player): in favorite
2026-10-28 19:13:33 +03:00
alperozturk96 c0d3da9368 fix(player): in favorite
Signed-off-by: alperozturk96 <[email protected]>
2026-10-28 16:57:13 +03:00
daniele-verducci ee6fa543a1 Fix QR login when enforced servers are not defined
Signed-off-by: daniele-verducci <[email protected]>
2026-10-28 14:43:24 +01:00
alperozturk96 119916bb03 refactor(error-message-adapter): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-28 16:37:46 +03:00
alperozturk96 11045a2549 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-28 16:37:46 +03:00
Alper Öztürk 4b7a08757d Merge pull request #17891 from nextcloud/refactor/authenticator-activity-kotlin
refactor(authenticator-activity): kotlin
2026-10-28 16:23:31 +03:00
Alper Öztürk 29ba77473b Merge pull request #17848 from nextcloud/fix/sharing-enforce-protection-for-public-links
fix(share): enforce protection for public links
2026-10-28 12:03:23 +03:00
alperozturk96 3fd412d838 split into child classes to simplify logic
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 19:35:35 +03:00
alperozturk96 5e02399b1c split into child classes to simplify logic
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 19:31:58 +03:00
alperozturk96 0b6bc33285 convert tests to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 19:31:42 +03:00
alperozturk96 a6b6e59d11 convert async task to coroutines
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 19:19:15 +03:00
alperozturk96 19cbac87c2 refactor(authenticator-activity): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 19:14:27 +03:00
alperozturk96 f0fb4a044c Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 19:14:26 +03:00
alperozturk96 9bff11a311 remove codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 16:18:07 +01:00
Alper Öztürk 0688788230 Merge pull request #17867 from nextcloud/refactor/unify-file-action
refactor(file-actions): unify preview fragments
2026-10-27 16:01:47 +01:00
alperozturk96 962de1d4c8 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 17:03:11 +03:00
alperozturk96 b194dee07b refactor PreviewTextFileFragment convert to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 17:03:11 +03:00
alperozturk96 a23160b4e4 refactor PreviewTextFileFragment convert to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 17:03:11 +03:00
alperozturk96 9f5dcd7116 refactor PreviewTextFileFragment convert to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 17:03:11 +03:00
alperozturk96 4057b4ccd1 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-27 17:03:11 +03:00
alperozturk96 632396f0f7 refactor(file-actions): unify preview fragments
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java
2026-10-27 17:03:11 +03:00
alperozturk96 9bf5602c2d refactor(file-actions): unify preview fragments
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/preview/media/PreviewMediaFragment.kt
2026-10-27 17:03:10 +03:00
Alper Öztürk 2e628d8f62 Merge pull request #17886 from nextcloud/refactor/oc-file-list-fragment-kotlin
refactor(oc-file-list-fragment): kotlin
2026-10-27 14:53:49 +01:00
Tobias Kaminsky a8c54accbd Merge pull request #17852 from nextcloud/feat/support-move-method
Implemented MOVE WebDAV method for SSO requests
2026-10-27 10:12:31 +01:00
Nextcloud bot 3679c7f2c2 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-27 03:52:42 +00:00
alperozturk96 1d9bbe9c55 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-10-26 19:47:21 +03:00
alperozturk96 27f706f257 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-10-26 19:26:57 +03:00
alperozturk96 e25410438f refactor(oc-file-list-fragment): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-26 19:13:30 +03:00
alperozturk96 afb55de964 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-26 19:13:29 +03:00
renovate[bot]andTobias Kaminsky 2997278f40 Update dependency org.conscrypt:conscrypt-android to v2.8.0 (#17875)
* Update dependency org.conscrypt:conscrypt-android to v2.8.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tobias Kaminsky <[email protected]>
2026-10-26 15:59:24 +00:00
Tobias Kaminsky 1795cde04f Merge pull request #17731 from nextcloud/extractFastlane
extract Fastlane
2026-10-26 16:40:19 +01:00
tobiasKaminsky 4ea5d865ce clarify semVer
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-26 16:18:08 +01:00
tobiasKaminsky 85604bbe85 extract Fastlane
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-26 16:18:05 +01:00
daniele-verducci 1984c94a85 Fix SpotBugs LITERAL_STRING_COMPARISON
Signed-off-by: daniele-verducci <[email protected]>
2026-10-26 14:10:57 +01:00
daniele-verducci c8bcb9c1d8 Implemented MOVE WebDAV method in InputStreamBinder to make it available trough Android-SingleSignOn lib
Signed-off-by: daniele-verducci <[email protected]>
2026-10-26 13:07:53 +01:00
Alper Öztürk 71c112b0d4 Merge pull request #17866 from nextcloud/feat/provide-long-name-in-file-action-bottom-sheet
feat(file-actions): show long file names on up to three lines
2026-10-26 12:50:49 +01:00
Tobias Kaminsky 9f73851e5f Merge pull request #17882 from nextcloud/update-library-2026-10-26_2
Update library to 2026-10-26
2026-10-26 12:45:43 +01:00
Alper Öztürk 3b653e73f1 Merge pull request #17870 from nextcloud/adjust-detekt
chore(detekt): relax rules and drop obsolete suppressions
2026-10-26 11:59:50 +01:00
renovate[bot]andTobias Kaminsky bc844bc023 Update dependency androidx.webkit:webkit to v1.18.0 (#17879)
* Update dependency androidx.webkit:webkit to v1.18.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Signed-off-by: Tobias Kaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Tobias Kaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tobias Kaminsky <[email protected]>
2026-10-26 10:31:25 +00:00
renovate[bot] 72ba1d8d46 Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.12.0 (#17872)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-26 10:50:07 +01:00
daniele-verducci 516934fc91 Update library to 2026-10-26
Signed-off-by: daniele-verducci <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-26 10:33:33 +01:00
Tobias Kaminsky 2804ff620f Merge pull request #17877 from nextcloud/renovate/firebasemessagingversion
Update dependency com.google.firebase:firebase-messaging to v26.0.1
2026-10-26 08:42:51 +01:00
Tobias Kaminsky 05d28f8872 Merge pull request #17871 from nextcloud/renovate/gradle-9.x
Update Gradle to v9.8.2
2026-10-26 08:42:13 +01:00
Nextcloud bot 0bbf14e92c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-26 03:54:11 +00:00
Andy Scherzinger eacb7e4dc0 Merge pull request #17878 from nextcloud/renovate/github-codeql-action-4.x
Update github/codeql-action action to v4.39.1
2026-10-25 22:05:50 +01:00
renovate[bot] 7ba1a758b8 Update github/codeql-action action to v4.39.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-25 18:39:38 +00:00
renovate[bot] e12b988158 Update dependency com.google.firebase:firebase-messaging to v26.0.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-25 18:39:24 +00:00
rakekniven 7cc0c88983 fix(i18n): Fix typo in gallery unsupported file message
Reported at Transifex

Signed-off-by: rakekniven <[email protected]>
2026-10-25 18:03:27 +01:00
Nextcloud bot 364883a6ec fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-25 04:17:57 +00:00
Ruby20-50 7a5c48a9f0 Add unit tests for DateFormatPattern
Format a fixed date with each pattern and compare the result with the example given in the pattern's documentation.

Signed-off-by: Ruby20-50 <[email protected]>
2026-10-24 10:56:46 +02:00
Nextcloud bot cae2070490 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-24 03:49:12 +00:00
renovate[bot] 54e6dd4432 Update Gradle to v9.8.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-23 18:30:38 +00:00
alperozturk96 8b3f38c610 chore(detekt): relax rules and drop obsolete suppressions
Signed-off-by: alperozturk96 <[email protected]>
2026-10-23 12:01:50 +02:00
Alper Öztürk d57fdc8981 Merge pull request #17869 from nextcloud/fix/lint
fix lint
2026-10-23 11:46:41 +02:00
alperozturk96 5a761b28f3 fix lint
Signed-off-by: alperozturk96 <[email protected]>
2026-10-23 11:27:34 +02:00
Tobias Kaminsky 580b4203a2 Merge pull request #17737 from nextcloud/renovate/spotless
Update dependency com.diffplug.spotless to v8.10.4
2026-10-23 10:01:31 +02:00
Tobias Kaminsky dd64c29490 Merge pull request #17820 from nextcloud/renovate/juniversalchardetversion
Update dependency com.github.albfernandez:juniversalchardet to v2.5.1
2026-10-23 10:01:14 +02:00
Tobias Kaminsky 868922abcd Merge pull request #17859 from nextcloud/renovate/ubuntu-26.x
Update dependency ubuntu to v26
2026-10-23 10:01:01 +02:00
Tobias Kaminsky 83727c2834 Merge pull request #17779 from nextcloud/renovate/ical4jversion
Update dependency org.mnode.ical4j:ical4j to v4.4.0
2026-10-23 09:03:59 +02:00
tobiasKaminsky 866709070e fix kvm
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-23 08:50:15 +02:00
renovate[bot] 760f573edb Update dependency ubuntu to v26
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-23 08:48:26 +02:00
Nextcloud bot f15b2f9dc4 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-23 03:55:00 +00:00
alperozturk96 6558f45f6e fix error: cannot find symbol
import androidx.lifecycle.ProcessLifecycleOwner;

Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 16:15:05 +02:00
alperozturk96 2bbb2d386e abi optimization for build and remove data binding and is fork
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 15:29:45 +02:00
alperozturk96 40a4a27fe4 disable data binding
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 15:24:12 +02:00
Alper Öztürk c4932a7046 Merge pull request #17864 from nextcloud/refactor/unify-file-actions
refactor(file-actions): unify
2026-10-22 14:42:30 +02:00
Alper Öztürk 4f732286bb Merge pull request #17865 from nextcloud/fix/file-list-update
fix(file-list): renew after upload
2026-10-22 14:36:24 +02:00
alperozturk96 741a9eea3e use in file actions bottom sheet
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 14:30:39 +02:00
alperozturk96 af2643eee2 introduce reusable filenameview
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 14:30:31 +02:00
alperozturk96 9a73d3a712 fix(file-list): renew after upload
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 11:40:59 +02:00
alperozturk96 6e49655948 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 10:35:53 +02:00
alperozturk96 2d61551c8a simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 10:05:38 +02:00
alperozturk96 f1e4f35abe migrate oc file list fragment
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 10:01:39 +02:00
Alper Öztürk 6e7bbf4178 Merge pull request #17842 from nextcloud/observe-file-downloads-in-folder
feat(folder-download): observe file downloads
2026-10-22 09:46:08 +02:00
alperozturk96 347cf282ba migrate file detail actions to file action handler
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 09:26:12 +02:00
Alper Öztürk 5cfdf3089f Merge pull request #17850 from nextcloud/refactor/web-view-util
refactor(web-view-util): use proxy controller
2026-10-22 09:02:12 +02:00
alperozturk96 b5ec4f4769 use app consts
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:57:07 +02:00
alperozturk96 d87ea8dd3a fix dir observation
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:57:07 +02:00
alperozturk96 c621738ae7 fix icon changes
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:57:07 +02:00
alperozturk96 d98ce8454c set current folder id
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:57:07 +02:00
alperozturk96 8f9cb4f7a9 add file download progress in current folder sync
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:57:07 +02:00
alperozturk96 56ee9fdb43 use worker instead local broadcast manager
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:57:07 +02:00
Alper Öztürk b68e602800 Merge pull request #17826 from nextcloud/fix/internal-105127
Fix local/remote image file comparison
2026-10-22 08:55:45 +02:00
Alper Öztürk 71881954dc Merge pull request #17851 from nextcloud/refactor/resized-image-generation-task
refactor(thumbail-cache-manager): resized image generation
2026-10-22 08:52:41 +02:00
alperozturk96 8ff8cd8be1 fix kotlin spotless bug
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:27:54 +02:00
alperozturk96 760bd4d79d fix kotlin spotless bug
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:25:03 +02:00
daniele-verducci ceb1d38c48 Wait for proxy only if there's a proxy configured
Signed-off-by: daniele-verducci <[email protected]>
2026-10-22 08:20:03 +02:00
alperozturk96 28a8672443 refactor(web-view-util): use ProxyController
Signed-off-by: alperozturk96 <[email protected]>
2026-10-22 08:20:03 +02:00
Nextcloud bot 671c4df2d3 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-22 03:48:09 +00:00
daniele-verducci 332f6f58ce Refactored tests
Signed-off-by: daniele-verducci <[email protected]>
2026-10-21 17:15:33 +02:00
alperozturk96 62e06864a1 rebase
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 17:15:33 +02:00
daniele-verducci 5d84351639 Implemented tests
Signed-off-by: daniele-verducci <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/utils/extensions/RemoteFileExtensions.kt
2026-10-21 17:15:33 +02:00
daniele-verducci 300eb6fd4c Fix: areImageDimensionsSame remote file check is now symmetric to local one (it doesn't fail when dimensions are unknown)
Signed-off-by: daniele-verducci <[email protected]>
2026-10-21 17:15:33 +02:00
Alper Öztürk 6645a685d4 Merge pull request #17863 from nextcloud/update-library-2026-10-21
Updated android-library
2026-10-21 17:12:29 +02:00
daniele-verducci c586fecd3e Updated android-library
Signed-off-by: daniele-verducci <[email protected]>
2026-10-21 17:06:22 +02:00
alperozturk96 75c655a544 replace deprecated api with display metrics
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 16:55:14 +02:00
alperozturk96 e00baeca70 deduplicate display size logic
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 16:55:14 +02:00
alperozturk96 9a331f76f0 refactor(thumbail-cache-manager): resized image generation
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 16:55:14 +02:00
alperozturk96 2c2c8cd1b9 remove dead code
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 16:54:36 +02:00
Alper Öztürk 3f9d8d4878 Merge pull request #17844 from nextcloud/refactor/file-detail-fragment-kotlin
refactor(file-detail-fragment): kotlin
2026-10-21 16:53:03 +02:00
Alper Öztürk a2596d220c Merge pull request #17824 from nextcloud/improve-login-flow
Improve login flow
2026-10-21 16:51:16 +02:00
Alper Öztürk e0630f0bed Merge pull request #17854 from nextcloud/feat/navigator-synced-folders-activity
feat(navigator): synced folder activity
2026-10-21 15:21:28 +02:00
alperozturk96 ab74cf7ba2 feat(navigator): synced folder activity
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 14:37:31 +02:00
alperozturk96 9703cb10ad feat(navigator): synced folder activity
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 14:37:31 +02:00
alperozturk96 8d149f3a00 feat(navigator): synced folder activity
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 14:37:31 +02:00
alperozturk96 43b3ba870f feat(navigator): synced folder activity
Signed-off-by: alperozturk96 <[email protected]>
2026-10-21 14:37:31 +02:00
Alper Öztürk f738ac0621 Merge pull request #17840 from nextcloud/refactor/resolve-naming-confusion
refactor(preview): structure, naming
2026-10-21 11:24:53 +02:00
Alper Öztürk df13e8b5cd Merge pull request #17853 from nextcloud/refactor/reorganize-package-structure
refactor: reorganize dialog package structure
2026-10-21 11:19:27 +02:00
Tobias Kaminsky ee9b8b5380 fix(ical4j): match nullable getTzId() return type from ical4j 4.4.0
ical4j 4.4.0 annotates TimeZoneRegistry.getTzId() as @Nullable (it can
return null when the zone id has no mapping). Update the override to
match, fixing a Kotlin compile error introduced by the ical4j bump.

Signed-off-by: Tobias Kaminsky <[email protected]>
2026-10-21 11:07:47 +02:00
Tobias Kaminsky 12d5fc543f fix verification-metadata.xml
Signed-off-by: Tobias Kaminsky <[email protected]>
2026-10-21 10:30:46 +02:00
Tobias Kaminsky e74ed7f033 fix verification-metadata.xml
Signed-off-by: Tobias Kaminsky <[email protected]>
2026-10-21 10:30:43 +02:00
tobiasKaminsky 37c595bae9 fix verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-21 09:31:51 +02:00
tobiasKaminsky b45f336aef fix verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-21 09:11:52 +02:00
renovate[bot] b819e8081f Update dependency com.github.albfernandez:juniversalchardet to v2.5.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-21 09:11:49 +02:00
renovate[bot] cd3cee246b Update dependency org.mnode.ical4j:ical4j to v4.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-21 09:10:42 +02:00
tobiasKaminsky 872bf3f95a fix verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-21 09:04:03 +02:00
renovate[bot] 10cd0fa39a Update dependency com.diffplug.spotless to v8.10.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-21 09:04:03 +02:00
renovate[bot]andtobiasKaminsky 844c268e01 Update dependency androidx.annotation:annotation to v1.11.0 (#17721)
* Update dependency androidx.annotation:annotation to v1.11.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Signed-off-by: tobiasKaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: tobiasKaminsky <[email protected]>
2026-10-21 06:35:15 +00:00
Tobias Kaminsky 6ad4226d37 Merge pull request #17858 from nextcloud/renovate/ubuntu-resolute
Update ubuntu:resolute Docker digest to c098726
2026-10-21 08:02:38 +02:00
Tobias Kaminsky f790ef71a9 Merge pull request #17720 from nextcloud/renovate/webkitversion
Update dependency androidx.webkit:webkit to v1.17.1
2026-10-21 08:02:03 +02:00
renovate[bot] b8c4886a57 Update ubuntu:resolute Docker digest to c098726
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-21 05:46:34 +00:00
Tobias Kaminsky 4e5ce14e26 Merge pull request #17673 from nextcloud/renovate/major-androidcommonlibraryversion
Update androidCommonLibraryVersion to (major)
2026-10-21 07:44:55 +02:00
renovate[bot] 86bf8ce18b Update actions/setup-java action to v6.1.0 (#17857)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-21 05:20:26 +00:00
Nextcloud bot 8174f063c6 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-21 03:39:01 +00:00
renovate[bot] d510714670 Update dependency com.google.android.gms:play-services-base to v18.11.1 (#17855)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-20 19:45:58 +00:00
alperozturk96 196853c84c refactor: reorganize dialog package structure
Signed-off-by: alperozturk96 <[email protected]>
2026-10-20 13:36:03 +02:00
renovate[bot]andtobiasKaminsky c6551ff3f5 Update dependency com.github.spotbugs to v6.5.12 (#17747)
* Update dependency com.github.spotbugs to v6.5.13

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Signed-off-by: tobiasKaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: tobiasKaminsky <[email protected]>
2026-10-20 10:23:22 +00:00
renovate[bot]andtobiasKaminsky 665b42d027 Update kotlin monorepo to v2.4.21 (#17831)
* Update kotlin monorepo to v2.4.21

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Signed-off-by: tobiasKaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: tobiasKaminsky <[email protected]>
2026-10-20 10:20:09 +00:00
tobiasKaminsky b757fdd662 fix verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-20 10:56:21 +02:00
tobiasKaminsky 8ed232923a fix verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-20 10:51:43 +02:00
renovate[bot]andtobiasKaminsky d9ba67eb05 Update dependency com.google.firebase:firebase-messaging to v26 (#17833)
* Update dependency com.google.firebase:firebase-messaging to v26

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix verification-metadata.xml

Signed-off-by: tobiasKaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: tobiasKaminsky <[email protected]>
2026-10-20 08:40:34 +00:00
alperozturk96 d034ef94ad fix double duplicate snackbar
Signed-off-by: alperozturk96 <[email protected]>
2026-10-20 08:54:00 +02:00
alperozturk96 4f4e403fd7 add better error message for weak password
Signed-off-by: alperozturk96 <[email protected]>
2026-10-20 08:47:31 +02:00
alperozturk96 9bf6a7be02 fix enforce password check
Signed-off-by: alperozturk96 <[email protected]>
2026-10-20 08:41:11 +02:00
Alper Öztürk 6003baf295 Merge pull request #17796 from nextcloud/feat/show-unsupported-files-in-media
feat(gallery): indicate unsupported media
2026-10-20 07:34:57 +02:00
alperozturk96 4082cc635d refactor(file-detail-fragment): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-20 07:33:53 +02:00
alperozturk96 e2c412c0d4 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-20 07:33:53 +02:00
Alper Öztürk 1a747ce089 Merge pull request #17847 from nextcloud/upgrade-lib
update android lib
2026-10-20 07:33:30 +02:00
alperozturk96 f7040b4f6a update android lib
Signed-off-by: alperozturk96 <[email protected]>
2026-10-20 07:33:05 +02:00
Alper Öztürk 7b9ec18ded Merge pull request #17843 from nextcloud/refactor/app-constants
refactor(app): time constants
2026-10-20 07:23:22 +02:00
Nextcloud bot 6c9e7d4cae fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-20 03:50:24 +00:00
alperozturk96 8636d2f589 refactor(app): time constants
Signed-off-by: alperozturk96 <[email protected]>
2026-10-19 15:16:02 +02:00
alperozturk96 2b7002e8df update unsupported text
Signed-off-by: alperozturk96 <[email protected]>
2026-10-19 15:11:54 +02:00
alperozturk96 8671504052 move view logic to the xmls
Signed-off-by: alperozturk96 <[email protected]>
2026-10-19 15:09:59 +02:00
alperozturk96 18e9648ac3 use gallery cell instead of introducing another index
Signed-off-by: alperozturk96 <[email protected]>
2026-10-19 15:09:59 +02:00
alperozturk96 26fafa3dd4 feat(gallery): indicate unsupported media
Signed-off-by: alperozturk96 <[email protected]>
2026-10-19 15:09:58 +02:00
alperozturk96 f0086b64f3 refactor(preview): package structure
Signed-off-by: alperozturk96 <[email protected]>
2026-10-19 09:38:24 +02:00
alperozturk96 1e674fcc10 refactor(preview): image rename to media
Signed-off-by: alperozturk96 <[email protected]>
2026-10-19 09:34:27 +02:00
Alper Öztürk 0ae8a0be73 Merge pull request #17830 from nextcloud/fix/17825-video-player-timeout-fullscreen
Video player: fullscreen now hides system status bar, keep screen on while video is playing
2026-10-19 09:31:16 +02:00
Nextcloud bot c7545d8c80 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-19 03:48:58 +00:00
Nextcloud bot ef4a2de0d2 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-18 03:50:10 +00:00
Nextcloud bot 908900dd66 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-17 03:52:50 +00:00
Andy Scherzinger 987bfcd7fa Merge pull request #17832 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.241.0
2026-10-16 18:48:53 +02:00
renovate[bot] 3e2b6489ba Update dependency fastlane to v2.241.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-16 16:02:56 +00:00
daniele-verducci bf6a0ce441 Keep screen on while video is playing
Signed-off-by: daniele-verducci <[email protected]>
2026-10-16 17:14:24 +02:00
daniele-verducci cce5f77c63 Video/Image player: hide all system bars when going fullscreen instead of leaving the top system bar in place
Signed-off-by: daniele-verducci <[email protected]>
2026-10-16 17:14:24 +02:00
Andy Scherzinger 0dc932709a Merge pull request #17829 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-10-16 09:05:44 +02:00
nextcloud-android-bot 9d78e7267a 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-10-16 06:43:15 +00:00
Nextcloud bot b2fb75b4bd fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-16 03:51:47 +00:00
Nextcloud bot bbd7357654 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-15 04:16:56 +00:00
Alper Öztürk 011255c972 Merge pull request #17810 from nextcloud/fix/better-file-detail-spacing-for-small-screen-devices
fix(file-detail): better spacing
2026-10-14 14:25:38 +02:00
alperozturk96 7c7582e82f fix padding
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 13:41:07 +02:00
alperozturk96 d8a2540c0c wip
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 13:41:07 +02:00
alperozturk96 e256e4318b add HeaderFirstNestedScrollView
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
#	app/src/main/res/layout/file_details_fragment.xml
2026-10-14 13:41:07 +02:00
alperozturk96 0650bf63ab adds more logs to clearly follow execution flow in the logs
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 13:28:42 +02:00
alperozturk96 667bbeda96 use kotlinx instead of gson
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 13:28:42 +02:00
alperozturk96 a6abcbe2a6 handle restore pending login flow and cancel button
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 13:28:42 +02:00
Alper Öztürk 03e831918a Merge pull request #17789 from nextcloud/fix/glide-usage
fix(glide): usages
2026-10-14 13:04:59 +02:00
Alper Öztürk d1c4ae1de3 Merge pull request #17809 from nextcloud/fix/avatar-different-share-types
fix(avatar): different share
2026-10-14 12:38:18 +02:00
alperozturk96 c982815607 make widget images rounded as well
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:25:21 +02:00
alperozturk96 cf9afed442 fix kotlin spotless
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
alperozturk96 cc3fb27b0e handle picture drawable as well
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
alperozturk96 0f5f56b93b add monochrome icon support and use correct size for unified search
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
alperozturk96 53e60b0fa8 update glide
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
alperozturk96 0e397e5d84 update widget calls
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
alperozturk96 8658c63852 unify widget icon sizes
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
alperozturk96 a967b60773 decode SVG
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
alperozturk96 3340a6ed14 update item id for downloaded files because FragmentStateAdapter.java relies on item id to remove and replace
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 11:15:45 +02:00
Alper Öztürk 0cb643efb0 Merge pull request #17618 from nextcloud/feature/create-folder-during-upload
Use new auto folder creation feture available since Nextcloud 32
2026-10-14 11:00:34 +02:00
Alper Öztürk e214663082 Merge pull request #17814 from nextcloud/refactor/oc-file-list-adapter-kotlin
refactor(oc-file-list-adapter): kotlin
2026-10-14 11:00:05 +02:00
alperozturk96 4160bc1783 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducci f2d0e0264b Create local folders metadata to reflect server's auto folder creation
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducci 8dff5cc6dd Moved dir tree creation to extensions (automatic java to kotlin conversion)
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducci f7981451a5 Rebased
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducci 04f93eaae9 Use isOlderThan on capabilities for code readability
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducciandAlper Öztürk b30b420815 Apply suggestion from @alperozturk96
Co-authored-by: Alper Öztürk <[email protected]>
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducci e75ce43d96 Working new auto folder creation feature on uploads
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducci 6e74ab5625 Updated android-library
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
daniele-verducci 0cf019d3a3 feature/create-folder-during-upload: use new auto folder creation feature
Signed-off-by: daniele-verducci <[email protected]>
2026-10-14 09:46:25 +02:00
alperozturk96 2ffd6b8c8f add folder mark favorite action
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:14:03 +02:00
alperozturk96 cec4525b64 fix spotless check
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:12:02 +02:00
alperozturk96 17fc711976 use kt extension and simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:12:02 +02:00
alperozturk96 ce5625c831 reorganize package
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:12:01 +02:00
alperozturk96 83636b97af simplify adapter
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:12:01 +02:00
alperozturk96 bba721124e extract item binder
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:12:01 +02:00
alperozturk96 476a76d6b8 convert java to kotlin
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.kt
2026-10-14 09:11:59 +02:00
alperozturk96 d6a98618c3 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-14 09:11:50 +02:00
Alper Öztürk 0699d5ae14 Merge pull request #17817 from nextcloud/feat/current-folder-actions
Add folder actions for folder you are currently in
2026-10-14 08:58:34 +02:00
Nextcloud bot 552e8bdf50 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-14 03:52:00 +00:00
Andy Scherzinger 1d438a3e73 Merge pull request #17819 from nextcloud/renovate/actions-upload-artifact-7.x
Update actions/upload-artifact action to v7.0.2
2026-10-13 17:33:59 +02:00
renovate[bot] 93533a04ba Update actions/upload-artifact action to v7.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-13 14:53:31 +00:00
Andy Scherzinger 1a6def2bf7 Merge pull request #17818 from nextcloud/renovate/ubuntu-resolute
Update ubuntu:resolute Docker digest to f144425
2026-10-13 16:52:21 +02:00
alperozturk96 9fba721686 remove tests since its visible ui action
Signed-off-by: alperozturk96 <[email protected]>
2026-10-13 15:29:36 +02:00
alperozturk96 5817deeae1 revert file download indicator since out of scope of the feature and for folder download worker can cause issue
Signed-off-by: alperozturk96 <[email protected]>
2026-10-13 15:28:46 +02:00
Jan C. Borchardt ca1cbb3b02 fix(files): hide synced icon after deleting local copy
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <[email protected]>
2026-10-13 15:02:25 +02:00
Jan C. Borchardt 5055c412b9 feat(files): show syncing icon on files while folder downloads
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <[email protected]>
2026-10-13 15:02:25 +02:00
Jan C. Borchardt f34b77a3e3 fix(files): avoid list shift when opening details
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <[email protected]>
2026-10-13 15:02:25 +02:00
Jan C. Borchardt 6d53ce0cfe feat(files): show actions for current folder in toolbar
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <[email protected]>
2026-10-13 15:02:25 +02:00
renovate[bot] 9d3ffcf897 Update androidCommonLibraryVersion to
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-13 11:20:46 +00:00
renovate[bot] 3793bf6347 Update dependency androidx.webkit:webkit to v1.17.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-13 11:16:53 +00:00
renovate[bot] 78477765f6 Update ubuntu:resolute Docker digest to f144425
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-13 11:15:41 +00:00
Andy Scherzinger 5b2987a33c Merge pull request #17712 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-10-13 13:03:26 +02:00
nextcloud-android-bot ff3d84047d 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-10-13 08:57:15 +00:00
Alper Öztürk 80e5b36bdb Merge pull request #17598 from nextcloud/internalTwoWaySyncUploadNewFiles
Internal two way sync upload new files
2026-10-13 09:50:21 +02:00
alperozturk96 c2c3f501b4 fix rest uploads
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 18:37:07 +02:00
alperozturk96 6dc1152bfb fix updated upload
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 18:33:54 +02:00
alperozturk96 4e316e3dc2 fix move operation
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:45:22 +02:00
alperozturk96 f18d1c3a6e add tests for edge case
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 566df060ab check remote file as well for is file delete
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 e2049a5554 add comment for isFolderDeletedLocally
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 e56c8db76c rename function for storage path that needed two way sync
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 f3cb156b53 fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 dd73b46c31 refactor test and prevent lock error on text file thus we can test
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 a152a84fdd handle parent folder deletion
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 29ea643e7c handle parent folder deletion and fix spotbugs
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 528b3ee64f handle if server: creates new folder
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 5bb355b7e6 use UploadFileOperationFactory
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
alperozturk96 a4b898d2eb use TwoWaySyncOperation.kt instead bloat SynchronizeFolderOperation.java
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 14:34:41 +02:00
tobiasKaminsky bab01b771d Internal two way sync: upload new created files/folders
Signed-off-by: tobiasKaminsky <[email protected]>
2026-10-12 14:34:41 +02:00
tobiasKaminsky 205b2bbed6 Internal two way sync: upload new created files/folders
Signed-off-by: tobiasKaminsky <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/operations/SynchronizeFolderOperation.java
#	app/src/main/res/values/strings.xml
2026-10-12 14:34:41 +02:00
Alper Öztürk 404ddc5d33 Merge pull request #17785 from nextcloud/perf/replace-file-download-progress-event-bus
perf(file-detail-fragment): replace event bus with worker observation
2026-10-12 13:48:21 +02:00
Alper Öztürk 91679d412c Merge pull request #17791 from nextcloud/refactor/upload-file-operation-file-resolver
refactor(upload-file-operation): upload file resolver
2026-10-12 13:25:19 +02:00
Alper Öztürk 72d1790067 Merge pull request #17786 from nextcloud/perf/bitmap-usage
perf(bitmap): recycle
2026-10-12 13:24:36 +02:00
Alper Öztürk 9353b3a6c5 Merge pull request #17782 from nextcloud/refactor/upload-files-activity-kotlin
refactor(upload-list-activity): kotlin
2026-10-12 13:09:27 +02:00
alperozturk96 a614acf845 update callers
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 13:08:22 +02:00
alperozturk96 a525105706 add agent skills for further migrations
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 13:04:38 +02:00
alperozturk96 1ad8aba3b8 update file detail fragment and make progress bar m3
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/fragment/FileDetailFragment.java
2026-10-12 13:04:36 +02:00
alperozturk96 9320e84118 use new listening approach in worker
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 13:04:29 +02:00
alperozturk96 2deb2c91ad add new view model for the proper observation
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 13:04:29 +02:00
alperozturk96 f0fb847048 remove dead file download progress listener
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 13:04:29 +02:00
alperozturk96 04fb3fbdb9 remove event bus for file download progress observation
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 13:04:29 +02:00
alperozturk96 50c65ca6af expose file download job tag
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 13:04:27 +02:00
Alper Öztürk ef0edb231a Merge pull request #17699 from nextcloud/r8_minify
Enable app optimization with R8
2026-10-12 12:58:52 +02:00
Alper Öztürk e8d681ddc4 Merge pull request #17668 from nextcloud/perf/file-list-adapter-diff-util
perf(file-list): diff util
2026-10-12 12:51:36 +02:00
Alper Öztürk 8e70c23cde Merge pull request #17783 from nextcloud/perf/push-config-state-kotlinx
perf(push-configuration-state): gson to kotlinx.serialization
2026-10-12 12:50:08 +02:00
alperozturk96 5a8619989b update tests
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 12:49:23 +02:00
alperozturk96 44fa66237d fix build
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 12:47:48 +02:00
alperozturk96 cccf7fdc71 perf(bitmap): usage
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
2026-10-12 12:47:48 +02:00
alperozturk96 db6ae7b7d1 update updateOCFile
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 12:47:13 +02:00
alperozturk96 29a3ed51a3 update updateOCFile
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 12:47:01 +02:00
alperozturk96 1270ead7a8 add tests
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 12:46:06 +02:00
alperozturk96 db867e39a5 refactor(upload-file-operation): upload file resolver
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java
2026-10-12 12:46:04 +02:00
Alper Öztürk 1a2a120432 Merge pull request #17793 from nextcloud/refactor/file-storage-utils-kotlin
refactor(file-storage-utils): kotlin
2026-10-12 12:44:14 +02:00
Alper Öztürk 3977f81b56 Merge pull request #17788 from nextcloud/refactor/media-thumbnail-generation-task
refactor(media-thumbnail-generation): kotlin
2026-10-12 12:07:40 +02:00
Alper Öztürk 1f15aa8cd1 Merge pull request #17790 from nextcloud/refactor/client-factory
refactor(client-repository)
2026-10-12 12:01:51 +02:00
Alper Öztürk a0fc66049c Merge pull request #17795 from nextcloud/feat/folder-preview
feat(file-details): previews
2026-10-12 11:46:21 +02:00
alperozturk96 35fae4cc92 simplify AvatarGroupLayout
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 11:44:44 +02:00
alperozturk96 164d26d61c simplify FilesSpecificViewThemeUtils
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 11:44:44 +02:00
alperozturk96 cb62c4c18f fix
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 11:44:44 +02:00
Alper Öztürk 0567e55aff Merge pull request #17347 from MaqsudMallick/fix/missing-branch-path-for-email-appid-in-profile-bottom-sheet
fix(profile): handle "email" appId so Send email button works
2026-10-12 11:04:25 +02:00
Alper Öztürk 11d63de493 Merge pull request #17769 from nextcloud/fix-tests-config
Fix tests server data configuration for local dev
2026-10-12 10:04:34 +02:00
Alper Öztürk 92a52e604f Merge pull request #17799 from nextcloud/update-library-2026-10-11
Update library to 2026-10-11
2026-10-12 10:03:07 +02:00
Alper Öztürk 1300cc2bb9 Merge pull request #17803 from nextcloud/fix/garm-upload-it
fix(garm): upload it
2026-10-12 09:59:33 +02:00
Alper Öztürk 1e7b48f650 Merge pull request #17728 from nextcloud/renovate/gradle-9.x
chore(deps): update gradle to v9.8.1
2026-10-12 09:27:34 +02:00
alperozturk96 0887263fbf fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 09:24:41 +02:00
alperozturk96 357e9853e5 convert UploadIT to kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 09:22:08 +02:00
alperozturk96 51333d98c7 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 09:22:07 +02:00
alperozturk96 14f81c5355 fix tests
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 09:22:00 +02:00
daniele-verducci 9030fe1566 Fix tests server data configuration for local dev
Signed-off-by: daniele-verducci <[email protected]>
2026-10-12 09:20:56 +02:00
alperozturk96 f27d363c75 verify metadata
Signed-off-by: alperozturk96 <[email protected]>
2026-10-12 09:16:57 +02:00
Nextcloud Android Bot 5ea8fe796c Update library to 2026-10-11
Signed-off-by: Nextcloud Android Bot <[email protected]>
2026-10-12 09:16:03 +02:00
Nextcloud bot c62e197b2c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-12 03:56:42 +00:00
renovate[bot] 1a1235e1fa chore(deps): update gradle to v9.8.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-11 20:24:17 +00:00
alperozturk96 13ef964855 feat(file-details): previews
Signed-off-by: alperozturk96 <[email protected]>
2026-10-09 12:13:39 +02:00
Alper Öztürk 1ae824cc88 Merge pull request #17794 from nextcloud/fix/garm-5
fix(garm): drawer activity it
2026-10-09 10:19:16 +02:00
alperozturk96 88864ca81a fix(garm): drawer activity it
Signed-off-by: alperozturk96 <[email protected]>
2026-10-09 08:58:43 +02:00
alperozturk96 c9e961b319 logs errors
Signed-off-by: alperozturk96 <[email protected]>
2026-10-09 08:50:02 +02:00
alperozturk96 8033e7ea63 refactor(file-storage-utils): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-09 08:47:17 +02:00
alperozturk96 e00b7c3224 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-09 08:47:16 +02:00
Alper Öztürk 1b08c2f19e Merge pull request #17445 from about2crash/fix-drawer-external-links
fix(drawer): external site links no longer stop working over time
2026-10-09 08:09:30 +02:00
Alper Öztürk d02abe4d74 Merge branch 'master' into fix-drawer-external-links 2026-10-08 15:28:28 +02:00
about2crash e6d5ef66a7 refactor(drawer): simplify external link click handling
Extract opening the link into openExternalLink() as suggested in review.

Signed-off-by: about2crash <[email protected]>
2026-10-08 15:07:55 +02:00
alperozturk96 a880fd267e deprecate ClientFactory
Signed-off-by: alperozturk96 <[email protected]>
2026-10-08 14:34:21 +02:00
alperozturk96 49dcfdb270 update AGENTS.md fur further usages
Signed-off-by: alperozturk96 <[email protected]>
2026-10-08 14:32:42 +02:00
alperozturk96 824dedfbb7 use ClientRepository in AlbumItemsFragment for future reference
Signed-off-by: alperozturk96 <[email protected]>
2026-10-08 14:19:44 +02:00
alperozturk96 8ccdb9b75d inject dependencies for the remote client repository
Signed-off-by: alperozturk96 <[email protected]>
2026-10-08 14:17:10 +02:00
alperozturk96 6817b9ef06 refactor(media-thumbnail-generation): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-08 12:24:35 +02:00
Nextcloud bot 8c528d1150 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-08 04:15:52 +00:00
alperozturk96 b84b9fae6e update usage of the new push configuration data classes
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 15:47:24 +02:00
alperozturk96 6315d51d20 use app wide json kotlinx for other classes as well
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 15:46:53 +02:00
alperozturk96 95ba7006ca convert push configuration state to kotlin data class
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 15:46:36 +02:00
alperozturk96 d4e90bad5c introduce app wide json util object for kotlinx.serialization
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 15:46:12 +02:00
alperozturk96 6b1f6d03ad refactor(upload-list-activity): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 14:43:32 +02:00
alperozturk96 77b7118bd9 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 14:43:32 +02:00
alperozturk96 ede9591f72 handle edge cases
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 14:39:21 +02:00
alperozturk96 a886b68692 use OCFileListDiffer
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 13:44:13 +02:00
alperozturk96 65e3560b0c rename helper package to filelist
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 13:37:55 +02:00
alperozturk96 2f061a4c28 perf(file-list): diff util
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 13:07:27 +02:00
alperozturk96 4bbd08f80f fix garm
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 12:36:27 +02:00
alperozturk96 0f914a674a update license header and remove comments
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 12:04:41 +02:00
alperozturk96 a171932289 remove pmnifiy
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 12:04:41 +02:00
alperozturk96 a559af213d fix slide behaviour crash when going back from settings
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 12:04:41 +02:00
alperozturk96 e3fe0d0d5c remove pminify
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 12:04:41 +02:00
alperozturk96 a3d79bbeb9 update agents md
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 12:04:41 +02:00
alperozturk96 6fc208841c add new rules
Signed-off-by: alperozturk96 <[email protected]>
2026-10-07 12:04:41 +02:00
Philipp Hasper d5683adeb4 feat(build): gradle property to control optimization, set for CI
This adds a property to enable the optimization, and it is activated for
the CI
- build
- screenshot tests
- instrumentation tests
- unit test (though probably without effect)

For this to work, it must also be present in the debug build variant

Signed-off-by: Philipp Hasper <[email protected]>
2026-10-07 12:04:41 +02:00
Philipp Hasper ac20857286 feat(build): First step towards R8 minify - still crashing
With keeping the apache httpclient, webdav and ical4j, the app at least
starts.

But it crashes when clicking the plus button (OCFileListBottomSheetDialog).

Related to #17640

Assisted-by: GithubCopilot:GPT-5.4
Signed-off-by: Philipp Hasper <[email protected]>
2026-10-07 12:04:41 +02:00
Nextcloud bot c248c31320 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-07 04:13:10 +00:00
Alper Öztürk 1b7d82feec Merge pull request #17770 from nextcloud/improve-unified-share-fetch
improve unified share fetch
2026-10-06 12:59:45 +02:00
Alper Öztürk c2a0714eac Merge pull request #17778 from nextcloud/fix/ci-4
fix(garm): document storage provider
2026-10-06 10:56:32 +02:00
alperozturk96 78d3f7123b fix(garm): document storage provider
Signed-off-by: alperozturk96 <[email protected]>
2026-10-06 09:14:18 +02:00
Alper Öztürk e75b101e7b Merge pull request #17768 from nextcloud/chore/remove-unused-dependencies
chore: remove unused dependencies
2026-10-06 09:13:55 +02:00
Alper Öztürk f0b1794066 Merge pull request #17774 from nextcloud/style/multi-select-status-bar
style(status-bar): multi-select
2026-10-06 09:11:39 +02:00
Nextcloud bot 248aaf23e0 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-06 04:10:25 +00:00
Alper Öztürk f6fc002dfb Merge pull request #17777 from nextcloud/refactor/di-module-kotlin
refactor(di): convert to Kotlin
2026-10-05 15:32:38 +02:00
alperozturk96 81495fd764 refactor(di): convert to Kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-10-05 14:56:36 +02:00
alperozturk96 205fd4f6e3 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-10-05 14:56:35 +02:00
Alper Öztürk 1c9a4ceb78 Merge pull request #17739 from nextcloud/fix/color-switching
fix(account): switching
2026-10-05 12:02:23 +02:00
alperozturk96 aab3fa975c style(status-bar): multi-select
Signed-off-by: alperozturk96 <[email protected]>
2026-10-05 10:55:11 +02:00
alperozturk96 cbe16a224e expire cache in 10 mins so that client can update itself when in foreground
Signed-off-by: alperozturk96 <[email protected]>
2026-10-05 10:26:20 +02:00
alperozturk96 fa42242fef improve unified share fetch
Signed-off-by: alperozturk96 <[email protected]>
2026-10-05 10:04:02 +02:00
Alper Öztürk fae105dece Merge pull request #17763 from nextcloud/feat/navigator-upload-activity
feat(navigator): upload list
2026-10-05 08:24:13 +02:00
Nextcloud bot fb0e6a41fe fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-05 04:45:47 +00:00
Nextcloud bot ecf17aaa3f fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-04 04:00:02 +00:00
Nextcloud bot 98c33b8574 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-03 04:02:52 +00:00
renovate[bot] eee7ff7b6e Update gradle/actions action to v6.4.0 (#17772)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-02 20:57:10 +00:00
alperozturk96 7c803770ee remove unused functions
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 16:06:23 +02:00
alperozturk96 2022d27f61 add missing licenses
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 15:18:20 +02:00
alperozturk96 12a0a1da8f update callers
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 15:18:20 +02:00
alperozturk96 8a52ad6502 update callers
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 15:18:20 +02:00
alperozturk96 b928ed6389 extract common logic that needed from file activity
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 15:18:20 +02:00
alperozturk96 852fc97dcd convert activity to fragment
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 15:18:20 +02:00
alperozturk96 a36d9db414 add agent skill for navigator
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 15:18:20 +02:00
Alper Öztürk 507434b1d4 Merge pull request #17745 from nextcloud/remove-flaky-tests
remove flaky tests
2026-10-02 15:18:02 +02:00
alperozturk96 010a1e9626 remove flaky tests
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 14:50:52 +02:00
alperozturk96 ae50e52ce3 chore: remove unused dependencies
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 13:42:39 +02:00
alperozturk96 693850a3df remove stateless4j
Signed-off-by: alperozturk96 <[email protected]>
2026-10-02 13:26:42 +02:00
Alper Öztürk 2e5614facb Merge pull request #17736 from nextcloud/fix/internal-106518
Check file name length doesn't exceed server's supported one
2026-10-02 08:47:24 +02:00
alperozturk96 48eca42bdb simplify createFileOnServer
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:17:23 +02:00
alperozturk96 f9f16f7131 OCCapability capability = result.getResultData();
already provides same

Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:09:04 +02:00
alperozturk96 fe01e39ebe use Provider for view theme utils since ViewThemeUtils can change and Provider can gives us retrieving multiple instances.
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:09:04 +02:00
alperozturk96 2ee31cb41c set account name as well
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:09:04 +02:00
alperozturk96 37ce1b588f make the theme cache (memory-only) user account name aware instead url
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:09:04 +02:00
alperozturk96 31de9aa29a dont use singleton instance for thumbnails
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:09:04 +02:00
alperozturk96 26e3e68561 simplify comment
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:08:53 +02:00
alperozturk96 8299dd7f7b get rid of the async task
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:08:53 +02:00
alperozturk96 d041cd2529 get rid of the async task
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:08:53 +02:00
alperozturk96 c11023634c simplify error handling
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:08:53 +02:00
daniele-verducci 7aacbed792 Implemented tests
Signed-off-by: daniele-verducci <[email protected]>
2026-10-01 15:08:53 +02:00
daniele-verducci bcbbad4ae2 Check filename length, similarly to what happens server-side
Signed-off-by: daniele-verducci <[email protected]>
2026-10-01 15:08:53 +02:00
daniele-verducci cdaab781e1 Better error management during CreateFileFromTemplate
Signed-off-by: daniele-verducci <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/dialog/ChooseTemplateDialogFragment.kt
2026-10-01 15:08:53 +02:00
alperozturk96 0fa1d5b984 fix build createPendingFile should pass remotePath
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 15:06:41 +02:00
Alper Öztürk 5bc5163267 Merge pull request #17590 from nextcloud/fix/internal-104835
Fix conflicts for offline uploads when uploading same file again
2026-10-01 14:31:13 +02:00
Alper Öztürk 359e0da8bf Merge pull request #17746 from nextcloud/refactor/external-site-web-view-kotlin
refactor(editor-web-view): kotlin
2026-10-01 14:30:45 +02:00
Alper Öztürk 144db87302 Merge pull request #17727 from nextcloud/refactor/bitmap-utils
refactor(bitmap-utils): kotlin
2026-10-01 13:59:25 +02:00
Alper Öztürk 1116c8f5b5 Merge pull request #17644 from nextcloud/fix/offline-operation-action-on-slow-network
fix(offline-operation): actions
2026-10-01 13:47:33 +02:00
Alper Öztürk 98da5c0abe Merge pull request #17661 from nextcloud/perf-file-listing
perf(metadata): worker
2026-10-01 13:02:00 +02:00
Alper Öztürk 089bb3272e Merge pull request #17683 from nextcloud/fix/auto-upload-rescan-worker-start-only-if-not-active
fix(auto-upload): rescan worker start
2026-10-01 12:57:12 +02:00
Alper Öztürk 55e519293d Merge pull request #17703 from nextcloud/fix/media-scroll-and-gestures
fix(media): scroll & pinch
2026-10-01 12:55:00 +02:00
Alper Öztürk 2d40573539 Merge pull request #17741 from nextcloud/fix/min-chunk-size
fix min chunk size
2026-10-01 09:31:52 +02:00
alperozturk96 15e62e409a use latest lib hash
Signed-off-by: alperozturk96 <[email protected]>
2026-10-01 09:31:16 +02:00
Nextcloud bot f2358568d9 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-10-01 04:16:13 +00:00
alperozturk96 ce74cf3934 use ActivityResultContracts
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 15:34:00 +02:00
alperozturk96 1f35cc0faf refactor(editor-site-web-view): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 15:34:00 +02:00
alperozturk96 fa5f16d25a Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 15:34:00 +02:00
alperozturk96 56fc650ff8 refactor(editor-web-view): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 15:34:00 +02:00
alperozturk96 533c1d859e Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 15:34:00 +02:00
Alper Öztürk ce5fedb4e3 Merge pull request #17742 from nextcloud/fix/401-issue
fix(unified-share): use credentials.username
2026-09-30 15:21:39 +02:00
Alper Öztürk 7f464c5a6a Merge pull request #17705 from nextcloud/fix/media-navigation
Seamless animation on navigation in media tab
2026-09-30 14:59:57 +02:00
alperozturk96 bca9d69a08 use username
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 14:41:17 +02:00
alperozturk96 8b96994fdf fix min chunk size
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 13:28:56 +02:00
Tobias Kaminsky 2446b36ee2 Merge pull request #17740 from nextcloud/devBuild
build dev: make sure fastlane folder exists
2026-09-30 13:17:59 +02:00
tobiasKaminsky a49caba4f2 build dev: make sure fastlane folder exists
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-30 13:17:00 +02:00
Alper Öztürk 61924d74ff Merge pull request #17738 from nextcloud/style/multi-select
style(gallery): multi select animation
2026-09-30 13:02:59 +02:00
alperozturk96 250abf6fa9 fix kotlin spotless check
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 12:44:47 +02:00
about2crash 968e2e009a Merge branch 'master' into fix-drawer-external-links
Signed-off-by: about2crash <[email protected]>
2026-09-30 12:38:54 +02:00
alperozturk96 78a4525bc6 fix transitions
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 10:54:18 +02:00
alperozturk96 50345aa295 style(gallery): multi select animation
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 10:39:10 +02:00
alperozturk96 a9cbb0455e fix interrupting with pinch and refresh
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 10:34:53 +02:00
alperozturk96 dc8c428b3e use cached image without lock
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 10:00:41 +02:00
alperozturk96 ae75d3b2d5 speed-up load from disk
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 10:00:41 +02:00
alperozturk96 79eca43190 remove cache check since job already doing it
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 10:00:41 +02:00
alperozturk96 e15a3ba0ee add pinch listener for column change
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 10:00:41 +02:00
alperozturk96 560bca9271 slide up image from center
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 09:39:51 +02:00
alperozturk96 a039a14bd4 use scale up and down for opening and close image
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 09:25:59 +02:00
alperozturk96 04264398e0 use m3 slide down and up
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 08:51:11 +02:00
alperozturk96 576af4953e create navigation animator
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 08:32:05 +02:00
alperozturk96 b5359e2475 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-30 08:22:16 +02:00
alperozturk96 116decbba9 fix(media): navigation
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/utils/extensions/ViewExtensions.kt
2026-09-30 08:22:15 +02:00
Alper Öztürk 3fe3a67949 Merge pull request #17735 from nextcloud/refactor/slide-behaviour-extension
refactor(view-extension): slide behaviour
2026-09-30 08:20:17 +02:00
Alper Öztürk a54b313568 Merge pull request #17733 from nextcloud/refactor/disk-lru-image-cache
refactor(disk-lru-image-cache): kotlin
2026-09-30 08:14:50 +02:00
Nextcloud bot 35610dd848 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-30 04:29:36 +00:00
alperozturk96 a950ba0189 refactor(view-extension): slide behaviour
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 16:38:34 +02:00
Alper Öztürk 16f0504977 Merge pull request #17730 from nextcloud/fix/status-bar-details
fix(status-bar): details
2026-09-29 15:42:32 +02:00
alperozturk96 e731292aa8 refactor(disk-lru-image-cache): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 12:59:01 +02:00
alperozturk96 047666ce68 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 12:59:00 +02:00
Alper Öztürk 3c70807a0f Merge pull request #17697 from nextcloud/improvement/internal-105265-tests
Implemented tests for encrypted folders
2026-09-29 09:36:34 +02:00
alperozturk96 ed761fb428 simplify refreshCurrentDirectory
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 1f073c4861 fix view model integration
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 4256a19772 use view model and getWorkInfosByTagFlow to observe worker
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 2699206363 remove workaround observe worker logic
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 ce85a51b44 fix file list refresh after adding offline operation
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 721cc3c730 walled connection should not cached for 5 minutes, separate walled and reachability cache timing
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 fd54e74e98 do in io scope
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 c167fd480e use result success since policy is keep and check remote file to prevent unnecessary job
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 cf867f35f3 early exit for remove files if its empty
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 62985250d0 early exit for remove files if its empty
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 44c331849d return value for fail scenario as well
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
alperozturk96 75ea82382d do not cancel previous job so that list action such as create can react
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 09:25:13 +02:00
Tobias Kaminsky 5d588d6448 Merge pull request #17714 from nextcloud/update-library-2026-09-27
Update library to 2026-09-27
2026-09-29 08:57:54 +02:00
alperozturk96 ef093d2fac fix(status-bar): details
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 08:28:03 +02:00
daniele-verducci 2d25b83f5a Restore metadata upload
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
alperozturk96 fce7e21e29 remove upload logic since: will be fixed via https://github.com/nextcloud/android/pull/17608/changes#diff-7cffc15456a4f941a07f401277af2164ca9454b434a40e7e811ef48f367aadb8R116
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 08:06:10 +02:00
alperozturk96 acfd14ad3b fix tests
Signed-off-by: alperozturk96 <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci bcaca20a54 Fix Codacy magic number
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 34dae3fe07 Spotless apply
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 0371df22aa Missing imports
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci cf22e0c1a1 Sealed class for generatePrivateKey() result
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci b9450a0726 Moved generateKeyPair into EncryptionKeyGenerator
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 25a41b93f3 Non-nullable keywords, replaced annotation
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 147aa74877 Fixed lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 5b9dd23302 Restricted tests to Nextcloud >= 30
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 9184f23cbc Implemented unencryption test
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci c8fc832818 Fixed copypasted file copyright text for a newly created file
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 84ab9e32a3 Refactored & small fixes
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 09350942ff Working encrypted folder test
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci c6d49216d2 Fixed empty capability in test
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci ee4f482f00 Added metadata folder check in folder opening check
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 936d2a2931 Cleanup keys after tests run
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci b00a85e52c Fix lint + a small refactoring to make generatePrivateKey() more readable
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci df6ee3532a Working create and read tests for folder and subfolder
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
daniele-verducci 4488e2dd6e Refactoring to extract key generation for better testing
Signed-off-by: daniele-verducci <[email protected]>
2026-09-29 08:06:10 +02:00
Alper Öztürk f588538a03 Merge pull request #17608 from nextcloud/fix/internal-105265
Fix subfolders in encrypted folders
2026-09-29 08:04:49 +02:00
Nextcloud bot 2c586e893e fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-29 04:04:05 +00:00
daniele-verducci bf8f012ff9 Proposal to fix metadata key check
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 16:07:04 +02:00
daniele-verducci feaff3a450 Better fix subfolders in encrypted folders (using existing metadata retrieval function)
Signed-off-by: daniele-verducci <[email protected]>

Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 16:07:04 +02:00
daniele-verducci 9153e4e3e2 Fix subfolders in encrypted folders
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 16:07:03 +02:00
alperozturk96 74074ed438 refactor(bitmap-utils): kotlin
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 16:05:20 +02:00
alperozturk96 07cd303219 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 16:05:19 +02:00
Alper Öztürk 007fe67e87 Merge pull request #17724 from nextcloud/refactor/player
refactor(player): remove unused execution flow
2026-09-28 16:01:38 +02:00
alperozturk96 05b5f2680a remove external flag rely on windowcompat
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 15:01:48 +02:00
alperozturk96 d5f4e5c184 fix status-bar
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 14:23:17 +02:00
alperozturk96 b0a6b9be90 fix full-screen
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 14:14:12 +02:00
alperozturk96 3a48a5dbf5 mark flaky test
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 14:05:15 +02:00
alperozturk96 522727536f fix lint
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 14:04:53 +02:00
tobiasKaminskyandClaude Sonnet 5 4c90846513 fix(deps): add verification metadata for android-library update
Dependency verification failed on all CI checks because
gradle/verification-metadata.xml was missing the checksum for the
newly bumped androidLibraryVersion (7f7103db2d88d531861700dce3cb5bfa6fb40612).

Assisted-by: ClaudeCode:claude-sonnet-5
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-28 12:44:42 +02:00
daniele-verducci b705c69cb3 Fix SpotBugs
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 0a63501862 Fixed lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 67477e38f3 Fixed getRemotePathForConflictResolution (broken after refactoring), written relevant test
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
alperozturk96 c15b70c544 simplify logic, and add upper bound instead recursive loop
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 10:21:26 +02:00
alperozturk96 da40023c51 de-duplicate tests
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci e3cd497b53 Fixed lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 9d1d17a191 Tests for OCFile.isTheSameAs() extension
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 195b06679f Removed unreliable file creation date check
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 0bbfd15a00 Moved regexp outside of recurrency
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 9699cb181e Lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 537f619b34 Fixed bug in duplicate files renaming generator, fixed test
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 0570945330 Fix lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci e424ba7d38 Tests for file conflict name generator specific for offlineOperations
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci be34c4b284 Implemented file conflict name generator specific for offlineOperations
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 1764dc38cd Fixes in conflict resolve dialog, see https://github.com/nextcloud/android/pull/17590/changes\#r4034298542
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 384f75ce5d Applied some proposed fixes from PR
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 0d32edacfe Applied suggestions from PR
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci be6382c6c5 Fixed lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci a52c70c334 Fixed conflict resolution dialog content for offline uploads
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 1376e1601b Working conflict resolution for "keep both" in offline upload, aligned new name to the one used for online
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 53ed662fb6 Working fix proof of concept, to be refactored and not taking account edge cases
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci d72c2141ef Fixed detekt
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 57f120b76c Removed wrongly-placed file update code from uploadworker and updaging etagOnServer field properly in UploadFileOperation
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 3476acc015 Refactored java function: moved into FileExtensions
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci cc1585dda9 fix/internal-104835: lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:26 +02:00
daniele-verducci 864a766028 fix/internal-104835: check size as well
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:25 +02:00
daniele-verducci 0f71ab80c6 fix/internal-104835: avoid showing conflict window for an unmodified, already uploaded file
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:25 +02:00
daniele-verducci 8876bc8a88 wip
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:25 +02:00
daniele-verducci b29fd03657 fix/internal-104835: do not overwrite existent file metadata
Signed-off-by: daniele-verducci <[email protected]>
2026-09-28 10:21:25 +02:00
alperozturk96 febd3b8cae refactor(player): remove unused execution flow
Signed-off-by: alperozturk96 <[email protected]>
2026-09-28 10:13:49 +02:00
Alper Öztürk 6722740365 Merge pull request #17708 from nextcloud/fix/system-bar-color
fix(system-bar): color
2026-09-28 08:59:46 +02:00
Nextcloud bot 20f0dcad9a fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-28 04:03:21 +00:00
renovate[bot] d8e3ce42d1 Update workRuntime to v2.12.0 (#17722)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-27 22:29:48 +00:00
renovate[bot] 98d67232dd Update dependency androidx.fragment:fragment-ktx to v1.9.1 (#17719)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-27 21:00:08 +00:00
renovate[bot] 628080751f Update dependency org.mockito.kotlin:mockito-kotlin to v6.4.0 (#17715)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-27 16:55:35 +00:00
Nextcloud bot dedea2fe36 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-27 04:06:26 +00:00
Tobias Kaminsky f9f1fd6e84 Update library to 2026-09-27
Signed-off-by: Tobias Kaminsky <[email protected]>
2026-09-27 00:01:00 +02:00
renovate[bot] fdb3b269e5 Update dependency org.slf4j:jcl-over-slf4j to v2.0.20 (#17713)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-26 16:54:37 +00:00
Alper Öztürk 84efb5c35c Merge pull request #17709 from nextcloud/refactor/display-util
rip DisplayUtils.java
2026-09-25 19:52:45 +02:00
alperozturk96 032cd9cebc fix spotless
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 11:10:14 +02:00
alperozturk96 4868418086 fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 11:09:42 +02:00
alperozturk96 1f9b4e8325 fix(system-bar): color
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 11:09:42 +02:00
alperozturk96 accbbcaea1 fix(system-bar): color
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 11:09:42 +02:00
alperozturk96 d4ddfd1d3f fix(system-bar): color
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 11:09:42 +02:00
Tobias Kaminsky 3dbd7d618d Merge pull request #17621 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-09-25 10:53:04 +02:00
Alper Öztürk 32b474f3f6 Merge pull request #17688 from nextcloud/improve-splash
Improve splash
2026-09-25 10:51:01 +02:00
alperozturk96 381e432cfe fix background gradient
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 10:15:26 +02:00
alperozturk96 54b515267c fix tests
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 10:15:26 +02:00
alperozturk96 5e0bd559af do not extend from base activity
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 10:15:26 +02:00
alperozturk96 ed5668de8a improve splash
Signed-off-by: alperozturk96 <[email protected]>
2026-09-25 10:15:26 +02:00
nextcloud-android-bot 9e4b3f9970 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-09-25 07:06:31 +00:00
Nextcloud bot 6b0f2332e0 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-25 04:08:17 +00:00
alperozturk96 2421641f98 rip DisplayUtils.java
Signed-off-by: alperozturk96 <[email protected]>
2026-09-24 16:27:41 +02:00
Alper Öztürk 13ea402704 Merge pull request #17706 from nextcloud/refactor/display-util-date-text
refactor(display-util): text formatter
2026-09-24 15:51:40 +02:00
Andy Scherzinger 76885907cb Merge pull request #17678 from nextcloud/renovate/codecov-codecov-action-7.x
Update codecov/codecov-action action to v7.1.1
2026-09-24 14:36:20 +02:00
Andy Scherzinger 0d7dc9b833 Merge pull request #17695 from nextcloud/renovate/ubuntu-resolute
Update ubuntu:resolute Docker digest to da6fc2b
2026-09-24 14:35:17 +02:00
renovate[bot] cdc6791871 Update androidPluginVersion to v9.4.1 (#17696)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-24 12:29:11 +00:00
alperozturk96 885a8e64db refactor(display-util): text formatter
Signed-off-by: alperozturk96 <[email protected]>
2026-09-24 14:10:33 +02:00
renovate[bot] a0bf64da3c Update codecov/codecov-action action to v7.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-24 11:57:48 +00:00
renovate[bot] 269ffb69f5 Update ubuntu:resolute Docker digest to da6fc2b
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-24 11:56:15 +00:00
Alper Öztürk ab5d96b564 Merge pull request #17700 from nextcloud/refactor/display-util-avatar
refactor(display-util): avatar
2026-09-24 13:53:56 +02:00
Nextcloud bot c0ebadbca2 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-24 04:15:42 +00:00
alperozturk96 3b9e9c1488 refactor(display-util): avatar
Signed-off-by: alperozturk96 <[email protected]>
2026-09-23 17:15:29 +02:00
Alper Öztürk 10641b850b Merge pull request #17693 from nextcloud/refactor/display-utils-byte-conversion
refactor(display-util): size conversion
2026-09-23 10:19:07 +02:00
alperozturk96 2b1f0e9374 rename functions
Signed-off-by: alperozturk96 <[email protected]>
2026-09-23 09:37:08 +02:00
alperozturk96 6b6a4611de make it better
Signed-off-by: alperozturk96 <[email protected]>
2026-09-23 09:37:08 +02:00
alperozturk96 b19195b1d2 refactor(display-util): size conversion
Signed-off-by: alperozturk96 <[email protected]>
2026-09-23 09:37:08 +02:00
renovate[bot] 38d1e0698e Update github/codeql-action action to v4.38.1 (#17691)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-22 15:02:16 +00:00
Alper Öztürk d125252903 Merge pull request #17690 from nextcloud/refactor/display-utils-intent
refactor(display-utils): intent
2026-09-22 16:28:57 +02:00
alperozturk96 d9af7e6b81 refactor(display-utils): intent
Signed-off-by: alperozturk96 <[email protected]>
2026-09-22 15:43:06 +02:00
Alper Öztürk 5e4c59a58d Merge pull request #17575 from nextcloud/feat/use-direct-api
feat(direct-editing): add missing check
2026-09-22 15:06:36 +02:00
Alper Öztürk 6801e7813e Merge branch 'master' into feat/use-direct-api 2026-09-22 14:30:44 +02:00
Alper Öztürk a40dccc943 Merge pull request #17686 from nextcloud/refactor/display-util-snackbar
refactor(display-util): snackbar
2026-09-22 14:16:00 +02:00
alperozturk96 7d3be1a735 refactor(display-util): snackbar
Signed-off-by: alperozturk96 <[email protected]>
2026-09-22 12:11:39 +02:00
Alper Öztürk 2c6558f3ed Merge pull request #17680 from nextcloud/feat/full-screen-media-player
feat(video): full screen gesture
2026-09-22 12:10:42 +02:00
alperozturk96 6c34f12705 hide nav bar as well
Signed-off-by: alperozturk96 <[email protected]>
2026-09-22 12:02:21 +02:00
Alper Öztürk 49771e8259 Merge pull request #17667 from nextcloud/fix/avatar-loading
perf(file-list): avatar loading
2026-09-22 11:47:33 +02:00
alperozturk96 a6363864a3 cancel enqueued ones so that we can re-start. Some workers may stuck thus we need to have clean start.
Signed-off-by: alperozturk96 <[email protected]>
2026-09-22 10:59:51 +02:00
alperozturk96 882f59c4b9 retry if already auto upload runs
Signed-off-by: alperozturk96 <[email protected]>
2026-09-22 10:47:41 +02:00
alperozturk96 e87c312a95 cancel per folder first
Signed-off-by: alperozturk96 <[email protected]>
2026-09-22 10:37:59 +02:00
alperozturk96 4af306abef fix(auto-upload): rescan periodic worker
Signed-off-by: alperozturk96 <[email protected]>
2026-09-22 09:53:21 +02:00
Nextcloud bot 28e22f060c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-22 04:32:58 +00:00
renovate[bot] 9820090852 Update dependency com.google.android.gms:play-services-base to v18.11.0 (#17682)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-21 23:27:27 +00:00
alperozturk96 856a2696f0 remove imports that not used
Signed-off-by: alperozturk96 <[email protected]>
2026-09-21 16:56:40 +02:00
alperozturk96 44506e2b8f use extension and remove unused extension
Signed-off-by: alperozturk96 <[email protected]>
2026-09-21 16:55:04 +02:00
alperozturk96 753974586b remove unused code for entering and exiting full-screen
Signed-off-by: alperozturk96 <[email protected]>
2026-09-21 16:55:04 +02:00
alperozturk96 04e75fba94 better variable names
Signed-off-by: alperozturk96 <[email protected]>
2026-09-21 16:55:04 +02:00
alperozturk96 938e541f0b feat(video): full screen gesture
Signed-off-by: alperozturk96 <[email protected]>
2026-09-21 16:55:04 +02:00
Tobias Kaminsky 50dfcfa5da Merge pull request #17677 from nextcloud/update-library-2026-09-20
Update library to 2026-09-20
2026-09-21 16:01:28 +02:00
tobiasKaminsky dc5473f45d update verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-21 10:19:48 +02:00
Nextcloud bot bac87f20df fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-21 04:11:29 +00:00
Nextcloud bot 9851ac0d37 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-20 04:14:36 +00:00
Tobias Kaminsky fced7c976b Update library to 2026-09-20
Signed-off-by: Tobias Kaminsky <[email protected]>
2026-09-20 00:00:59 +02:00
Andy Scherzinger 2eec3c7c07 Merge pull request #17674 from nextcloud/renovate/codecov-codecov-action-7.x
Update codecov/codecov-action action to v7.1.0
2026-09-19 06:55:58 +02:00
renovate[bot] c2cf1cc552 Update codecov/codecov-action action to v7.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-19 04:25:49 +00:00
Nextcloud bot 95dc0344eb fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-19 04:18:44 +00:00
alperozturk96 05afc6c1cf fetch sharees before the list and use OCFile only for showing
Signed-off-by: alperozturk96 <[email protected]>
2026-09-18 11:41:32 +02:00
alperozturk96 83068616f7 introduce AvatarShareesProvider
Signed-off-by: alperozturk96 <[email protected]>
2026-09-18 11:41:32 +02:00
alperozturk96 df1378c093 check previously inserted sharees and fix avatar id
Signed-off-by: alperozturk96 <[email protected]>
2026-09-18 11:41:32 +02:00
alperozturk96 81d8ee6cc7 use AvatarShareesProvider
Signed-off-by: alperozturk96 <[email protected]>
2026-09-18 11:41:32 +02:00
Alper Öztürk 131f9fa8bb Merge pull request #17670 from nextcloud/fix/tests
ci(garm): fix launcher activity and file it
2026-09-18 10:33:19 +02:00
Nextcloud bot 781f57fc48 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-18 04:14:07 +00:00
alperozturk96 e92afec910 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-17 16:58:43 +02:00
alperozturk96 66e5551653 ci(garm): fix launcher activity and file it
Signed-off-by: alperozturk96 <[email protected]>
2026-09-17 16:21:05 +02:00
Alper Öztürk c1a4bac83c Merge pull request #17663 from nextcloud/fix/recommended-file-alignment
fix(recommended-file): padding
2026-09-17 11:59:15 +02:00
alperozturk96 f5ca54fde9 fail fast for ignore eTag thus no need read file operation
Signed-off-by: alperozturk96 <[email protected]>
2026-09-17 11:13:02 +02:00
alperozturk96 03f138b2ca remove deduplicated root folder refresh operation
Signed-off-by: alperozturk96 <[email protected]>
2026-09-17 11:13:02 +02:00
Alper Öztürk da8ebf8fec Merge pull request #17657 from nextcloud/perf/startup-time
perf(startup): splash screen
2026-09-17 11:12:23 +02:00
alperozturk96 230b13df73 feat(direct-editing): add missing check
Signed-off-by: alperozturk96 <[email protected]>
2026-09-17 10:51:54 +02:00
renovate[bot]andtobiasKaminsky 679432a946 Update roomVersion to v2.8.5 (#17634)
* Update roomVersion to v2.8.5

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* update verification-metadata.xml

Signed-off-by: tobiasKaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: tobiasKaminsky <[email protected]>
2026-09-17 08:28:26 +00:00
Alper Öztürk 743caeb681 Merge pull request #17660 from nextcloud/remove-qa-apk-size
remove qa apk size
2026-09-17 10:07:55 +02:00
Alper Öztürk 0f50e2f712 Merge pull request #17643 from nextcloud/improve-assemble-ga
perf(ci): cache Gradle state and drop duplicate release builds and add re-run for failed assemble
2026-09-17 09:37:49 +02:00
Tobias Kaminsky ce10a3a2bf Merge pull request #17558 from nextcloud/renovate/conscryptandroidversion
Update dependency org.conscrypt:conscrypt-android to v2.7.0
2026-09-17 09:23:09 +02:00
Tobias Kaminsky 2bb1ae76af Merge pull request #17648 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.239.0
2026-09-17 09:22:10 +02:00
Tobias Kaminsky 023c62e5cd Merge pull request #17612 from nextcloud/renovate/kotlin-monorepo
Update kotlin monorepo to v2.4.20 - abandoned
2026-09-17 09:18:54 +02:00
Tobias Kaminsky 0117f72b1e Merge pull request #17603 from nextcloud/renovate/androidcommonlibraryversion
Update androidCommonLibraryVersion to v0.33.2
2026-09-17 08:50:49 +02:00
tobiasKaminsky 2060bbe484 fix: update verification-metadata.xml
Removes the stale ignored-key entry for 655CCC51B9BD2C38 (Google's
conscrypt-android release signing key), which caused dependency
verification to fail on PR #17558 with "artifact was signed but all
keys were ignored" for conscrypt-android-2.7.0.module. The key is
already covered by an existing trusted-key entry and is present in
the exported keyring, so the global ignore was just stale.

Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-17 08:44:26 +02:00
Tobias Kaminsky 32742cb5f7 Merge pull request #17630 from nextcloud/renovate/ksp-monorepo
Update dependency com.google.devtools.ksp to v2.3.12
2026-09-17 08:40:10 +02:00
renovate[bot]andtobiasKaminsky 5455c9bd9b Update dependency org.jetbrains.kotlin.plugin.parcelize to v2.4.20 (#17614)
* Update dependency org.jetbrains.kotlin.plugin.parcelize to v2.4.20

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* update verification-metadata.xml

Signed-off-by: tobiasKaminsky <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: tobiasKaminsky <[email protected]>
2026-09-17 06:33:09 +00:00
tobiasKaminsky 1958adea92 fix: update verification-metadata.xml
Adds the missing checksum for org.jetbrains.kotlin.plugin.parcelize
2.4.20, which caused dependency verification to fail on PR #17612.

Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-17 08:23:22 +02:00
Nextcloud bot 2076bc4101 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-17 04:35:25 +00:00
alperozturk96 43a48eddc3 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 15:45:11 +02:00
alperozturk96 6ccc7d5bf7 second run
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 15:45:11 +02:00
alperozturk96 68c27fa15b add re-run for failed assemble ga
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 15:45:11 +02:00
alperozturk96 8b05449dae reduce run resouces to have more stable build
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 15:45:11 +02:00
alperozturk96 f4cc4ca045 perf(ci): cache Gradle state and drop duplicate release builds
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 15:45:11 +02:00
alperozturk96 d15c922c99 fix(recommended-file): padding
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 15:41:34 +02:00
alperozturk96 b9acfc62cc remove qa apk size
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 15:08:39 +02:00
Alper Öztürk 5aa5394d62 Merge pull request #17658 from nextcloud/update-lib-2
update android lib
2026-09-16 15:08:24 +02:00
Alper Öztürk 86be405468 Merge branch 'master' into update-lib-2
Signed-off-by: Alper Öztürk <[email protected]>
2026-09-16 14:26:26 +02:00
Alper Öztürk 0ca55c4750 Merge pull request #17651 from nextcloud/arm-v7-support
feat(build): arm-v7 support
2026-09-16 13:54:33 +02:00
alperozturk96 6072328c3a update android lib
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 13:45:09 +02:00
alperozturk96 be73f7b469 fix logo appereance
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 13:38:24 +02:00
alperozturk96 5c09fe4593 perf(startup): splash screen
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 13:35:09 +02:00
alperozturk96 5eab12e8bc use latest lib commit hash
Signed-off-by: alperozturk96 <[email protected]>
2026-09-16 12:06:56 +02:00
renovate[bot] c0c8570ec6 Update androidCommonLibraryVersion to v0.33.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-16 12:06:56 +02:00
Alper Öztürk 50b8438af1 Merge pull request #17604 from nextcloud/internal-104930
Show only offline-available actions when offline in the "create new" menu
2026-09-16 11:11:08 +02:00
Alper Öztürk bbf71f8e3c Merge pull request #17506 from nextcloud/suggestedServer
Add "suggested_server" to Login screen
2026-09-16 08:13:17 +02:00
Nextcloud bot be55403760 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-16 04:12:08 +00:00
alperozturk96 b8864a7b3a feat(build): arm-v7 support
Signed-off-by: alperozturk96 <[email protected]>
2026-09-15 18:14:04 +02:00
renovate[bot] 7abce00274 Update dependency fastlane to v2.239.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 15:46:22 +00:00
Alper Öztürk f50eaf4b73 Merge pull request #17501 from nextcloud/fix/network-constraits
fix(upload): use supported transports
2026-09-15 17:44:37 +02:00
renovate[bot] 91d739acf9 Update media3 to v1.11.1 (#17647)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 15:22:14 +00:00
nextcloud-android-bot abaccf6349 Merge pull request #17620 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.239.0
2026-09-15 16:16:58 +02:00
renovate[bot] 1e7b01ac0b Update dependency androidx.compose.foundation:foundation to v1.12.1 (#17629)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 14:08:05 +00:00
nextcloud-android-bot 33daaf4625 Merge pull request #17556 from nextcloud/renovate/spotless
Update dependency com.diffplug.spotless to v8.10.2
2026-09-15 16:06:21 +02:00
daniele-verducci 5c294f5fa7 Use suspend functions
Signed-off-by: daniele-verducci <[email protected]>
2026-09-15 15:42:28 +02:00
daniele-verducci 700a813bb2 Fixed edge case
Signed-off-by: daniele-verducci <[email protected]>
2026-09-15 15:42:28 +02:00
daniele-verducci 3a66b8ea11 Show only offline-available actions when offline, and align shown actions between root and subfolders
Signed-off-by: daniele-verducci <[email protected]>
2026-09-15 15:42:28 +02:00
Alper Öztürk 61e788ea35 Merge pull request #17632 from nextcloud/fix/upload-pause
fix(upload): pause
2026-09-15 15:38:25 +02:00
Alper Öztürk 3115d0b6a8 Merge pull request #17569 from nextcloud/refactor/fetch-template
improve: fetch-template
2026-09-15 15:38:02 +02:00
tobiasKaminsky 3751f3fd87 update verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-15 14:15:03 +02:00
renovate[bot] 7401f17ac7 Update dependency com.diffplug.spotless to v8.10.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 14:14:50 +02:00
tobiasKaminsky 11360b355c update verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-15 14:14:21 +02:00
tobiasKaminsky 574350f8ee update verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-15 14:14:21 +02:00
renovate[bot] e89cbbc8cb Update dependency org.conscrypt:conscrypt-android to v2.7.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 14:14:21 +02:00
alperozturk96 af4df95121 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-15 13:32:10 +02:00
alperozturk96 2b83d960d2 fix(upload): use supported transports
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/client/network/ConnectivityServiceImpl.kt
2026-09-15 13:30:53 +02:00
alperozturk96 dae83866e7 fix(upload): pause
Signed-off-by: alperozturk96 <[email protected]>
2026-09-15 13:21:01 +02:00
alperozturk96 f290682fe9 refactor(templates): convert FetchTemplateOperation to Kotlin
Fail-fast control flow, JSON node names as constants, and URL building and
response parsing split into separate functions. Behaviour is unchanged.

Assisted-by: ClaudeCode:claude-opus-5
2026-09-15 13:19:10 +02:00
alperozturk96 1241123a3f fix(templates): keep create dialog usable when no template loads
When the template list comes back empty the dialog had no selected template,
so the extension check compared the typed name against null and reported
"Extension cannot be changed" for every name while Create stayed disabled.

Resolve the filename into a single state, treat "no template selected" as its
own state, hold the error back until the user has typed, and close the dialog
when no template could be loaded.

Assisted-by: ClaudeCode:claude-opus-5
2026-09-15 13:19:10 +02:00
alperozturk96 b38398c1c1 revert(templates): drop unrelated dialog change
The redundant elvis on fileNames belongs to neither the crash fix nor the
Kotlin conversion, so it goes back to its previous form to keep this branch
scoped to one concern.

Assisted-by: ClaudeCode:claude-opus-5
2026-09-15 13:19:10 +02:00
alperozturk96 33218b7489 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-15 13:19:10 +02:00
alperozturk96 412bffd8b4 use uri
Signed-off-by: alperozturk96 <[email protected]>
2026-09-15 13:19:10 +02:00
renovate[bot] 21a2d7491c Update dependency fastlane to v2.239.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 09:44:24 +00:00
renovate[bot] aa12f3948a Update kotlin monorepo to v2.4.20
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 09:41:04 +00:00
renovate[bot] 2735dd7448 Update dependency com.google.devtools.ksp to v2.3.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 09:38:01 +00:00
Alper Öztürk 185885b98b Merge pull request #17253 from nextcloud/NotificationWeb
Handle WEB on notification (for testing)
2026-09-15 10:28:29 +02:00
tobiasKaminsky 3844bdeec6 Add "suggested_server" to Login screen
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-15 10:20:11 +02:00
Alper Öztürk 674d743435 Merge pull request #17642 from nextcloud/disableScreenshotTests
CI: disable screenshot tests for now
2026-09-15 10:19:11 +02:00
Alper Öztürk 004d7457f4 Merge pull request #17641 from nextcloud/update-lib
update lib
2026-09-15 10:18:19 +02:00
renovate[bot] 70bd1d971a Update dependency org.slf4j:jcl-over-slf4j to v2.0.19 (#17588)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-15 08:13:41 +00:00
tobiasKaminsky 48ec307f80 Handle WEB on notification (for testing)
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-15 09:43:35 +02:00
tobiasKaminsky 0bdb093115 CI: disable screenshot tests for now
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-15 08:31:37 +02:00
alperozturk96 cc4ac9bee4 update lib
Signed-off-by: alperozturk96 <[email protected]>
2026-09-15 08:24:24 +02:00
Alper Öztürk 45d37750a9 Merge pull request #17639 from nextcloud/fix/garm
cover server versions for garm
2026-09-15 08:23:36 +02:00
Nextcloud bot 8a095c4e46 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-15 04:13:42 +00:00
alperozturk96 20088c58b9 cover server versions for garm
Signed-off-by: alperozturk96 <[email protected]>
2026-09-14 14:32:20 +02:00
alperozturk96 06740c9016 cover server versions for garm
Signed-off-by: alperozturk96 <[email protected]>
2026-09-14 14:26:14 +02:00
Alper Öztürk 06a0be21b0 Merge pull request #17597 from nextcloud/fix/e2ee-folder-encryption-toggle
fix(e2ee): event listen
2026-09-14 13:12:46 +02:00
alperozturk96 90e1a0e432 fix spotbugs
Signed-off-by: alperozturk96 <[email protected]>
2026-09-14 11:41:31 +02:00
alperozturk96 b7a1a18bcc fix(e2ee): event listen
Signed-off-by: alperozturk96 <[email protected]>
2026-09-14 11:24:14 +02:00
Alper Öztürk e6983a6169 Merge pull request #17616 from nextcloud/fix/connectivity-service-capability-change-check
fix(connectivity-service): capability change check
2026-09-14 10:52:59 +02:00
renovate[bot] 7a144d1d93 Update dependency androidx.compose:compose-bom to v2026.09.00 (#17635)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-14 08:00:45 +00:00
Alper Öztürk d4023f1b48 Merge pull request #17617 from nextcloud/fix/media-player-theming
style(media-player) m3-expressive
2026-09-14 08:15:11 +02:00
Tobias Kaminsky 5426a72d34 Merge pull request #17605 from nextcloud/ciTestStable
CI: test with NC22, NC35 and master
2026-09-14 07:21:01 +02:00
Tobias Kaminsky 39643efe60 Merge pull request #16438 from nextcloud/qr
If enforced server, allow QR scanner, but validate url
2026-09-14 07:19:27 +02:00
Nextcloud bot ad6c31017b fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-14 04:52:21 +00:00
Andy Scherzinger e7a9a06289 Merge pull request #17628 from nextcloud/renovate/ubuntu-resolute
Update ubuntu:resolute Docker digest to 513c074
2026-09-13 22:26:04 +02:00
renovate[bot] 7a0c64052d Update ubuntu:resolute Docker digest to 513c074
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-13 20:22:16 +00:00
renovate[bot] 51361e594a Update dependency com.google.firebase:firebase-messaging to v25.1.3 (#17627)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-13 16:10:53 +00:00
Andy Scherzinger cf24691642 Merge pull request #17626 from nextcloud/renovate/actions-setup-java-6.x
Update actions/setup-java action to v6.0.1
2026-09-13 17:39:41 +02:00
renovate[bot] 8ce7411cc4 Update actions/setup-java action to v6.0.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-13 12:22:04 +00:00
Nextcloud bot 2a94a4f5cd fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-13 04:02:41 +00:00
Nextcloud bot b2f37db196 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-12 04:13:56 +00:00
alperozturk96 6d96355bd4 apply branding
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 17:34:19 +02:00
alperozturk96 e5322e8112 use material toolbar
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 17:34:19 +02:00
alperozturk96 0674521b95 handle paddings
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 17:34:19 +02:00
alperozturk96 c7eb8988e2 m3 expressive for control buttons
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 17:34:19 +02:00
alperozturk96 11f42601eb fix foreground color of audio file
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 17:34:19 +02:00
alperozturk96 5ee7cffd84 theme player control buttons
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 17:34:19 +02:00
alperozturk96 34d534d601 fix top bar title
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 17:34:19 +02:00
Alper Öztürk 3a2d3e0cbc Merge pull request #17611 from nextcloud/improve-qa-apk-ga
Improve QA APK Action
2026-09-11 16:44:13 +02:00
alperozturk96 49a99d89fa use link for qr code
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 15:39:35 +02:00
alperozturk96 449d1c3545 try ASCII
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 15:12:23 +02:00
alperozturk96 7bd5b75cd9 add debounce for onCapabilitiesChanged
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 14:54:59 +02:00
alperozturk96 d7696ea07b wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 14:48:49 +02:00
daniele-verducci ff652fcb6e Do not wrap encoded string
Signed-off-by: daniele-verducci <[email protected]>
2026-09-11 14:45:08 +02:00
daniele-verducci 2b9c190be0 Urlencode multiline string
Signed-off-by: daniele-verducci <[email protected]>
2026-09-11 14:45:08 +02:00
daniele-verducci d4a7c387e4 Passing qr string with parenthesis
Signed-off-by: daniele-verducci <[email protected]>
2026-09-11 14:45:08 +02:00
daniele-verducci 9c07c50e8c Changed output format
Signed-off-by: daniele-verducci <[email protected]>
2026-09-11 14:45:08 +02:00
daniele-verducci bbe77bf40e Inverted qr
Signed-off-by: daniele-verducci <[email protected]>
2026-09-11 14:45:08 +02:00
daniele-verducci 96cb943f7d Try generating QR locally as UTF8 text
Signed-off-by: daniele-verducci <[email protected]>
2026-09-11 14:45:08 +02:00
alperozturk96 691f2020b9 create qr code
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 14:45:08 +02:00
alperozturk96 933c55057e test upsert 2
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 14:45:08 +02:00
alperozturk96 a6a7eb425a test upsert
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 14:45:08 +02:00
alperozturk96 7d9d40e2a4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 14:45:08 +02:00
alperozturk96 2cfbb1a113 add debounce for onCapabilitiesChanged
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 14:01:31 +02:00
Alper Öztürk b6928a8a58 Merge pull request #17606 from nextcloud/fix/media-speed
perf(media): improvement
2026-09-11 13:10:42 +02:00
alperozturk96 f1f9cdeaf4 fix pager item selection
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 d379ab9753 fix video overlay
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 010088dff5 show loader smoothly
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 14fef753bd prevent unncessary updates
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 35d68cc543 no need enum, just show spinner or dont show
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 911a23cdb8 format comment block
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 f4c475cc40 remove unsued import
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 a0598e97e8 make play button density aware
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 3221f2f7ab use VideoOverlayGenerator
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 0763a6dc86 fix placeholder icon inset
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 f8bfacebf8 introduce gallery pagination state
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 cfaa13a354 remove memory cache attempt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 6ccaa98f6e adjust placeholders
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 f8b8674216 start coroutine lazy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 8b2915f917 use new row data
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 3a5766f3b7 recycle row and use new row data
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 93367166a4 do not create video overlay for each time, cached it also
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 2860e283c3 setItemViewCacheSize
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 77ae68c142 recycle row holder and check gallery items before update
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 12:09:54 +02:00
alperozturk96 ba4d1b6b2e fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-11 11:15:14 +02:00
tobiasKaminsky 2d0cc3404b If enforced server, allow QR scanner, but validate url
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-11 11:15:14 +02:00
Tobias Kaminsky 9bdb6bc0b2 Merge pull request #17600 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-09-11 11:14:21 +02:00
nextcloud-android-bot f1e4cc9297 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-09-11 06:59:11 +00:00
Nextcloud bot a5fe8d7021 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-11 04:13:15 +00:00
nextcloud-android-bot 3e5d8eb65d Merge pull request #17610 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.239.0
2026-09-10 23:26:58 +02:00
renovate[bot] 884cf7120d Update dependency fastlane to v2.239.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-10 21:02:41 +00:00
nextcloud-android-bot 1817ea91d5 Merge pull request #17607 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.239.0
2026-09-10 15:27:43 +02:00
renovate[bot] 2bee524490 Update dependency fastlane to v2.239.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-10 12:54:13 +00:00
Tobias Kaminsky 7246cf0d36 Merge pull request #17599 from nextcloud/renovate/fastlane-2.x-lockfile
Update dependency fastlane to v2.239.0
2026-09-10 14:52:11 +02:00
tobiasKaminsky b0f50cf513 CI: test with NC22, NC35 and master
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-10 13:08:31 +02:00
Alper Öztürk 64fbfd1b1a Merge pull request #17561 from nextcloud/update-library-2026-09-06
Update library to 2026-09-06
2026-09-10 12:48:53 +02:00
Alper Öztürk 5bf6753ce3 Merge pull request #17601 from nextcloud/chore/version-bump-35.1.0-alpha1
chore(version): bump to 35.1.0 alpha 1
2026-09-10 09:41:08 +02:00
Alper Öztürk e6514e6f19 Merge pull request #16865 from nextcloud/feat/unified-share
feat(unified-share): ui
2026-09-10 09:33:53 +02:00
tobiasKaminsky aee3149319 update verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-10 09:16:19 +02:00
tobiasKaminsky 41bf8f6000 Update verification-metadata.xml
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-10 09:13:08 +02:00
alperozturk96 cc6df72b71 chore(version): bump to 35.1.0 alpha 1
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 09:07:58 +02:00
alperozturk96 596d27053d wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:57:52 +02:00
alperozturk96 f5d1e32650 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:57:40 +02:00
alperozturk96 da6d07dc01 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 f35583f972 fix app launch crash for some specific files
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 cd702b0476 fix app launch crash for some specific files
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 17a7215fd7 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 01366e9fea wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 60117173ab wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 eefd06d1b4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 b26126e860 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 067d29618c wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
tobiasKaminsky 5fe394d880 use localId, not remoteId
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 8c113d104e wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 9c47dbae94 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 6d8c69f84f wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 78701b6cb4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 bbea7ca25e wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 47ff8887f6 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 714d66b094 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 dc9137baa2 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 c54a4c4b58 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 aeb26f1df8 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 14216857e0 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 2c8e25e4c5 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 67a1dbd1d3 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 cd4a3b0e40 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/schemas/com.nextcloud.client.database.NextcloudDatabase/104.json
2026-09-10 08:33:00 +02:00
alperozturk96 8508b6e087 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	gradle/libs.versions.toml
2026-09-10 08:33:00 +02:00
alperozturk96 abadf12b34 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 a08bccf52c wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 e176697bb0 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 e2d0ef9543 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 c48d46c1a1 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 d4f2f60205 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 15588caf3e wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 c714e9dbf1 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 3a7d11269e wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	gradle/libs.versions.toml
2026-09-10 08:33:00 +02:00
alperozturk96 b7c600ceb0 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 8e418990d8 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 77b3e0b87f wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 408768fe68 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 0ed7bb81c9 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 c507443e07 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 d29759bd39 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 1a384ce6fa wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 70782cfa87 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	gradle.properties

# Conflicts:
#	gradle/verification-metadata.xml

# Conflicts:
#	settings.gradle.kts
2026-09-10 08:33:00 +02:00
alperozturk96 32084225a1 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 342642108b use getMaxCompatibleE2EEVersion
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 74a4087e83 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 a8d64cc7c8 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 f81c9f3f46 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/utils/extensions/OwnCloudClientExtensions.kt
2026-09-10 08:33:00 +02:00
alperozturk96 13d118fe53 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java
2026-09-10 08:33:00 +02:00
alperozturk96 4a1d21ebcb wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 1c26ca53ee wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 3de6a81c8c wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 8cd27d3609 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	gradle/libs.versions.toml
2026-09-10 08:33:00 +02:00
alperozturk96 b47365b969 add todos
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 0e4fc703d2 add todos
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 12f3784129 add todos
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 280bee125a feat(unified-share): ui
Signed-off-by: alperozturk96 <[email protected]>
2026-09-10 08:33:00 +02:00
alperozturk96 4f602fe9b2 feat(unified-share): ui
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java
2026-09-10 08:33:00 +02:00
Nextcloud bot 22cfd14d76 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-10 04:13:56 +00:00
renovate[bot] bb619da1fc Update dependency fastlane to v2.239.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-10 00:03:12 +00:00
Alper Öztürk e35894de57 Merge pull request #17593 from nextcloud/refactor/conflict-dialog-data
refactor(conflict-dialog): dialog determination
2026-09-09 14:04:50 +02:00
Alper Öztürk dc5e49ecf7 Merge pull request #17587 from nextcloud/fix#17579
fix(tags): apply server theme colors to manage tags UI
2026-09-09 11:02:31 +02:00
Alper Öztürk be6de28c10 Merge pull request #17578 from nextcloud/fix/auto-upload-edge-cases
fix(auto-upload): edge cases
2026-09-09 09:40:14 +02:00
Alper Öztürk 4453d4e743 Merge pull request #17592 from nextcloud/tobiasKaminsky-patch-1
Rename folders to match repo names
2026-09-09 09:16:22 +02:00
alperozturk96 30494030e2 move ConflictsResolveDialog to conflict package
Signed-off-by: alperozturk96 <[email protected]>
2026-09-09 09:12:19 +02:00
alperozturk96 906836dec6 move to data classes to model package
Signed-off-by: alperozturk96 <[email protected]>
2026-09-09 09:08:37 +02:00
alperozturk96 f5142b3500 simplify
Signed-off-by: alperozturk96 <[email protected]>
2026-09-09 09:03:25 +02:00
alperozturk96 0fb606f178 refactor(conflict-dialog): dialog determination
Signed-off-by: alperozturk96 <[email protected]>
2026-09-09 08:45:49 +02:00
Tobias Kaminsky 7fd0847296 Rename folders to match repo names
Usually git clone keeps the repo name, thus
android_library -> android-library
same for android-common

Signed-off-by: Tobias Kaminsky <[email protected]>
2026-09-09 08:10:50 +02:00
Nextcloud bot 5ca93caf13 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-09 04:16:43 +00:00
renovate[bot] dee96e0e81 Update dependency fastlane to v2.239.0 (#17591)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-08 21:06:12 +00:00
tobiasKaminsky 8c2decf6f3 fix(tags): apply server theme colors to manage tags UI
The manage tags edit chip icon was hardcoded black, making it
invisible in dark mode, and the bottom sheet's search field,
loading indicator, and checkboxes ignored the server's accent
color, always rendering in Material's default blue.

Closes #17579

Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-08 12:51:44 +02:00
Alper Öztürk 493eab1d88 Merge pull request #17567 from nextcloud/fix/limited-file-access-file-selection
fix(upload): limited file access
2026-09-08 10:44:59 +02:00
Alper Öztürk 9cca391dbd Merge pull request #17568 from nextcloud/feat/unified-search-fav-icon
feat(unified-share): show favorite icon
2026-09-08 10:44:43 +02:00
alperozturk96 0e85a81811 fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 20ae8cbc3e cover synced folder path cases
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 97eeb9a50a cover synced folder path cases
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 e5ffe3bf1d implement MAX_UPLOADS_PER_QUERY
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 da9938beea exclude unknown upload errors
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 6e3cb94bcb expose new functions for active uploads
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 a31dede44c use new power management field
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 0a9431439a introduce AutoUploadRescanWorker
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 bfede15b81 improve initial auto upload logic, check empty files in loop, register active operation for file upload helper, introduce isResolvedByCurrentCollisionPolicy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 668a2ade4a use power management factory and add new field for auto upload
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
alperozturk96 296506ce61 add index
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:51:07 +02:00
Alper Öztürk b46e9a89ae Merge pull request #17082 from nextcloud/performance/move-local-file
performance: move local file
2026-09-08 08:50:27 +02:00
alperozturk96 788621ddb4 fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 f14f6cb528 fix spotbugs
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 2fade8210a wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 11548cd889 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 ee990006b7 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 1661888b0d wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 e47daa2a07 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 a0a089d0b0 fix tests
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 c8e558fdb2 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 3440c8f431 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 284000a0c2 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 a5e0f4e546 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-08 08:12:20 +02:00
alperozturk96 438c9ca358 wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/utils/extensions/FileDataStorageManagerExtensions.kt
2026-09-08 08:12:20 +02:00
alperozturk96 d4931fb71c wip
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/client/database/dao/FileDao.kt
2026-09-08 08:12:20 +02:00
Nextcloud bot 36894c179f fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-08 04:35:38 +00:00
Alper Öztürk c60067146f Merge pull request #17566 from nextcloud/fix/notification-empty-state
fix(notification): empty state
2026-09-07 11:46:49 +02:00
alperozturk96 08bf11fc47 feat(unified-share): show favorite icon
Signed-off-by: alperozturk96 <[email protected]>
2026-09-07 11:39:21 +02:00
alperozturk96 6bc444ae51 fix(upload): limited file access
Signed-off-by: alperozturk96 <[email protected]>
2026-09-07 11:03:37 +02:00
Alper Öztürk 3c00d5e18b Merge pull request #17564 from nextcloud/refactor-thumbnail-loader
refactor(thumbnail-loader): to player thumbnail loader
2026-09-07 10:59:47 +02:00
Alper Öztürk 27c669a319 Merge pull request #17565 from nextcloud/feat/media-player-video-preview-3-dot-menu
fix(player): 3-dot menu
2026-09-07 10:32:17 +02:00
alperozturk96 33d69d5aca fix(notification): empty state
Signed-off-by: alperozturk96 <[email protected]>
2026-09-07 09:26:08 +02:00
alperozturk96 ca514a8a8a fix(player): 3-dot menu
Signed-off-by: alperozturk96 <[email protected]>
2026-09-07 09:16:39 +02:00
alperozturk96 0802ca07f4 refactor(thumbnail-loader): to player thumbnail loader
Signed-off-by: alperozturk96 <[email protected]>
2026-09-07 08:31:05 +02:00
Alper Öztürk 59f3255ecd Merge pull request #16525 from nextcloud/feat/enhance-player
feat(media-player): enhancement
2026-09-07 08:27:55 +02:00
daniele-verducci 52d29c241a Fix detectWrongSettings: Update android-library
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 18:13:52 +02:00
daniele-verducci 16663f9b7b Fix lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci 6f85844587 Fix repeated items in viewpager
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci 04b9782c57 Working video change in pip mode across different folders
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci 36e8870ef1 wip: working video change in pip mode in same folder
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci 7db6df6654 Repeat and Random are mutually exclusive
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci 6efa55f09a Fix: Better implementation for insets on player controls
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci 9eeff8323e WIP
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci ddbcdb084c Fix: margins on player controls changing while swiping after rotation
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
daniele-verducci e802659c0c Fix: now interface clears insets/notch
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 25fe01ab43 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 b20cbbd5f5 disable pip in fragment
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 b4b8614c33 fix leaks, speed-up load
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 c1d23005a7 speedup
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 e102fa6a11 fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 bf5400841d fix pip controls
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 219587f1c2 fix pip border, and gallery selection
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 a22bdd387d remove guava
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 aefa37ff2e use non deprecated apis
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 41eb72306c wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 50e01fe256 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 bb370e8467 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 46d231fa9b wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 4b17913271 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 3eb1c79a3e wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 6e16f4874c use PlayerUtil.kt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 2e51293f70 remove unnecessary tests
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 f5a4983384 fix "null" in the notification
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 06ab182c96 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 dd9c094cc4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 de442fa508 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 9c76de1e72 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 0785bae437 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 e13ecad3a4 fix readCurrentFiles calls
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 e564917cfc fix readCurrentFiles calls
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 8f9eaa90ed update dims
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 e8aee23c33 use kotlinx.serialization instead of java.io
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 6dd6959f5b use view pager 2
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 bbdf6313e7 fix crash playing audio after video
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 dfd6fdfd75 redesign re-use ui components
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 b5e24ae623 update player_audio_file_fragment.xml m3
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:37 +02:00
alperozturk96 61753c6f20 update icons use m3
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 d6ba5b2900 fix lint
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 86c0fac7c1 remove unused classes
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 69b48d72f3 simplify approach
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/nextcloud/client/di/ViewModelModule.kt
2026-09-06 17:44:36 +02:00
alperozturk96 c57ad1a52f fix using new players
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 c73ec19aae wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 f60bd6291c wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 e28aec5bd4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 0e57cf845d wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 70681271a0 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 60d72c9990 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
Alex Kucherenko 61069b36a4 Update license identifier
Signed-off-by: daniele-verducci <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 4e98d9e39e handle stream media operation better
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 6b0ed3f312 handle stream media operation better
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 9873834024 handle stream media operation better
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 c13258371e Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 2a9f17492a onPlaybackError
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 5a3e682cc6 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 f873a1fe65 fix action bar title after playing music
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 e9e9e56841 fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 6606fb3867 use m3 icon buttons and add content description
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 2792cb409b remove unused activity
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 9729847c8e remove unused activity
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt
2026-09-06 17:44:36 +02:00
alperozturk96 0314ceb071 fix codacy
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
alperozturk96 2e6f069c18 fix build
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/res/values/strings.xml
2026-09-06 17:44:36 +02:00
alperozturk96 094d7f5129 Rename .java to .kt
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
Alex Kucherenko d22c9c8346 Enhanced player implementation
Signed-off-by: alperozturk96 <[email protected]>
2026-09-06 17:44:36 +02:00
Denis Botvin 640206f2a5 Enhanced player implementation
Signed-off-by: Denis Botvin <[email protected]>

# Conflicts:
#	app/src/main/res/values/colors.xml
#	app/src/main/res/values/strings.xml
#	gradle/libs.versions.toml
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/adapter/OCShareToOCFileConverter.kt

# Conflicts:
#	app/src/main/res/values/styles.xml

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/adapter/ListGridItemViewHolder.kt
#	app/src/main/java/com/owncloud/android/ui/adapter/OCFileListItemViewHolder.kt

# Conflicts:
#	app/src/main/res/values/dims.xml
2026-09-06 17:44:36 +02:00
Nextcloud bot 576dc13e8f fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-06 04:00:12 +00:00
Nextcloud bot 87b12e8218 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-05 04:08:03 +00:00
Tobias Kaminsky 112318024d Merge pull request #17544 from nextcloud/renovate/spotless
Update dependency com.diffplug.spotless to v8.10.1
2026-09-04 15:14:41 +02:00
tobiasKaminsky bbaf1bfb13 fix some spotbugs findings
Signed-off-by: tobiasKaminsky <[email protected]>
2026-09-04 08:51:51 +02:00
renovate[bot] 21add7252c Update dependency com.google.android.gms:play-services-base to v18.10.1 (#17512)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-04 05:29:53 +00:00
renovate[bot] 6a307d4a98 Update dependency org.conscrypt:conscrypt-android to v2.6.3 (#17519)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: tobiasKaminsky <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-04 05:29:17 +00:00
Nextcloud bot 4a8bc91d8c fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-04 04:18:34 +00:00
Nextcloud bot 92ef82afbc fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-09-03 12:47:41 +00:00
Alper Öztürk 2affe52783 Merge pull request #17516 from nextcloud/feature/1475-delete-uploaded-files
Feature to remove already uploaded files in autoupload folders to free up space on the device
2026-09-03 10:48:34 +02:00
daniele-verducci 14a7e87bdd feature/1475-delete-uploaded-files: fix lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 09:49:07 +02:00
alperozturk96 66e1f00d42 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-03 08:59:19 +02:00
alperozturk96 c9917ded8e wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 6d9fabb398 feature/1475-delete-uploaded-files: Disabled codacy check for more streamlined flow
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 57311cf2b8 feature/1475-delete-uploaded-files: Replace Toast with Snackbar
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 90ae4ed1e2 feature/1475-delete-uploaded-files: Fix Detekt + lint issues
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 4b4391e145 feature/1475-delete-uploaded-files: Simplified log, removed over engineered formatting function
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 4dfe198732 feature/1475-delete-uploaded-files: Pluralized strings
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 65336213a6 feature/1475-delete-uploaded-files: changed some strings, simpler completion notification
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 5fbc88c212 feature/1475-delete-uploaded-files: enabled real file deletion
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci c74248938a feature/1475-delete-uploaded-files: fixed bug preventing removal of pictures uploaded before enabling subfolders by date
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci e5b56f3d93 feature/1475-delete-uploaded-files: apply to current user or all users, added users in report
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 011d83b508 feature/1475-delete-uploaded-files: more logs & user info, fix
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 0a3d4d559e feature/1475-delete-uploaded-files: show runtime in stats
Signed-off-by: daniele-verducci <[email protected]>

# Conflicts:
#	app/src/main/res/values/strings.xml
2026-09-03 08:59:19 +02:00
daniele-verducci af99094219 feature/1475-delete-uploaded-files: spotless run
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci cb2de5ca71 feature/1475-delete-uploaded-files: Better user notifications
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 12f8c055ac feature/1475-delete-uploaded-files: Fixed untouched files report
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 3b0efbb2a7 feature/1475-delete-uploaded-files: Stats
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci d90384b34b feature/1475-delete-uploaded-files: Fix user race condition
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 5ee406f451 feature/1475-delete-uploaded-files: Manage non-writeable folders
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 880ef3b489 feature/1475-delete-uploaded-files: lint
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci a6cc236992 feature/1475-delete-uploaded-files: notifications
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci cfec844cb8 feature/1475-delete-uploaded-files: Passing needed objects to background worker
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 8a7eb8e96a feature/1475-delete-uploaded-files: Moved logic to background worker, wired up manage space button
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 0f03ff9b36 feature/1475-delete-uploaded-files: Added option to system manage space screen
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci b2bef4a86a feature/1475-delete-uploaded-files: refresh subfolders as needed
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 538347cc47 feature/1475-delete-uploaded-files: Cleanup
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 27793020bc feature/1475-delete-uploaded-files: Working files checks
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 6aec6dd706 feature/1475-delete-uploaded-files: WIP (working folder refresh)
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 59689586c9 feature/1475-delete-uploaded-files: multi folder deletion, refactoring
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 964eda3d5a feature/1475-delete-uploaded-files: working deletion based only on filename
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 1d72b071b5 feature/1475-delete-uploaded-files: WIP proof of concept
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
daniele-verducci 80f3b69c6b feature/1475-delete-uploaded-files: Menu item and popup
Signed-off-by: daniele-verducci <[email protected]>
2026-09-03 08:59:19 +02:00
Alper Öztürk b32b929265 Merge pull request #17545 from nextcloud/refactor/ocfilelistfragment-e2ee
refactor
2026-09-03 08:58:56 +02:00
alperozturk96 72d2968837 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-03 08:27:50 +02:00
alperozturk96 1b845af5d0 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-03 08:25:06 +02:00
alperozturk96 d131d51ac4 wip
Signed-off-by: alperozturk96 <[email protected]>
2026-09-03 08:25:06 +02:00
alperozturk96 155baeba00 refactor
Signed-off-by: alperozturk96 <[email protected]>

# Conflicts:
#	app/schemas/com.nextcloud.client.database.NextcloudDatabase/103.json
#	app/src/main/java/com/nextcloud/client/database/NextcloudDatabase.kt
2026-09-03 08:25:05 +02:00
about2crash 1154bdbf06 fix(drawer): open external links with local ID above 100
External link menu items are registered with MENU_ITEM_EXTERNAL_LINK + the link's local database _id. That column is AUTOINCREMENT and the link table is cleared and refilled on every refresh, so the IDs grow without bound. The click handler only accepted an offset of 0-100, so once the IDs passed that window every external link silently stopped responding.

Dispatch on the menu group the items were registered under, and resolve the link by ID instead of by display name.

Signed-off-by: about2crash <[email protected]>
Assisted-by: ClaudeCode:claude-opus-5
2026-08-06 20:39:56 +02:00
MaqsudMallick cd8e2393f8 add branch for email appid in send() profileBottomSheet
Signed-off-by: MaqsudMallick <[email protected]>
2026-07-18 01:07:03 +05:30
1011 changed files with 54636 additions and 40198 deletions

No files matched your search

@@ -0,0 +1,179 @@
---
name: android-activity-to-navigator-fragment
description: >
Use when converting a standalone Activity (usually a DrawerActivity or FileActivity
subclass such as a drawer destination) into a Fragment hosted by NavigatorActivity, when
the user mentions "navigator", "NavigatorActivity", "NavigatorScreen", "convert activity
to fragment", "move screen into the new navigation", or names a drawer screen that still
has its own Activity. Covers registering the NavigatorScreen, building the fragment and
its layout, decoupling collaborators from the old Activity type, rewiring every entry
point (drawer, PendingIntents, broadcast receivers, deep links), DI and manifest cleanup,
and migrating the instrumented screenshot test.
license: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
metadata:
author: Nextcloud Android
version: "1.0.0"
---
# Activity → NavigatorActivity Fragment Conversion
Historically every drawer destination was its own `DrawerActivity` subclass, each with its
own toolbar, `DrawerLayout` and back handling. `NavigatorActivity` replaces them with **one
host Activity** that owns the toolbar and drawer, and swaps **fragments** for the
destinations. Converted so far: Community (#16652), Activities (#16753), Notifications
(#16800), Trashbin (#16879), Upload list.
Read `references/ARCHITECTURE.md` once before the first conversion. It explains how
`Navigator`, `NavigatorScreen`, `NavigatorActivity` and `DrawerActivity.pushFragment` work
together.
## The Prime Directive: Behaviour Must Not Change
The screen must look and behave exactly as before from every entry point: drawer item,
notification tap, notification action, deep link, rotation, back press, drawer toggle and
menu actions. This is a structural refactor. If you find a bug, report it instead of
fixing it in the same change.
## Workflow
### Step 0: Inventory (do not edit yet)
1. Read the whole Activity, its layout and its menu.
2. `git grep -n "<ActivityName>"` across `app/src`, including `AndroidManifest.xml`,
`ComponentsModule.java`, KDoc links, `androidTest` and screenshot file names. Every hit is
either an **entry point** you must rewire or a **reference** you must update.
3. List what the Activity takes from its **base class**. This is the step most likely to go
wrong. `NavigatorActivity` is a `DrawerActivity`, **not** a `FileActivity`. Anything from
`FileActivity` (`fileOperationsHelper`, `OperationsService` binding,
`onRemoteOperationFinish`, `requestCredentialsUpdate`, `showLoadingDialog`,
`connectivityService` field, `backgroundJobManager` field, `EXTRA_FILE`/`EXTRA_USER`
handling in `onCreate`) does not exist in the host. See `references/HOST-CAPABILITIES.md`.
4. List the intent extras the Activity, or its base class, reads. Each one must keep working
when it arrives on the `NavigatorActivity` intent.
5. Note any `onActivityResult`, `BroadcastReceiver`, `OnBackPressedCallback`,
`onOptionsItemSelected`, `ActionMode` or drawer listeners. Each one needs a fragment
equivalent (see `references/ACTIVITY-TO-FRAGMENT-MAPPING.md`).
If a collaborator needs a capability the host does not have, **stop and ask the
developer** whether to (a) move the flow into the fragment and extract the shared pieces
into a helper used by both places, or (b) change the host. Option (a) is the default. It
was chosen for the upload list's credential check (`CredentialsUpdateHelper`).
### Step 1: Register the screen in `NavigatorScreen`
Add the screen in all **five** places in `ui/navigation/NavigatorScreen.kt`. The `when`
expressions are exhaustive, so the compiler catches a missing branch, except in `fromTag`:
1. `@Parcelize object X : NavigatorScreen(X_TAG[, hasDrawer = false])`
2. `private const val X_TAG = "X"` in the companion
3. `fromTag`: `X_TAG -> X` (**not compiler-checked**; missing it breaks restoring after rotation)
4. `menuItemId()`: the drawer item id, or `-1` for screens outside the drawer
5. `actionBarStyle()`: `ActionBarStyle.Plain to R.string.<existing title>`
6. `toFragment()`: `X -> XFragment()`
Use `hasDrawer = false` for screens with a back arrow instead of a hamburger (Notifications).
### Step 2: Fragment layout
Copy the Activity layout to `fragment_<name>.xml` and strip the shell. The host already
provides it:
- remove the root `DrawerLayout`, the `<include layout="@layout/toolbar_standard"/>` and the
`<include layout="@layout/drawer"/>`;
- remove `layout_below="@id/appbar"`. The host's `FragmentContainerView` already sits below
the app bar;
- keep every view id the code or tests use, so the generated binding properties match;
- keep the original SPDX copyright lines and add a line for the current year (derived file).
Delete the old layout once nothing references it.
### Step 3: Write the fragment
Follow `references/ACTIVITY-TO-FRAGMENT-MAPPING.md`. The essentials:
- `class XFragment : Fragment()`, with `@Inject lateinit var` dependencies. Injection is done
by `NavigatorActivity.onAttachFragment`, so `Injectable` is optional.
- Nullable binding: `private var binding: FragmentXBinding? = null`. Set it to `null` in
`onDestroyView`. Use `val binding = binding ?: return` in every function that touches views
(#16783 fixed a crash after a configuration change caused by `_binding!!`).
- Host access: `getTypedActivity(NavigatorActivity::class.java)` (or `DrawerActivity` /
`BaseActivity` when that is all you need) for `user`, `storageManager`, `clientRepository`,
`setUser`, `setDrawerIndicatorEnabled`, `startActionMode`.
- Menu: `requireActivity().addMenuProvider(provider, viewLifecycleOwner, Lifecycle.State.RESUMED)`.
Do **not** handle `android.R.id.home`. The host does that.
- Back press: implement `NavigatorOnBackPressListener` only if the screen has internal
navigation (Trashbin folders).
- Remove `getMenuItemId()`, `setupDrawer()`, `setupToolbar()`, `highlightNavigationViewItem()`
and title setup. `NavigatorScreen` + `NavigatorActivity.setupActionBar` handle all of these.
- Keep files under 300 lines. Extract cohesive flows (conflict handling, credential checks,
the menu provider) into their own classes in the fragment's package.
### Step 4: Decouple collaborators from the old Activity
Adapters, helpers and listeners typed as `XActivity` or `FileActivity` must take the
narrowest type that has what they use. Usually that is `DrawerActivity`, `BaseActivity`,
`NavigatorActivity` or a plain `Context`. Calls to capabilities the host lacks become
callbacks on the click or listener interface, implemented by the fragment
(e.g. `UploadListItemOnClick.onCredentialErrorClick(user)`).
### Step 5: Rewire every entry point
**Always** build the intent with `NavigatorActivity.intent(context, NavigatorScreen.X)`.
`NavigatorActivity.onCreate` calls `requireNotNull` on the screen extra, so a bare
`Intent(context, NavigatorActivity::class.java)` crashes (#17193).
| Old call site | New call site |
|---|---|
| `DrawerActivity.onNavigationItemClicked`: `startActivity(X.class, FLAG_ACTIVITY_CLEAR_TOP)` | `pushFragment(NavigatorScreen.X.INSTANCE)` |
| Buttons in other DrawerActivities: `startActivity(X::class.java)` | `pushFragment(NavigatorScreen.X)` |
| `handleDeepLink`: `startActivity(X.class)` | `pushFragment(NavigatorScreen.X.INSTANCE)` |
| `PendingIntent` / `BroadcastReceiver` / Worker: `Intent(context, X::class.java)` | `NavigatorActivity.intent(context, NavigatorScreen.X).apply { flags = … }` |
| `X.createIntent(...)` factory | inline `NavigatorActivity.intent(...)` + only the extras the fragment reads |
Keep the original flags (`FLAG_ACTIVITY_NEW_TASK`, `FLAG_ACTIVITY_CLEAR_TOP`, …). Extras the
old base class consumed (e.g. `FileActivity.EXTRA_USER` → `setUser`) must now be read by the
fragment from `activity?.intent`, once, when `savedInstanceState == null`.
### Step 6: DI, manifest, cleanup
- `ComponentsModule.java`: remove `abstract XActivity xActivity();` and add
`@ContributesAndroidInjector abstract XFragment xFragment();`. Without this, injection
fails at runtime.
- `AndroidManifest.xml`: remove the `<activity>` entry.
- Delete the Activity, update KDoc/Javadoc `[link]`s that pointed at it, and remove now-unused
imports in files you edited.
### Step 7: Migrate the instrumented test
Rename `XActivityIT` to `XFragmentIT` and launch through the host:
```kotlin
val intent = NavigatorActivity.intent(targetContext, NavigatorScreen.X)
ActivityScenario.launch<NavigatorActivity>(intent).use { scenario -> … }
```
To call into the fragment, find it with `sut.supportFragmentManager.fragments.filterIsInstance<XFragment>()`
(see `TrashbinFragmentIT.launchFragment`). **Rename the reference screenshots with `git mv`**
(`app/screenshots/generic/debug/<pkg>.XActivityIT_*.png` → `XFragmentIT_*.png`) so the
screenshot test compares against the existing images instead of failing.
### Step 8: Verify
1. `./gradlew :app:compileGplayDebugKotlin :app:compileGplayDebugJavaWithJavac :app:compileGplayDebugAndroidTestKotlin`
2. `./gradlew spotlessKotlinCheck detekt lintGplayDebug spotbugsGplayDebug`, then fix findings
in every file you touched.
3. `git grep -n "<ActivityName>\|<old_layout_name>"` returns nothing.
4. Manual checklist (hand it to the developer if you cannot run the app): open from the
drawer, from every notification or PendingIntent, from the deep link; rotate on the
screen; switch to another drawer destination and press back; toggle the drawer with the
hamburger; use every menu action; check light and dark themes.
## References
- `references/ARCHITECTURE.md`: how the navigator works.
- `references/ACTIVITY-TO-FRAGMENT-MAPPING.md`: Activity API → fragment equivalent.
- `references/HOST-CAPABILITIES.md`: what `NavigatorActivity` provides and what it does not.
- `references/PITFALLS.md`: bugs that the earlier conversions ran into.
- `assets/worked-example.md`: the upload list conversion, step by step.
@@ -0,0 +1,81 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Worked Example: `UploadListActivity` → `UploadListFragment`
This conversion was the hardest one so far, because the Activity extended `FileActivity`.
## Inventory findings
- Base class `FileActivity`. The adapter called `activity.fileOperationsHelper.checkCurrentCredentials(user)`
for uploads that failed with `CREDENTIAL_ERROR`. The result came back through
`onRemoteOperationFinish` → `requestCredentialsUpdate` → `CheckRemoteWipeTask` →
`performCredentialsUpdate` → `startActivityForResult(AuthenticatorActivity)` →
`onActivityResult` → `FilesSyncHelper.restartUploadsIfNeeded`.
- Entry points: drawer `nav_uploads`, `FileUploaderIntents.openUploadListIntent` (upload
notifications, with `EXTRA_USER`), `AppWideNotificationManager.getUploadListPendingIntent`,
`SyncConflictNotificationBroadcastReceiver`.
- `EXTRA_USER` was consumed by `FileActivity.onCreate` → `setUser`. `EXTRA_FILE` was
ignored (the Activity set `file = null`).
- Menu: global pause/resume toggle. A `LocalBroadcastManager` receiver for upload events.
`UploadWarningCard` registered in `onCreate` and unregistered in `onDestroy`.
## Decisions
- Host stays a `DrawerActivity`. The credential flow moves into the
fragment.
- To avoid copying `FileActivity` logic, `ui/helpers/CredentialsUpdateHelper.kt` was
extracted. `FileActivity.performCredentialsUpdate`, `CheckRemoteWipeTask` and the fragment
all use it.
## Resulting files
| File | Role |
|---|---|
| `ui/fragment/uploadList/UploadListFragment.kt` | lifecycle, list setup, receiver, warning card, `EXTRA_USER` |
| `ui/fragment/uploadList/UploadListMenuProvider.kt` | global pause toggle |
| `ui/fragment/uploadList/UploadListConflictHandler.kt` | sync-conflict check and retry |
| `ui/fragment/uploadList/UploadListCredentialsHandler.kt` | check credentials → remote wipe → re-login |
| `ui/helpers/CredentialsUpdateHelper.kt` | credential steps shared with `FileActivity` |
| `res/layout/fragment_upload_list.xml` | old layout without `DrawerLayout`/toolbar/drawer |
## Collaborator changes
- `UploadListAdapter(activity: FileActivity)` → `DrawerActivity`.
`fileOperationsHelper.checkCurrentCredentials(user)` → `itemOnClick.onCredentialErrorClick(user)`.
- `UploadListAdapterHelper(activity: FileActivity)` → `DrawerActivity`;
`activity.accountManager` → `activity.userAccountManager`.
- `UploadListItemOnClick` gained `onCredentialErrorClick(user: User)`.
## Entry point changes
```kotlin
// FileUploaderIntents
val intent = NavigatorActivity.intent(context, NavigatorScreen.UploadList).apply {
addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
putExtra(FileActivity.EXTRA_USER, operation?.user)
}
// AppWideNotificationManager, SyncConflictNotificationBroadcastReceiver
val intent = NavigatorActivity.intent(context, NavigatorScreen.UploadList).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
}
```
```java
// DrawerActivity.onNavigationItemClicked
} else if (itemId == R.id.nav_uploads) {
resetOnlyPersonalAndOnDevice();
pushFragment(NavigatorScreen.UploadList.INSTANCE);
```
## Cleanup
- `ComponentsModule`: `uploadListActivity()` removed, `uploadListFragment()` added.
- Manifest entry removed. `UploadListActivity.kt` and `upload_list_layout.xml` deleted.
- `FileUploadEventBroadcaster` KDoc links updated.
- `UploadListActivityActivityIT` → `UploadListFragmentIT`, with screenshots `git mv`'d.
@@ -0,0 +1,52 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Activity API → Navigator Fragment Equivalent
| In the Activity | In the fragment |
|---|---|
| `class X : DrawerActivity()` / `FileActivity()` | `class XFragment : Fragment()` |
| `onCreate`: `setContentView(binding.root)` | `onCreateView`: `binding = FragmentXBinding.inflate(inflater, container, false)` |
| View setup in `onCreate` | `onViewCreated` |
| Non-view setup in `onCreate` (intent extras, config) | `onCreate` (guard extras with `savedInstanceState == null`) |
| `onDestroy` cleanup tied to views/receivers registered in `onCreate` | `onDestroyView` |
| `onStart`/`onStop`/`onResume` | same callbacks on the fragment |
| `setupToolbar()`, `updateActionBarTitleAndHomeButtonByString`, `setupDrawer(menuItemId)` | delete; `NavigatorScreen.actionBarStyle()` + host |
| `getMenuItemId()`, `highlightNavigationViewItem()` | delete; `NavigatorScreen.menuItemId()` + host |
| `onCreateOptionsMenu` / `onOptionsItemSelected` | `MenuProvider` added with `viewLifecycleOwner, Lifecycle.State.RESUMED`; return `false` for ids you do not own |
| `android.R.id.home` → toggle drawer | delete; the host handles it |
| `OnBackPressedCallback` for internal navigation | `NavigatorOnBackPressListener` |
| `mDrawerToggle.isDrawerIndicatorEnabled = x` | `navigatorActivity?.setDrawerIndicatorEnabled(x)` |
| `addDrawerListener(l)` | `activity?.findViewById<DrawerLayout>(R.id.drawer_layout)?.addDrawerListener(l)` |
| `startActionMode(cb)` | `navigatorActivity?.startActionMode(cb)` |
| `findViewById(R.id.sort_button)` (toolbar views) | `activity?.findViewById(...)`; the toolbar belongs to the host |
| `supportFragmentManager` for dialogs | `childFragmentManager`, or `requireActivity().supportFragmentManager` when the dialog calls back into the activity |
| `this` as `Context` | `requireContext()` (inside callbacks: capture before launching) |
| `this` as `Activity` (snackbars, PopupMenu, adapters) | `requireActivity()` / typed host |
| `lifecycleScope` | `lifecycleScope` (fragment lifetime; survives while on back stack) or `viewLifecycleOwner.lifecycleScope` (view work only) |
| `user`, `storageManager`, `clientRepository`, `capabilities` | `navigatorActivity?.user`, `.storageManager`, `.clientRepository`, `.capabilities` |
| `setUser(user)` | `navigatorActivity?.setUser(user)` (`BaseActivity.setUser` is public) |
| `startActivityForResult` + `onActivityResult` | `registerForActivityResult(StartActivityForResult())` as a fragment property |
| `finish()` | `activity?.finish()` |
| `DisplayUtils.showSnackMessage(this, …)` | `DisplayUtils.showSnackMessage(requireView(), …)` / `SnackbarUtil.show(this, …)` |
| inner `BroadcastReceiver` class | `private val receiver = object : BroadcastReceiver() { … }`, avoids an extra type in the file |
| `@Inject var x: T? = null` with `@JvmField` | `@Inject lateinit var x: T` |
| Activity fields inherited from the base (`viewThemeUtils`, `preferences`, `connectivityService`, `accountManager`, `backgroundJobManager`) | `@Inject lateinit var` them in the fragment |
## Dialog listener lookups
Dialogs that cast `activity as Listener` break when the listener is now a fragment.
Trashbin fixed `SortingOrderDialogFragment` with this fallback chain:
```kotlin
val listener = parentFragment as? OnSortingOrderListener
?: activity as? OnSortingOrderListener
?: requireActivity().supportFragmentManager.fragments
.firstOrNull { it is OnSortingOrderListener } as? OnSortingOrderListener
```
Check every dialog the screen opens for the same pattern.
@@ -0,0 +1,89 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Navigator Architecture
All classes live in `app/src/main/java/com/owncloud/android/ui/navigation/`.
```
NavigatorActivity (DrawerActivity) activity_navigator.xml
├─ toolbar_standard (appbar) DrawerLayout
├─ FragmentContainerView ◄── Navigator ──► ├─ CoordinatorLayout
└─ drawer │ ├─ appbar
│ └─ fragment_container_view
└─ drawer
```
## `NavigatorScreen`: the destination registry
A `sealed class NavigatorScreen(val tag: String, val hasDrawer: Boolean = true) : Parcelable`.
Each destination is a `@Parcelize object`, so it can travel in an `Intent` extra and is
compared by identity in `when`.
| Member | Purpose |
|---|---|
| `tag` | Used as the fragment back-stack entry name. Must be unique |
| `hasDrawer` | `true`: hamburger + unlocked drawer. `false`: back arrow + `LOCK_MODE_LOCKED_CLOSED` |
| `fromTag(tag)` | Turns a back-stack entry name back into a screen. Used after configuration changes |
| `menuItemId()` | Drawer item to highlight (`-1` for none) |
| `actionBarStyle()` | `ActionBarStyle.Plain` → `setupToolbar()`, `Search` → `setupHomeSearchToolbarWithSortAndListButtons()`, plus title res |
| `toFragment()` | Creates a fresh fragment instance |
## `Navigator`: the fragment stack
- `push(screen)`: ignores the call if a fragment with that tag already exists. Otherwise it
does `replace(container, screen.toFragment())` + `addToBackStack(screen.tag)`.
- `pop()`: `popBackStack()` and returns the new top screen.
- `getTopScreen()`: reads the name of the last back-stack entry and maps it with `fromTag`.
This keeps working after process death or rotation, because the `FragmentManager`
restores the back stack. The in-memory `stack` does not survive that.
## `NavigatorActivity`: the host
- `onCreate`: inflates `ActivityNavigatorBinding`, then `requireNotNull`s the
`EXTRA_SCREEN` extra. It either `push`es the screen (first launch) or restores the action
bar from `getTopScreen()` (re-creation).
- `onAttachFragment`: `AndroidSupportInjection.inject(fragment)` for **every** attached
fragment. This is why converted fragments need a `@ContributesAndroidInjector` entry in
`ComponentsModule`, even when they do not implement `Injectable`.
- `setupActionBar(screen)`: toolbar style, title, drawer or back arrow, drawer lock mode.
Called on every `push`/`pop`.
- Back press (`OnBackPressedCallback`): close the drawer → let the top
`NavigatorOnBackPressListener` intercept → `finish()` if only one entry is left → `pop()`.
- Home button (`onOptionsItemSelected(android.R.id.home)`): listener intercept → back if
`!hasDrawer` → toggle the drawer otherwise.
- `getMenuItemId()` / `onResume`: highlight the drawer item of the top screen.
- `NavigatorActivity.intent(context, screen)`: the **only** correct way to build a launch
intent.
## `DrawerActivity.pushFragment(screen)`
```java
public void pushFragment(NavigatorScreen screen) {
if (this instanceof NavigatorActivity navigatorActivity) {
navigatorActivity.push(screen); // already in the navigator: swap fragment
} else {
startActivity(NavigatorActivity.Companion.intent(this, screen)); // e.g. from FileDisplayActivity
}
}
```
Drawer item clicks call this, so moving between converted screens swaps fragments
inside a single `NavigatorActivity` instead of starting a new Activity each time.
## `NavigatorOnBackPressListener`
```kotlin
interface NavigatorOnBackPressListener {
fun canInterceptBackPress(): Boolean
fun interceptBackPress()
}
```
Implement it in a fragment that has its own navigation inside the screen. For example,
`TrashbinFragment` goes up one folder while `trashbinPresenter.isRoot == false`. The host
checks it for both the system back gesture and the toolbar home button.
@@ -0,0 +1,44 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# What `NavigatorActivity` Provides
`NavigatorActivity` extends `DrawerActivity → ToolbarActivity → BaseActivity`. It does
**not** extend `FileActivity`. Decided to keep it that way: making every
navigator screen a `FileActivity` would bind `OperationsService` for all of them and show
`FileActivity`'s offline info box on screens that never had one.
## Available from the host
- `BaseActivity`: `user`, `setUser(user)`, `capabilities`, `storageManager`,
`clientRepository`, `userAccountManager`, `account`.
- `ToolbarActivity`: toolbar setup, `showInfoBox`/`hideInfoBox` (only called by
`FileActivity`), sort and grid toolbar buttons (`R.id.sort_button`,
`R.id.switch_grid_view_button`).
- `DrawerActivity`: `appPreferences`, `openDrawer`/`closeDrawer`/`isDrawerOpen`,
`setDrawerIndicatorEnabled`, `pushFragment`, `fetchExternalLinks`.
## Not available: `FileActivity`-only features
| `FileActivity` feature | How to replace it in a fragment |
|---|---|
| `fileOperationsHelper.*` (queues operations on `OperationsService`) | Run the `RemoteOperation`/`SyncOperation` directly in `lifecycleScope` on `Dispatchers.IO` with a client for the right user |
| `onRemoteOperationFinish(op, result)` override | Handle the result inline after the coroutine returns |
| `requestCredentialsUpdate(account)` → `CheckRemoteWipeTask` → `performCredentialsUpdate` | `CredentialsUpdateHelper` (`isRemoteWipeRequested`, `invalidateCredentials`, `createUpdateCredentialsIntent`) + `registerForActivityResult` |
| `onActivityResult(REQUEST_CODE__UPDATE_CREDENTIALS, RESULT_OK)` | the `ActivityResultLauncher` callback |
| `showLoadingDialog` / `dismissLoadingDialog` | `LoadingDialog.newInstance(msg).show(childFragmentManager, TAG)` and `dismissAllowingStateLoss()` |
| `EXTRA_USER` → `setUser` in `onCreate` | fragment reads `activity?.intent` and calls `navigatorActivity?.setUser` |
| `EXTRA_FILE` → `file` | read it in the fragment if it is used, otherwise drop it from the callers |
| `connectivityService`, `backgroundJobManager`, `accountManager` fields | `@Inject lateinit var` in the fragment |
## De-duplication rule
When a fragment needs logic that a base Activity implements privately, **do not copy it**.
Extract the reusable steps into a Kotlin helper (e.g. `ui/helpers/CredentialsUpdateHelper.kt`).
Have the original Activity code call the helper too, so there is one implementation.
Only the orchestration specific to the fragment (coroutines, result launcher, dialog) should
live in the fragment's package.
@@ -0,0 +1,71 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Pitfalls Found in Earlier Conversions
## Bare intents crash the host (#17193)
`NotificationWork` was changed to `Intent(context, NavigatorActivity::class.java)` without
a screen. `NavigatorActivity.onCreate` calls `requireNotNull` on `EXTRA_SCREEN`, so tapping
the notification crashed. Always use `NavigatorActivity.intent(context, NavigatorScreen.X)`.
Check **every** `PendingIntent`, `BroadcastReceiver`, Worker and notification manager that
referenced the old Activity.
## `binding!!` after a configuration change (#16783)
The `_binding!!` / `val binding get() = _binding!!` pattern crashed when a callback
(presenter, coroutine, receiver) fired after `onDestroyView`. Use a nullable
`private var binding` and `val binding = binding ?: return` in each function.
## Screen not restored after rotation (#16783)
`NavigatorActivity` only re-applies the action bar and drawer highlight if
`NavigatorScreen.fromTag` knows the tag. `fromTag` is not an exhaustive `when` over the
sealed class, so the compiler does not catch a missing entry.
## Dependency injection
`NavigatorActivity.onAttachFragment` injects every fragment. That only works if
`ComponentsModule` has a `@ContributesAndroidInjector abstract XFragment xFragment();`.
Without it you get an `IllegalArgumentException: No injector factory bound` at runtime, not at
compile time. `addFragmentOnAttachListener` / lifecycle callbacks did not behave the same,
which is why the deprecated `onAttachFragment` is used.
## Toolbar views belong to the host
Sort and grid buttons, the info box and the search bar live in the host's `toolbar_standard`.
Reach them with `activity?.findViewById`. Set their visibility explicitly, because the
previous screen may have changed it.
## Dialog callbacks
Dialogs that do `activity as Listener` silently stop working when the listener is now a
fragment (see the `SortingOrderDialogFragment` fix in `ACTIVITY-TO-FRAGMENT-MAPPING.md`).
## Lifecycle scope choice
Long-running work started by the user (retrying an upload, executing an action) should use
the fragment's `lifecycleScope`. That keeps it running while the fragment sits on the back
stack with its view destroyed. Only pure view work should use
`viewLifecycleOwner.lifecycleScope`. Always null-check the binding when the work returns.
## Receivers and registrations
Anything registered in the Activity's `onCreate` and released in `onDestroy` (e.g.
`UploadWarningCard.register/unregister`) must move to `onViewCreated`/`onDestroyView`.
Otherwise it leaks across back-stack transitions or registers twice.
## Screenshot tests
Renaming `XActivityIT` → `XFragmentIT` changes the screenshot names. `git mv` the PNGs in
`app/screenshots/generic/debug/` to match, or CI reports missing references.
## File size and type rules
`AGENTS.md` caps files at 300 lines and wants one type per file. Activities converted to
fragments often exceed 300 lines. Split cohesive flows (menu provider, conflict handler,
credentials handler) into separate classes in the fragment's package.
@@ -0,0 +1,135 @@
---
name: android-eventbus-to-workmanager-flow
description: >
Use when replacing a GreenRobot EventBus event that a WorkManager worker posts (progress,
state, completion) with WorkManager's own observation APIs, consumed through a ViewModel
Flow; when the user mentions "event bus", "EventBus", "EventBusFactory", "@Subscribe",
"worker progress", "setProgress", "observe worker", "getWorkInfosForUniqueWorkFlow" or
"listen to the worker through the viewmodel". Covers publishing progress from the worker,
building the ViewModel Flow keyed by the work name, DI registration, collecting the Flow
from Kotlin or legacy Java fragments/activities, and deleting the event classes.
license: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
metadata:
author: Nextcloud Android
version: "1.0.0"
---
# EventBus → WorkManager Flow via ViewModel
Workers used to tell the UI what they were doing by posting GreenRobot EventBus events
(`EventBusFactory.downloadProgressEventBus.post(FileDownloadProgressEvent(percent))`). That
has three problems: the event is global (every subscriber gets every worker's events,
whatever file it is about), it is lost when nobody is registered, and the subscriber has to
register and unregister by hand in `onStart`/`onStop`.
WorkManager already stores each worker's state and progress and exposes them as `Flow`s. The
UI asks WorkManager about **one specific piece of work**, through a ViewModel, and collects
the Flow with the lifecycle. Official guide:
https://developer.android.com/develop/background-work/background-tasks/persistent/how-to/observe
Converted so far: `FileDownloadProgressEvent` → `FileDetailFragmentViewModel.downloadProgress`
(see `assets/worked-example.md`). The earlier `FileDisplayActivityViewModel.observeOfflineWorker`
is the simplest form of the same pattern (state only, Kotlin consumer).
## The Prime Directive: Behaviour Must Not Change
The screen must show the same thing at the same moments as before. The only intended
differences are the ones the global bus got wrong: a screen now only reacts to the work it is
about. Write them down for the PR description. If you find an unrelated bug, report it
instead of fixing it in the same change.
## Workflow
### Step 0: Inventory (do not edit yet)
1. `git grep -n "<EventName>"` across `app/src`. List every **poster** (usually a worker) and
every **subscriber** (`@Subscribe fun on…(event: <EventName>)`).
2. If the event lives on a dedicated bus (`EventBusFactory.<x>EventBus`), also grep for the
bus. When it has no other users, delete it together with the event.
3. For each poster, find how its work is enqueued in `BackgroundJobManagerImpl`: the
**unique work name** (`enqueueUniqueWork(name, …)`) and the **tags** (`oneTimeRequestBuilder`
adds `formatNameTag`, `formatClassTag`, `formatUserTag`, plus any custom tag). The UI
must be able to rebuild exactly one of these from what it already knows (user, file id…).
4. List what each event field carries and what the subscriber does with it. Decide whether
it is **progress** (while running → `setProgress`), a **result** (at the end →
`Result.success(outputData)`), or only **state** (`WorkInfo.state`, nothing to publish).
5. Look for older parallel mechanisms the subscriber also uses for the same purpose (bound
listeners, `LocalBroadcastManager`). If you can prove one is dead (e.g. a field that is
only ever set to `null`), remove it with all its plumbing, including test doubles in
`app/src/debug` and mocks in `androidTest`. Otherwise leave it and mention it in the summary.
### Step 1: Make the work addressable
If the unique work name / tag builder is `private` in `BackgroundJobManagerImpl`, move it
into the `companion object` next to `formatNameTag`/`formatClassTag` as a public
`format…Tag(...)` function, and have the enqueue and cancel call sites use it. The UI and
the scheduler must build the name with the same function, never with a copied string.
### Step 2: Publish from the worker
- Add the `Data` key as a `const val` in the worker's `companion object`
(`const val PROGRESS_PERCENT = "PROGRESS_PERCENT"`).
- From a `suspend` context call `setProgress(workDataOf(KEY to value))`. From a non-suspend
callback (e.g. `OnDatatransferProgressListener.onTransferProgress`) call
`setProgressAsync(...)`.
- **Throttle it.** WorkManager writes progress to its database. Publish only when the value
changed, and reuse an existing throttle (the notification update interval) when the
worker has one.
- Results go in `Result.success(workDataOf(...))` and are read from `WorkInfo.outputData`.
- Delete the `post(...)` call and the event imports.
### Step 3: ViewModel
One ViewModel per screen, in a package next to the screen
(`ui/fragment/<screen>/<Screen>FragmentViewModel.kt`, mirroring
`ui/activity/filedisplayactivity/FileDisplayActivityViewModel.kt`). Template:
`references/VIEWMODEL-TEMPLATE.md`.
- Constructor-inject `WorkManager` (`@Inject constructor(private val workManager: WorkManager)`).
- Hold the work name the screen is interested in a `MutableStateFlow<String?>`. A setter
function (`observeDownloadProgress(user, file)`) builds it with the Step 1 function.
- Expose a **cold** `Flow<T>`: `filterNotNull()` → `flatMapLatest { getWorkInfosForUniqueWorkFlow(it) }`
→ map the `WorkInfo` list to the UI value → `distinctUntilChanged()`. Use
`getWorkInfoByIdFlow(id)` when you have the request id, `getWorkInfosByTagFlow(tag)` when
the work is not unique.
- Progress is only present while `state == RUNNING`. It is empty after the work finishes, so
filter on `RUNNING` and drop missing keys (`progress.keyValueMap[KEY] as? Int`).
- Register it in `di/ViewModelModule.kt` with `@Binds @IntoMap @ViewModelKey(X::class)`.
Without this, `ViewModelFactory` throws at runtime.
### Step 4: Consumer
- Get the ViewModel from `ViewModelFactory`: Kotlin `by viewModels { vmFactory }`, Java
`new ViewModelProvider(this, vmFactory).get(X.class)` in `onCreate`. Injection of
`Injectable` fragments happens before `onAttach`, so `vmFactory` is ready in `onCreate`.
- Tell the ViewModel what to watch where the screen learns its subject (`onViewCreated`,
and every public "show this other file" method such as `updateFileDetails(file, user)`).
- Collect with the **view** lifecycle in fragments:
- Kotlin: `viewLifecycleOwner.lifecycleScope.launch { viewLifecycleOwner.repeatOnLifecycle(STARTED) { vm.flow.collect { … } } }`
- Java: `LifecycleOwnerExtensionsKt.collectWhenStarted(getViewLifecycleOwner(), viewModel.getX(), this::onX);`
(`utils/extensions/LifecycleOwnerExtensions.kt`). Do not switch to `LiveData` for Java
callers. See `references/PITFALLS.md` for why.
- Turn the old `@Subscribe public void onX(Event e)` into `private void onX(T value)`. Keep
its body unchanged apart from reading the value directly.
- Remove the `register`/`unregister` lines for the bus. Keep `EventBus.getDefault()` registration
if the class still has other `@Subscribe` methods.
### Step 5: Delete and verify
1. Delete the event class (and the dedicated bus if it has no users left).
2. `git grep -n "<EventName>\|<busName>"` returns nothing.
3. `./gradlew :app:compileGplayDebugJavaWithJavac spotlessKotlinCheck detekt`, then
`lintGplayDebug spotbugsGplayDebug`. Fix findings in every file you touched.
4. Manual check (hand it to the developer if you cannot run the app): start the work and
open the screen, so the value shows up; open the screen first, then start the work; rotate
while it runs; leave the screen for more than 5 s, let the work finish, come back (no stale
value); open the screen for a *different* subject while work runs for another one (it must
not react).
## References
- `references/VIEWMODEL-TEMPLATE.md`: ViewModel, worker and consumer snippets.
- `references/PITFALLS.md`: what went wrong or nearly went wrong.
- `assets/worked-example.md`: `FileDownloadProgressEvent` → `FileDetailFragmentViewModel`.
@@ -0,0 +1,56 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Worked Example: `FileDownloadProgressEvent` → `FileDetailFragmentViewModel`
## Inventory findings
- Event: `ui/events/FileDownloadProgressEvent(percent: Int)` on a dedicated bus,
`ui/events/EventBusFactory.downloadProgressEventBus`. Neither had other users.
- Poster: `FileDownloadWorker.onTransferProgress`, on every transfer chunk, unthrottled, with
no file information.
- Subscriber: `FileDetailFragment` (Java). It registered the bus in `onStart`, unregistered
it in `onStop`, and `@Subscribe(threadMode = MAIN) onDownloadProgress` showed the progress
block with the "downloading" text and the percent.
- Enqueue: `BackgroundJobManagerImpl.startFileDownloadJob` →
`enqueueUniqueWork(startFileDownloadJobTag(accountName, fileId), KEEP, request)`, and the
same string as a tag. The builder was `private`.
- Parallel mechanism: `containerActivity.getFileDownloadProgressListener()` /
`FileDownloadWorker.FileDownloadProgressListener`. The field in `FileActivity` is never
assigned, so it is always `null`, which is why the bus was added (commit `37df0dca9d`).
Removed in the same change, since the ViewModel replaces it.
- Folders use `FolderDownloadWorker`, which never posted the event.
## Changes
| File | Change |
|---|---|
| `jobs/BackgroundJobManagerImpl.kt` | `startFileDownloadJobTag` → public companion `formatFileDownloadTag`, used by start and cancel |
| `jobs/download/FileDownloadWorker.kt` | `PROGRESS_PERCENT` key; `setProgressAsync(workDataOf(PROGRESS_PERCENT to percent))` inside the notification throttle; bus post removed |
| `ui/fragment/filedetail/FileDetailFragmentViewModel.kt` | new; `downloadProgress: Flow<Int>` keyed by `formatFileDownloadTag` |
| `di/ViewModelModule.kt` | `@Binds @IntoMap @ViewModelKey(FileDetailFragmentViewModel::class)` |
| `utils/extensions/LifecycleOwnerExtensions.kt` | new; `collectWhenStarted(flow, Consumer)` for Java consumers |
| `ui/fragment/FileDetailFragment.java` | `ViewModelFactory` inject, VM in `onCreate`, `observeDownloadProgress` in `onViewCreated` and `updateFileDetails(file, user)`, `collectWhenStarted` on the view lifecycle, `@Subscribe` → `private void onDownloadProgress(int)`, bus register/unregister removed |
| `ui/events/FileDownloadProgressEvent.kt`, `ui/events/EventBusFactory.kt` | deleted |
| `FileDownloadWorker.FileDownloadProgressListener` and its plumbing | deleted: inner class, worker field, `ComponentsGetter.getFileDownloadProgressListener()`, `FileActivity` field and getter, the two `= null` assignments in `FileDisplayActivity`, the download branches of `FileDetailFragment.listenForTransferProgress`/`leaveTransferProgress`, the `TestActivity` override and the `FileMenuFilterIT` mock |
## Intended behaviour differences
- Progress is shown only for the file the details screen is about, not for whichever file is
downloading.
- The UI updates at the notification throttle (750 ms) instead of on every chunk.
## Decisions
- **Cold `Flow` + `collectWhenStarted`, not `LiveData`.** `LiveData` replayed a stale
percent after a finish that happened while the view was stopped (see `PITFALLS.md`).
- **The ViewModel is created in `onCreate`, not `onViewCreated`.** The activity can call
`updateFileDetails(file, user)` before the view exists, and the ViewModel must survive view
re-creation from the back stack.
- **The finished state is still handled by the existing broadcast path.**
`FileDisplayActivity` calls `updateFileDetails(false, true)` on `ACTION_DOWNLOAD_COMPLETED`.
Moving that to `WorkInfo.State.SUCCEEDED` is a possible follow-up, not part of this change.
@@ -0,0 +1,67 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Pitfalls
## `LiveData` replays a stale value
The first draft exposed `asLiveData()` so the Java fragment could `observe(...)`. `LiveData`
keeps its last value and stops collecting upstream 5 s after the last observer goes away. If
the download finishes during those 5 s, the cached value is the last running percent, and
the next observer gets it right away. The progress block is shown again for a download that
has already finished. A cold `Flow` collected with `repeatOnLifecycle` asks WorkManager again
on every start and only gets the current state. Use `collectWhenStarted` from Java instead
of `LiveData`.
## Progress disappears when the work finishes
`WorkInfo.progress` is empty as soon as the state leaves `RUNNING`. Do not read progress
from `SUCCEEDED`/`FAILED` infos, and do not treat the missing key as `0`. Use `mapNotNull`
and let the existing "finished" path (broadcast, `updateFileDetails(false, true)`) hide the
UI, as it did before. Put final values in `Result.success(outputData)` if the UI needs them.
## Every `setProgress` is a database write
WorkManager persists progress. Calling it on every transfer chunk writes to the database
hundreds of times per file. Publish only on change and inside the worker's existing
throttle (`minProgressUpdateInterval`).
## Unique work name vs tag
`getWorkInfosForUniqueWorkFlow(name)` matches the `enqueueUniqueWork` name.
`getWorkInfosByTagFlow(tag)` matches `addTag`. In `startFileDownloadJob` the same string
is used for both, but that is not true for every job. Check the enqueue call. Never build the
string by hand in the ViewModel. Make the builder public in the
`BackgroundJobManagerImpl` companion.
## The bus was global; the Flow is not
`FileDownloadProgressEvent` reached `FileDetailFragment` for **any** running download, so
the details of file A could show the progress of file B. The ViewModel is keyed by
account + file id, so it only reacts to its own file. This is the intended change; mention it
in the PR. Check which worker really runs for each subject: folders are downloaded by
`FolderDownloadWorker`, not `FileDownloadWorker`, and never posted the event.
## The subject can change without a new view
`FileDetailFragment.updateFileDetails(OCFile, User)` swaps the file on a live fragment. Call
`viewModel.observeX(...)` there too. Thanks to `flatMapLatest`, the old work's Flow is
cancelled automatically. Guard with `viewModel != null` because the activity can call it on a
fragment that has not reached `onCreate` yet.
## Missing ViewModel binding
Forgetting `@Binds @IntoMap @ViewModelKey(X::class)` in `ViewModelModule` compiles, but
`ViewModelFactory` throws `IllegalArgumentException` when the screen opens.
## Keep other `@Subscribe` methods registered
`FileDetailFragment` still receives `FavoriteEvent` on `EventBus.getDefault()`. Remove only
the registration for the bus you are replacing. Removing the default registration silently
stops the remaining events. The other way round fails too: if the last `@Subscribe` method
goes away but `register(this)` stays, EventBus throws `EventBusException` ("has no public
methods with the @Subscribe annotation") when the screen starts.
@@ -0,0 +1,126 @@
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Templates
## Worker
```kotlin
companion object {
const val PROGRESS_PERCENT = "PROGRESS_PERCENT"
}
// suspend context
setProgress(workDataOf(PROGRESS_PERCENT to percent))
// non-suspend callback, inside the existing throttle
if (percent != lastPercent && (currentTime - lastUpdateTime) >= minProgressUpdateInterval) {
notificationManager.updateDownloadProgress(percent, totalToTransfer)
setProgressAsync(workDataOf(PROGRESS_PERCENT to percent))
lastUpdateTime = currentTime
}
```
## Work name (BackgroundJobManagerImpl companion)
```kotlin
fun formatFileDownloadTag(accountName: String, fileId: Long): String =
JOB_FOLDER_DOWNLOAD + accountName + fileId
```
Use it in `startXJob` (`enqueueUniqueWork(tag, …)`), in `cancelXJob`, and in the ViewModel.
## ViewModel
```kotlin
class FileDetailFragmentViewModel @Inject constructor(private val workManager: WorkManager) : ViewModel() {
private val downloadWorkName = MutableStateFlow<String?>(null)
@OptIn(ExperimentalCoroutinesApi::class)
val downloadProgress: Flow<Int> = downloadWorkName
.filterNotNull()
.flatMapLatest { workManager.getWorkInfosForUniqueWorkFlow(it) }
.mapNotNull { workInfos -> workInfos.firstOrNull { it.state == WorkInfo.State.RUNNING }?.downloadPercent() }
.distinctUntilChanged()
fun observeDownloadProgress(user: User, file: OCFile) {
downloadWorkName.value = BackgroundJobManagerImpl.formatFileDownloadTag(user.accountName, file.fileId)
}
private fun WorkInfo.downloadPercent(): Int? = progress.keyValueMap[FileDownloadWorker.PROGRESS_PERCENT] as? Int
}
```
State-only variant (no progress published), from `FileDisplayActivityViewModel`:
```kotlin
suspend fun observeOfflineWorker(onComplete: () -> Unit) {
workManager
.getWorkInfosByTagFlow(BackgroundJobManagerImpl.formatClassTag(OfflineOperationsWorker::class))
.collect { workInfos ->
if (workInfos.any { it.state == WorkInfo.State.SUCCEEDED }) {
onComplete()
}
}
}
```
Prefer exposing a `Flow` property over a `suspend fun` with a callback: the consumer decides
the lifecycle, and Java can collect it through `collectWhenStarted`.
## DI (`di/ViewModelModule.kt`)
```kotlin
@Binds
@IntoMap
@ViewModelKey(FileDetailFragmentViewModel::class)
abstract fun fileDetailFragmentViewModel(vm: FileDetailFragmentViewModel): ViewModel
```
## Kotlin consumer (fragment)
```kotlin
@Inject lateinit var vmFactory: ViewModelFactory
private val viewModel by viewModels<FileDetailFragmentViewModel> { vmFactory }
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
viewModel.observeDownloadProgress(user, file)
viewLifecycleOwner.lifecycleScope.launch {
viewLifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {
viewModel.downloadProgress.collect(::onDownloadProgress)
}
}
}
```
## Java consumer (fragment)
```java
@Inject ViewModelFactory vmFactory;
private FileDetailFragmentViewModel viewModel;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
viewModel = new ViewModelProvider(this, vmFactory).get(FileDetailFragmentViewModel.class);
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
viewModel.observeDownloadProgress(user, getFile());
LifecycleOwnerExtensionsKt.collectWhenStarted(getViewLifecycleOwner(),
viewModel.getDownloadProgress(),
this::onDownloadProgress);
}
private void onDownloadProgress(int percent) { … }
```
`collectWhenStarted` (`utils/extensions/LifecycleOwnerExtensions.kt`) wraps
`lifecycleScope.launch { repeatOnLifecycle(STARTED) { flow.collect(collector::accept) } }`
and takes an `androidx.core.util.Consumer`, so a Java method reference fits.
-5
View File
@@ -1,5 +0,0 @@
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
exclude_paths:
- "app/src/main/cpp/**"
+1 -1
View File
@@ -1,4 +1,4 @@
FROM ubuntu:resolute@sha256:2260313b31c8c011cd2eebe728008efac1b3982be73eb71348ea2648d2c0e09b
FROM ubuntu:resolute@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c
ARG DEBIAN_FRONTEND=noninteractive
ENV ANDROID_HOME=/usr/lib/android-sdk
Binary file not shown.
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
+179
View File
@@ -0,0 +1,179 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: AI Policy
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [master, main]
permissions:
contents: read
# Required to add the "AI assisted" label via `gh pr edit --add-label`
pull-requests: write
# Required to create the "AI assisted" label via the REST labels endpoint
# (labels are an issues-scoped resource in the GitHub API)
issues: write
concurrency:
group: ai-policy-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check-ai-trailers:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Collect PR commit messages
id: collect
env:
BASE_REF: ${{ github.base_ref }}
run: |
set -euo pipefail
git fetch origin "${BASE_REF}"
MERGE_BASE=$(git merge-base "origin/${BASE_REF}" HEAD)
git log --format="%B" "${MERGE_BASE}..HEAD" > /tmp/pr_commits.txt
echo "--- PR commit messages ---"
cat /tmp/pr_commits.txt
echo "--------------------------"
- name: Define shared agent detection patterns
run: |
set -euo pipefail
# Email addresses known to be used by coding agents.
# These should never appear in Signed-off-by because the DCO can only be attested by a human.
EMAIL_PATTERN="copilot@github\.com\
|noreply@anthropic\.com\
|devin@cognition\.ai\
|devin@cognition-labs\.com\
|aider@aider\.chat\
|noreply@aider\.chat\
|codex@openai\.com\
|cursor@anysphere\.com\
|windsurf@codeium\.com\
|codeium@codeium\.com\
|amazon-q@amazon\.com\
|codewhisperer@amazon\.com\
|gemini-code-assist@google\.com\
|openhands@all-hands\.dev\
|swe-agent@princeton\.edu"
# Strip embedded whitespace (used above only for readability)
EMAIL_PATTERN=$(echo "$EMAIL_PATTERN" | tr -d ' \n')
echo "AGENT_EMAIL_PATTERN=${EMAIL_PATTERN}" >> "$GITHUB_ENV"
# Display-name prefixes used by known coding agents (shared by Signed-off-by and Co-Authored-By checks)
# shellcheck disable=SC2016
echo 'AGENT_NAMES=GitHub Copilot|Claude( [A-Za-z0-9. -]+)?|Devin( AI)?|aider( \(.*\))?|OpenAI Codex|Cursor( AI)?|Windsurf|Amazon Q|CodeWhisperer|Gemini Code Assist|OpenHands|SWE-agent|AutoCodeRover|Tabnine' >> "$GITHUB_ENV"
- name: Check for AI-assistant / Assisted-by trailers
id: ai_trailers
run: |
set -euo pipefail
AI_ASSISTED=false
if grep -qiE '^(AI-assistant|Assisted-by):' /tmp/pr_commits.txt; then
AI_ASSISTED=true
echo "Found AI-assistant/Assisted-by trailer(s):"
grep -iE '^(AI-assistant|Assisted-by):' /tmp/pr_commits.txt
fi
echo "ai_assisted=${AI_ASSISTED}" >> "$GITHUB_OUTPUT"
- name: Check for coding-agent Signed-off-by trailers
id: agent_signoff
run: |
set -euo pipefail
EMAIL_HITS=$(grep -iE "^Signed-off-by:.*<(${AGENT_EMAIL_PATTERN})>" /tmp/pr_commits.txt 2>/dev/null || true)
NAME_HITS=$(grep -iE "^Signed-off-by: *(${AGENT_NAMES}) *[<(]" /tmp/pr_commits.txt 2>/dev/null || true)
AGENT_LINES=$(printf '%s\n%s' "$EMAIL_HITS" "$NAME_HITS" | sort -u | sed '/^[[:space:]]*$/d')
AGENT_SIGNOFF=false
if [ -n "$AGENT_LINES" ]; then
AGENT_SIGNOFF=true
fi
echo "agent_signoff=${AGENT_SIGNOFF}" >> "$GITHUB_OUTPUT"
{
echo "agent_lines<<AGENT_EOF"
echo "${AGENT_LINES}"
echo "AGENT_EOF"
} >> "$GITHUB_OUTPUT"
- name: Check for coding-agent Co-Authored-By trailers
id: co_authored
run: |
set -euo pipefail
EMAIL_HITS=$(grep -iE "^Co-Authored-By:.*<(${AGENT_EMAIL_PATTERN})>" /tmp/pr_commits.txt 2>/dev/null || true)
NAME_HITS=$(grep -iE "^Co-Authored-By: *(${AGENT_NAMES}) *[<(]" /tmp/pr_commits.txt 2>/dev/null || true)
CO_AUTHORED=false
if [ -n "$EMAIL_HITS" ] || [ -n "$NAME_HITS" ]; then
CO_AUTHORED=true
echo "Found coding-agent Co-Authored-By trailer(s):"
printf '%s\n%s' "$EMAIL_HITS" "$NAME_HITS" | sort -u | sed '/^[[:space:]]*$/d'
fi
echo "co_authored=${CO_AUTHORED}" >> "$GITHUB_OUTPUT"
- name: Create 'AI assisted' label if absent
if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh api "repos/${{ github.repository }}/labels" \
--method POST \
-f name="AI assisted" \
-f color="d93f0b" \
-f description="This PR contains AI-assisted commits" \
2>/dev/null || true
- name: Label PR as AI assisted
if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr edit "${{ github.event.pull_request.number }}" \
--repo "${{ github.repository }}" \
--add-label "AI assisted"
echo "Added 'AI assisted' label to PR #${{ github.event.pull_request.number }}"
- name: Fail on coding-agent Signed-off-by
if: steps.agent_signoff.outputs.agent_signoff == 'true'
env:
AGENT_LINES: ${{ steps.agent_signoff.outputs.agent_lines }}
AGENTS_MD_URL: https://github.com/${{ github.repository }}/blob/${{ github.base_ref }}/AGENTS.md
run: |
echo "::error title=Coding-agent sign-off detected::A Signed-off-by trailer from a known coding agent was found in one or more commits."
echo ""
echo "Offending trailer(s):"
echo "${AGENT_LINES}"
echo ""
echo "The 'Signed-off-by' trailer represents the Developer Certificate of Origin (DCO)"
echo "and must only be attested by a human contributor."
echo "Please amend the affected commit(s) to remove the coding-agent sign-off"
echo "and replace it with an 'Assisted-by' trailer, for example:"
echo ""
echo " Assisted-by: Claude Code:claude-sonnet-4-6"
echo ""
echo "References:"
echo " • AGENTS.md (this repository)"
echo " ${AGENTS_MD_URL}"
echo " • AI Contribution Policy"
echo " https://github.com/nextcloud/.github/blob/master/AI_POLICY.md"
echo " • Contribution Guidelines"
echo " https://github.com/nextcloud/.github/blob/master/CONTRIBUTING.md"
exit 1
+76
View File
@@ -0,0 +1,76 @@
# 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"
on:
pull_request:
branches: [ "master", "main", "stable-*" ]
push:
branches: [ "master", "main", "stable-*" ]
permissions:
pull-requests: write
contents: write
concurrency:
group: analysis-wrapper-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
analysis:
runs-on: ubuntu-latest-max
steps:
- 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
# push
{
echo "branch=$GITHUB_REF_NAME"
echo "pr=$GITHUB_RUN_ID"
echo "repo=${{ github.repository }}"
} >> "$GITHUB_OUTPUT"
else
# pull request
{
echo "branch=$GITHUB_HEAD_REF"
echo "pr=${{ github.event.pull_request.number }}"
echo "repo=${{ github.event.pull_request.head.repo.full_name }}"
} >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: ${{ steps.get-vars.outputs.repo }}
ref: ${{ steps.get-vars.outputs.branch }}
- name: Set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: "temurin"
java-version: 25
- name: Install dependencies
run: |
sudo apt install python3-defusedxml
- name: Run analysis wrapper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p "$HOME/.gradle"
{
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
echo "org.gradle.configureondemand=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 }}"
+29 -46
View File
@@ -5,7 +5,9 @@ name: "Assemble"
on:
pull_request:
branches: [master, stable-*]
branches: [ master, stable-* ]
push:
branches: [ master ]
# Declare default permissions as read only.
permissions: read-all
@@ -15,54 +17,35 @@ concurrency:
cancel-in-progress: true
jobs:
compile:
runs-on: ubuntu-latest-max
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: set up JDK 21
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: "temurin"
java-version: 21
- name: compile
run: |
echo "org.gradle.dependency.verification=lenient" >> gradle.properties
echo "org.gradle.jvmargs=-Xmx10g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" >> gradle.properties
echo "org.gradle.caching=true" >> gradle.properties
echo "org.gradle.parallel=true" >> gradle.properties
echo "org.gradle.configureondemand=true" >> gradle.properties
- uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Gradle Cache
uses: burrunan/gradle-cache-action@404534c34a2faa40430357a3183522a845b04f3b # v3.0.3
with:
job-id: assemble
arguments: assembleGeneric
flavor:
name: flavor (${{ matrix.flavor }})
runs-on: ubuntu-latest
needs: [compile]
strategy:
fail-fast: false
matrix:
flavor: [Generic, Gplay, Huawei]
include:
- flavor: Generic
tasks: assembleGenericDebug
- flavor: Gplay
tasks: assembleGplayDebug assembleGplayRelease
- flavor: Huawei
tasks: assembleHuaweiDebug
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: set up JDK 21
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: "temurin"
java-version: 21
- uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: compile
run: |
echo "org.gradle.dependency.verification=lenient" >> gradle.properties
echo "org.gradle.jvmargs=-Xmx10g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" >> gradle.properties
echo "org.gradle.caching=true" >> gradle.properties
echo "org.gradle.parallel=true" >> gradle.properties
echo "org.gradle.configureondemand=true" >> gradle.properties
- uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Gradle Cache
uses: burrunan/gradle-cache-action@404534c34a2faa40430357a3183522a845b04f3b # v3.0.3
with:
job-id: assemble
arguments: assemble${{ matrix.flavor }}
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: "temurin"
java-version: 21
- uses: gradle/actions/wrapper-validation@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
- name: Setup Gradle
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
- name: Build ${{ matrix.flavor }}
run: |
{
echo "org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=768m"
echo "kotlin.daemon.jvmargs=-Xmx3g -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m"
echo "org.gradle.workers.max=2"
} >> gradle.properties
./gradlew ${{ matrix.tasks }}
+40
View File
@@ -0,0 +1,40 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: Auto approve sync
on:
pull_request_target: # zizmor: ignore[dangerous-triggers]
branches:
- master
- main
types:
- opened
- reopened
- synchronize
- labeled
concurrency:
group: sync-approve-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
auto-approve:
name: Auto approve sync
runs-on: ubuntu-latest-low
if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
steps:
- name: Disabled on forks
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not approve PRs from forks'
exit 1
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
+36
View File
@@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
name: Check
on:
pull_request:
branches: [ master, stable-* ]
push:
branches: [ master ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: check-kotlin-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
task: [ detekt, spotlessKotlinCheck, lint ]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: "temurin"
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}
+66
View File
@@ -0,0 +1,66 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2026 Alper Ozturk <[email protected]>
# 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"
on:
push:
branches: [ "master", "main", "stable-*" ]
pull_request:
branches: [ "master", "main" ]
schedule:
- cron: '24 18 * * 3'
permissions:
contents: read
concurrency:
group: codeql-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest-max
timeout-minutes: 90
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
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@1fc58d04a4d4374f921bdac573c3811c240f9c26 # v4.39.2
with:
languages: ${{ matrix.language }}
- name: Set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: "temurin"
java-version: 25
- name: Assemble
run: |
mkdir -p "$HOME/.gradle"
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
./gradlew --no-daemon assembleDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@1fc58d04a4d4374f921bdac573c3811c240f9c26 # v4.39.2
+86
View File
@@ -0,0 +1,86 @@
#!/bin/sh
# Nextcloud Android Library
#
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
#
if [ $1 = "master" ]; then
SERVER_VERSION_MAIN="main"
SERVER_VERSION_MASTER="master"
else
SERVER_VERSION_MAIN=$1
SERVER_VERSION_MASTER=$1
fi
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
. ~/.bashrc; nvm install node
php /var/www/html/occ log:manage --level warning
OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1
OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2
OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3
OC_PASS=test php /var/www/html/occ user:add --password-from-env --display-name='Test@Test' test@test
OC_PASS=test php /var/www/html/occ user:add --password-from-env --display-name='Test Spaces' 'test test'
php /var/www/html/occ user:setting user2 files quota 1G
php /var/www/html/occ group:add users
php /var/www/html/occ group:adduser users user1
php /var/www/html/occ group:adduser users user2
php /var/www/html/occ group:adduser users test
git clone --depth=1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/activity.git /var/www/html/apps/activity/
php /var/www/html/occ app:enable -f activity
git clone --depth=1 -b $SERVER_VERSION_MAIN https://github.com/nextcloud/text.git /var/www/html/apps/text/
php /var/www/html/occ app:enable -f text
git clone --depth=1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/
php /var/www/html/occ app:enable -f end_to_end_encryption
git clone --depth=1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/password_policy.git /var/www/html/apps/password_policy/
php /var/www/html/occ app:enable -f password_policy
git clone --depth=1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/external.git /var/www/html/apps/external/
cd /var/www/html/apps/external; composer install --no-dev
php /var/www/html/occ app:enable -f external
php /var/www/html/occ config:app:set external sites --value="{\"1\":{\"id\":1,\"name\":\"Nextcloud\",\"url\":\"https:\/\/www.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",\"icon\":\"external.svg\",\"groups\":[],\"redirect\":false},\"2\":{\"id\":2,\"name\":\"Forum\",\"url\":\"https:\/\/help.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",\"icon\":\"external.svg\",\"groups\":[],\"redirect\":false}}"
git clone --depth=1 -b $SERVER_VERSION_MAIN https://github.com/nextcloud/files_lock.git /var/www/html/apps/files_lock/
php /var/www/html/occ app:enable -f files_lock
git clone --depth=1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/notifications.git /var/www/html/apps/notifications/
cd /var/www/html/apps/notifications; composer install --no-dev
php /var/www/html/occ app:enable -f notifications
if [ $1 = 'stable22' ]; then
php /var/www/html/occ notification:generate test test
else
php /var/www/html/occ notification:generate test -d test
fi
git clone --depth=1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/photos.git /var/www/html/apps/photos/
cd /var/www/html/apps/photos; composer install --no-dev
php /var/www/html/occ app:enable -f photos
git clone --depth=1 -b $SERVER_VERSION_MAIN https://github.com/nextcloud/assistant.git /var/www/html/apps/assistant/
cd /var/www/html/apps/assistant; . ~/.bashrc; make
php /var/www/html/occ app:enable -f assistant
php /var/www/html/occ app:enable -f testing
git clone --depth 1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/files_downloadlimit.git /var/www/html/apps/files_downloadlimit/
php /var/www/html/occ app:enable -f files_downloadlimit
git clone --depth 1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/recommendations.git /var/www/html/apps/recommendations/
cd /var/www/html/apps/recommendations; composer install --no-dev
php /var/www/html/occ app:enable -f recommendations
git clone --depth 1 -b $SERVER_VERSION_MASTER https://github.com/nextcloud/viewer.git /var/www/html/apps/viewer/
php /var/www/html/occ app:enable -f viewer
php /var/www/html/occ config:system:set ratelimit.protection.enabled --value false --type bool
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
# Nextcloud Android Library
#
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
#
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
apt-get update && apt-get install -y composer
mkdir /var/www/.nvm /var/www/.npm
mkdir /var/www/.cache/
touch /var/www/.bashrc
chown -R 33:33 /var/www/.nvm /var/www/.npm /var/www/.bashrc /var/www/.cache
cd /var/www/html/
rm data -rf
rm config/config.php
su www-data -c "git reset --hard"
BRANCH="$1" /usr/local/bin/initnc.sh
+43
View File
@@ -0,0 +1,43 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "Detect new java files"
on:
pull_request:
branches: [ master, main, stable-* ]
permissions: read-all
concurrency:
group: detect-new-java-files-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
detectNewJavaFiles:
runs-on: ubuntu-latest-low
steps:
- id: file_changes
uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4
with:
output: ','
- name: Detect new java files
run: |
if [ -z '${{ steps.file_changes.outputs.files_added }}' ]; then
echo "No new files added"
exit 0
fi
new_java=$(echo '${{ steps.file_changes.outputs.files_added }}' | tr ',' '\n' | grep '\.java$' | cat)
if [ -n "$new_java" ]; then
# shellcheck disable=SC2016
printf 'New java files detected:\n```\n%s\n```\n' "$new_java" | tee "$GITHUB_STEP_SUMMARY"
exit 1
else
echo "No new java files detected"
exit 0
fi
+30
View File
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
name: "Detect wrong settings"
on:
pull_request:
branches: [ master, stable-* ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: detect-wrong-settings-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
detectWrongSettings:
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: "temurin"
java-version: 21
- name: Detect SNAPSHOT
run: scripts/analysis/detectWrongSettings.sh
+103
View File
@@ -0,0 +1,103 @@
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: "Garm"
on:
pull_request:
branches: [ master, stable-* ]
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-26.04
services:
server:
image: ${{ matrix.server == 'stable22' && 'ghcr.io/nextcloud/continuous-integration-shallow-server-php8.0:1' || 'ghcr.io/nextcloud/continuous-integration-shallow-server-php8.3:latest' }}
options: --name server
ports:
- 80:80
strategy:
fail-fast: false
matrix:
server: [ stable22, stable35, master ]
api-level: [ 29 ] # [ 21, 36 ]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: configure server
run: |
sudo apt-get update && sudo apt-get install unzip cpu-checker qemu-system-x86 --yes
sudo chmod 666 /dev/kvm
docker cp .github/workflows/configServer.sh server:/tmp/
docker exec server chmod +x /tmp/configServer.sh
docker exec server /tmp/configServer.sh ${{ matrix.server }}
docker cp .github/workflows/configNC.sh server:/tmp/
docker exec server chmod +x /tmp/configNC.sh
docker exec --user www-data server /tmp/configNC.sh ${{ matrix.server }}
docker exec server /usr/local/bin/run.sh
- name: set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: "temurin"
java-version: 21
- name: Configure gradle daemon
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
- name: Config gplay
run: |
sed -i s#http://server#http://10.0.2.2# gradle.properties
sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- name: wait and ping server
run: |
while ! curl http://localhost/status.php 2>&1 | grep installed; do
echo "wait…"
sleep 5
done
- name: gplay
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
with:
api-level: ${{ matrix.api-level }}
cmake: 4.1.2
force-avd-creation: false
arch: x86_64
sdcard-path-or-size: 100M
ram-size: 4096M
heap-size: 512M
target: google_apis
emulator-options: -no-metrics -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
script: scripts/runCombinedTest.sh ${{github.event.number}} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} ${{github.event.number}} ${{ matrix.server }}
- name: upload failing results
if: ${{ failure() }}
env:
LOG_USERNAME: ${{ secrets.LOG_USERNAME }}
LOG_PASSWORD: ${{ secrets.LOG_PASSWORD }}
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} ${{ matrix.server }} "IT" ${{github.event.number}}
- name: Archive Espresso results
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: ${{ always() }}
with:
name: Report-${{ matrix.server }}-${{ matrix.api-level }}
path: app/build/reports
retention-days: 4
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
#
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later
#
## This file is intended to be sourced by other scripts
function err() {
echo >&2 "$@"
}
function curl_gh() {
if [[ -n "$GITHUB_TOKEN" ]]
then
curl \
--silent \
--header "Authorization: token $GITHUB_TOKEN" \
"$@"
else
err "WARNING: No GITHUB_TOKEN found. Skipping API call"
fi
}
+2
View File
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2019-2025 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
+39
View File
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Lint translation files
on:
pull_request:
branches: [ master, main, stable-* ]
push:
branches: [ master, main, stable-* ]
permissions:
contents: read
concurrency:
group: lint-php-cs-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest-low
name: translations-string-xml
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check for new lines in translation strings
id: counter
run: |
grep -P '<string name' app/src/main/res/values/strings.xml | grep -vcP '</string>' | grep '^0$'
- name: Output
if: failure()
run: |
grep -P '<string name' app/src/main/res/values/strings.xml | grep -vP '</string>'
+55
View File
@@ -0,0 +1,55 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Marcel Klehr <[email protected]>
# SPDX-FileCopyrightText: 2023 Joas Schilling <[email protected]>
# SPDX-FileCopyrightText: 2023 Daniel Kesselberg <[email protected]>
# SPDX-FileCopyrightText: 2023 Florian Steffens <[email protected]>
# SPDX-License-Identifier: MIT
name: 'Ask for feedback on PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
contents: read
pull-requests: write
jobs:
pr-feedback:
if: ${{ github.repository_owner == 'nextcloud' }}
runs-on: ubuntu-latest-low
steps:
- name: The get-github-handles-from-website action
uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1
id: scrape
with:
website: 'https://nextcloud.com/team/'
- name: Get blocklist
id: blocklist
run: |
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
- uses: nextcloud/pr-feedback-action@4738cf661995d96df3512409ec17c900a4081d33 # main
with:
feedback-message: |
Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.
Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6
Thank you for contributing to Nextcloud and we hope to hear from you soon!
(If you believe you should not receive this message, you can add yourself to the [blocklist](https://github.com/nextcloud/.github/blob/master/non-community-usernames.txt).)
days-before-feedback: 14
start-date: '2024-04-30'
exempt-authors: '${{ steps.blocklist.outputs.blocklist }},${{ steps.scrape.outputs.users }}'
exempt-bots: true
+116
View File
@@ -0,0 +1,116 @@
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2026 Alper Ozturk <[email protected]>
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-License-Identifier: MIT
name: "QA"
on:
pull_request:
branches: [ main, master, stable-* ]
permissions:
pull-requests: write
contents: read
concurrency:
group: qa-build-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
qa:
runs-on: ubuntu-latest-max
steps:
- name: Check if secrets are available
run: echo "ok=${{ secrets.KS_PASS != '' }}" >> "$GITHUB_OUTPUT"
id: check-secrets
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
with:
persist-credentials: false
- name: set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
with:
distribution: "temurin"
java-version: 25
- name: Build QA
id: build-qa
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
env:
KS_PASS: ${{ secrets.KS_PASS }}
KEY_PASS: ${{ secrets.KEY_PASS }}
LOG_USERNAME: ${{ secrets.LOG_USERNAME }}
LOG_PASSWORD: ${{ secrets.LOG_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p "$HOME/.gradle"
{
echo "org.gradle.jvmargs=-Xmx3g -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"
} > "$HOME/.gradle/gradle.properties"
[ -e app/build.gradle ] && sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" "app/build.gradle"
[ -e app/build.gradle ] && sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" "app/build.gradle"
[ -e app/build.gradle.kts ] && sed -i "/qa/,/\}/ s/versionCode .*/versionCode = ${{github.event.number}} /" "app/build.gradle.kts"
[ -e app/build.gradle.kts ] && sed -i "/qa/,/\}/ s/versionName .*/versionName = \"${{github.event.number}}\"/" "app/build.gradle.kts"
./gradlew assembleQaDebug
$(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign --ks-pass pass:"$KS_PASS" --key-pass pass:"$KEY_PASS" --ks-key-alias key0 --ks ".github/workflows/QA_keystore.jks" app/build/outputs/apk/qa/debug/*qa-debug*.apk
apk=$(find app/build/outputs/apk/qa/debug -name '*qa-debug*.apk' | head -n1)
{
echo "apk-path=$apk"
echo "apk-name=$(basename "$apk")"
echo "apk-size=$(du -h "$apk" | cut -f1)"
} >> "$GITHUB_OUTPUT"
- name: Upload APK
id: upload-apk
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
path: app/build/outputs/apk/qa/debug/*qa-debug*.apk
retention-days: 7
archive: false
- name: Create QR Code
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
env:
ARTIFACT_URL: ${{ steps.upload-apk.outputs.artifact-url }}
run: |
sudo apt-get -y install qrencode
qrencode -s 8 -o qr.png "$ARTIFACT_URL"
- name: Upload QR
id: upload-qr
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
path: qr.png
if-no-files-found: error
retention-days: 7
archive: false
- name: Comment PR
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
uses: thollander/actions-comment-pull-request@e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa
with:
comment-tag: qa-apk
mode: upsert
message: |
### :iphone: QA build
| | |
|---|---|
| **Download** | [${{ steps.build-qa.outputs.apk-name }}](${{ steps.upload-apk.outputs.artifact-url }}) |
| **QR code** | [Open the QR code for this download](${{ steps.upload-qr.outputs.artifact-url }}) |
| **Commit** | ${{ github.event.pull_request.head.sha }} |
| **Version** | `${{ github.event.number }}` |
| **Available until** | 7 days after this build |
The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.
Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.
@@ -0,0 +1,61 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Auto approve renovate PRs
on:
pull_request_target: # zizmor: ignore[dangerous-triggers]
branches:
- main
- master
- stable*
permissions:
contents: read
concurrency:
group: renovate-approve-merge-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
auto-approve-merge:
if: github.event.pull_request.user.login == 'renovate[bot]'
runs-on: ubuntu-latest-low
permissions:
# for hmarr/auto-approve-action to approve PRs
pull-requests: write
steps:
- name: Disabled on forks
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not approve PRs from forks'
exit 1
- uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
id: branchname
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# GitHub actions bot approve
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
if: github.actor == 'renovate[bot]'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.head_ref }}
# Enable GitHub auto merge
- name: Enable Pull Request Automerge
if: github.actor == 'renovate[bot]'
run: gh pr merge --merge --auto
env:
GH_TOKEN: ${{ secrets.AUTOMERGE }}
+27
View File
@@ -0,0 +1,27 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0
name: REUSE Compliance Check
on: [pull_request]
permissions:
contents: read
jobs:
reuse-compliance-check:
runs-on: ubuntu-latest-low
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: REUSE Compliance Check
uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
+47
View File
@@ -0,0 +1,47 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: Scorecard supply-chain security
on:
branch_protection_rule:
schedule:
- cron: '32 23 * * 4'
push:
branches: [ "main", "master" ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: scorecard-supply-chain-security-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
steps:
- name: "Checkout code"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
with:
results_file: results.sarif
results_format: sarif
publish_results: false
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@1fc58d04a4d4374f921bdac573c3811c240f9c26 # v4.39.2
with:
sarif_file: results.sarif
+35
View File
@@ -0,0 +1,35 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: 'Close stale issues'
on:
schedule:
- cron: '0 0 * * *'
# Declare default permissions as read only.
permissions: read-all
jobs:
stale:
runs-on: ubuntu-latest-low
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
days-before-stale: 28
days-before-close: 14
days-before-pr-close: -1
only-labels: 'bug,needs info'
exempt-issue-labels: 'no-stale'
stale-issue-message: >-
This bug report did not receive an update in the last 4 weeks.
Please take a look again and update the issue with new details,
otherwise the issue will be automatically closed in 2 weeks. Thank you!
exempt-all-pr-milestones: true
labels-to-remove-when-unstale: 'needs info'
+64
View File
@@ -0,0 +1,64 @@
# SPDX-FileCopyrightText: 2022-2025 Nextcloud GmbH and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
name: Unit tests
on:
pull_request:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
permissions:
contents: read
pull-requests: write
concurrency:
group: unit-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up JDK 21
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: "temurin"
java-version: 21
- name: Delete old comments
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ always() }}
run: scripts/deleteOldComments.sh "test" "Unit" ${{github.event.number}}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
- name: Run unit tests with coverage
run: ./gradlew jacocoTestGplayDebugUnitTest
- name: Upload failing results
if: ${{ failure() }}
env:
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@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
fail_ci_if_error: true
files: app/build/reports/jacoco/jacocoTestGplayDebugUnitTestReport/jacoco.xml
- name: Upload jacoco artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: test-results
path: app/build/reports/jacoco/jacocoTestGplayDebugUnitTestReport/html/
+44
View File
@@ -0,0 +1,44 @@
#!/usr/bin/env bash
#
# SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2019-2022 Tobias Kaminsky <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later
#
#1: LOG_USERNAME
#2: LOG_PASSWORD
#3: DRONE_BUILD_NUMBER
#4: DRONE_PULL_REQUEST
PUBLIC_URL=https://www.kaminsky.me/nc-dev/android-artifacts
USER=$1
PASS=$2
BUILD=$3
PR=$4
GITHUB_TOKEN=$5
DAV_URL=https://nextcloud.kaminsky.me/remote.php/dav/files/$USER/android-artifacts/
source .github/workflows/lib.sh
REPO=$(cat scripts/repo)
if ! test -e app/build/outputs/apk/qa/debug/*qa-debug*.apk ; then
exit 1
fi
echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
# delete all old comments, starting with "APK file:"
oldComments=$(curl_gh -X GET https://api.github.com/repos/nextcloud/$REPO/issues/$PR/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("github-actions") | tostring) + "|" + (.body | test("APK file:.*") | tostring)' | grep "true|true" | tr -d "\"" | cut -f1 -d"|")
echo $oldComments | while read comment ; do
curl_gh -X DELETE https://api.github.com/repos/nextcloud/$REPO/issues/comments/$comment
done
sudo apt-get -y install qrencode
qrencode -o $PR.png "$PUBLIC_URL/$BUILD.apk"
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.apk --upload-file app/build/outputs/apk/qa/debug/*qa-debug*.apk
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.png --upload-file $PR.png
curl_gh -X POST https://api.github.com/repos/nextcloud/$REPO/issues/$PR/comments -d "{ \"body\" : \"APK file: $PUBLIC_URL/$BUILD.apk <br/><br/> ![qrcode]($PUBLIC_URL/$BUILD.png) <br/><br/>To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app. \" }"
+1
View File
@@ -60,6 +60,7 @@ build
/gradle.properties
.attach_pid*
fastlane/Fastfile
fastlane/ruby
*.hprof
# NDK / C++
+18
View File
@@ -37,6 +37,14 @@ Java, Kotlin, XML, Jetpack Compose are the key technologies used for building th
Project-specific skills live in `./.claude/skills/<skill-name>/`. Load a skill when the task matches its trigger.
- **`android-java-to-kotlin`** (`./.claude/skills/android-java-to-kotlin/SKILL.md`) — Completes a Java-to-Kotlin conversion in this Android app. Use it when finishing a conversion, when the user mentions "java to kotlin", "j2k", "convert java", or "make it idiomatic", or when a freshly IDE-converted `.kt` file needs cleanup. The workflow is two-person: the developer first runs the Android Studio converter (`Code > Convert Java File to Kotlin File`), then the agent drives the idiomatic second pass — fail-fast control flow, function decomposition, `lifecycleScope`/coroutines instead of Java threads, modern Android APIs, and project conventions (SPDX headers, no magic numbers, `@JvmStatic`). The conversion must preserve behaviour, and the agent must write a behaviour-locking test before declaring it done.
- **`android-activity-to-navigator-fragment`** (`./.claude/skills/android-activity-to-navigator-fragment/SKILL.md`) — Converts a standalone Activity (typically a drawer destination) into a Fragment hosted by `NavigatorActivity`. Use it when the user mentions "navigator", `NavigatorActivity`, `NavigatorScreen`, or "convert activity to fragment". It covers registering the `NavigatorScreen`, the fragment and its layout, decoupling collaborators from `FileActivity`, rewiring every entry point with `NavigatorActivity.intent(...)`, DI and manifest cleanup, and migrating the screenshot test.
- **`android-eventbus-to-workmanager-flow`** (`./.claude/skills/android-eventbus-to-workmanager-flow/SKILL.md`) — Replaces an EventBus event posted by a WorkManager worker with WorkManager observation through a ViewModel `Flow`. Use it when the user mentions "event bus", `EventBusFactory`, `@Subscribe`, "worker progress", or "observe worker". It covers publishing with `setProgress`, a ViewModel keyed by the unique work name, `ViewModelModule` registration, collecting from Kotlin or Java (`collectWhenStarted`) and deleting the event. The live example is `FileDetailFragmentViewModel`.
### Android Skills
Agent skills for Android development at https://github.com/android/skills (overview: https://developer.android.com/tools/agents/android-skills). Use them when a task matches their trigger and no project-specific skill above covers it. Install one with the Android CLI (`android skills add <skill-name>`) or read its `SKILL.md` directly from the repository. Project-specific skills and the rules in this file take precedence over the official skills.
- **`r8-analyzer`** (https://github.com/android/skills/tree/main/performance/r8-analyzer) — Analyzes the R8 configuration and keep rules for redundant, overly broad, or library-subsumed rules. Use it when changing the keep rules in `app/src/main/keepRules/` or the `optimization {}` blocks in `app/build.gradle.kts`.
## General Guidance
@@ -95,6 +103,16 @@ Use `StateFlow` and `MutableStateFlow` in ViewModels for state management. Colle
Uses Dagger 2 for major Android components (`Activity`, `Fragment`, `Service`, `BroadcastReceiver`, `ContentProvider`). Manual constructor injection for other components.
### Network Clients
Get `OwnCloudClient` and `NextcloudClient` instances from `ClientRepository` (`com.nextcloud.repository`), never from `ClientFactory`.
`ClientFactory` is deprecated and being phased out; do not add new usages of it, and replace it with `ClientRepository` when touching code that still uses it.
- Inject `ClientRepository` with Dagger (`@Inject lateinit var clientRepository: ClientRepository`); it is bound to `RemoteClientRepository`, which resolves the current user via `UserAccountManager` on every call.
- Activities extending `BaseActivity` already expose it via `getClientRepository()`.
- Prefer the `suspend` functions `getOwncloudClient()` / `getNextcloudClient()` from a lifecycle-aware scope (`lifecycleScope`, `viewModelScope`); they switch to `Dispatchers.IO` and return `null` on failure, so handle `null` instead of catching exceptions.
- Do not construct `RemoteClientRepository` manually.
### Extension Functions
The `com.nextcloud.utils.extensions` package contains helper extensions organized by type (e.g., `FileExtensions.kt`, `StringExtensions.kt`, `ViewExtensions.kt`). Create focused extension files rather than putting multiple types in one file.
+3 -6
View File
@@ -1,10 +1,7 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
source "https://rubygems.org"
gem 'fastlane'
gem "fastlane"
gem "abbrev"
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
plugins_path = File.join(File.dirname(__FILE__), '.', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
+50 -45
View File
@@ -8,8 +8,8 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.4.0)
aws-partitions (1.1281.0)
aws-sdk-core (3.254.1)
aws-partitions (1.1290.0)
aws-sdk-core (3.257.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
@@ -17,11 +17,12 @@ GEM
bigdecimal
jmespath (~> 1, >= 1.6.1)
logger
aws-sdk-kms (1.130.0)
aws-sdk-core (~> 3, >= 3.254.0)
rexml (~> 3.4, >= 3.4.2)
aws-sdk-kms (1.132.0)
aws-sdk-core (~> 3, >= 3.256.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.229.0)
aws-sdk-core (~> 3, >= 3.254.1)
aws-sdk-s3 (1.232.2)
aws-sdk-core (~> 3, >= 3.256.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.12.1)
@@ -29,8 +30,8 @@ GEM
babosa (1.0.4)
base64 (0.3.0)
benchmark (0.5.0)
bigdecimal (3.3.1)
cgi (0.4.2)
bigdecimal (4.1.3)
cgi (0.5.2)
claide (1.1.0)
colored (1.2)
colored2 (3.1.2)
@@ -40,12 +41,13 @@ GEM
declarative (0.0.20)
digest-crc (0.7.0)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.6.20240107)
domain_name (0.6.20260921)
dotenv (2.8.1)
emoji_regex (3.2.3)
erb (6.0.7)
excon (0.112.0)
faraday (2.14.3)
excon (1.7.1)
logger
faraday (2.14.4)
faraday-net_http (>= 2.0, < 3.5)
json
logger
@@ -56,11 +58,12 @@ GEM
faraday (>= 1, < 3)
faraday-multipart (1.2.0)
multipart-post (~> 2.0)
faraday-net_http (2.1.0)
faraday-net_http (3.4.4)
net-http (~> 0.5)
faraday-retry (2.4.0)
faraday (~> 2.0)
fastimage (2.4.1)
fastlane (2.238.0)
fastlane (2.240.1)
CFPropertyList (>= 2.3, < 5.0.0)
abbrev (~> 0.1)
addressable (>= 2.9.0, < 3.0.0)
@@ -70,6 +73,7 @@ GEM
base64 (~> 0.2)
benchmark (>= 0.1.0)
bundler (>= 2.4.0, < 5.0.0)
cgi (~> 0.4)
colored (~> 1.2)
commander (~> 4.6)
csv (~> 3.3)
@@ -84,12 +88,11 @@ GEM
fastimage (>= 2.1.0, < 3.0.0)
fastlane-sirp (>= 1.1.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-apis-androidpublisher_v3 (~> 0.3)
google-apis-androidpublisher_v3 (~> 0.99)
google-apis-playcustomapp_v1 (~> 0.1)
google-cloud-env (>= 1.6.0, < 2.3.0)
google-cloud-env (>= 1.6.0, < 2.4.0)
google-cloud-storage (~> 1.31)
highline (~> 2.0)
http-cookie (~> 1.0.5)
irb (>= 1.8)
json (< 3.0.0)
jwt (>= 2.10.3, < 4)
@@ -103,8 +106,8 @@ GEM
optparse (>= 0.1.1, < 1.0.0)
ostruct (>= 0.1.0)
plist (>= 3.1.0, < 4.0.0)
rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.5)
rubyzip (>= 3.4.0, < 4.0.0)
security (~> 0.3)
simctl (~> 1.6.3)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (~> 4)
@@ -114,30 +117,29 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.4.1)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-huawei_appgallery_connect (1.0.31)
cgi
fastlane-sirp (1.1.0)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.106.0)
google-apis-androidpublisher_v3 (0.109.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-core (0.18.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 1.9)
httpclient (>= 2.8.3, < 3.a)
mini_mime (~> 1.0)
mutex_m
google-apis-core (1.2.5)
addressable (~> 2.9)
faraday (~> 2.13)
faraday-follow_redirects (~> 0.3)
googleauth (~> 1.14)
mini_mime (~> 1.1)
multi_json (~> 1.11)
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
retriable (>= 3.1, < 5.0)
google-apis-iamcredentials_v1 (0.28.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-playcustomapp_v1 (0.18.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-storage_v1 (0.66.0)
google-apis-storage_v1 (0.68.0)
google-apis-core (>= 0.15.0, < 2.a)
google-cloud-core (1.9.0)
google-cloud-env (>= 1.0, < 3.a)
google-cloud-errors (~> 1.0)
google-cloud-env (2.2.2)
google-cloud-env (2.3.1)
base64 (~> 0.2)
faraday (>= 1.0, < 3.a)
google-cloud-errors (1.7.0)
@@ -151,7 +153,7 @@ GEM
googleauth (~> 1.9)
mini_mime (~> 1.0)
google-logging-utils (0.2.0)
googleauth (1.17.3)
googleauth (1.17.4)
faraday (>= 1.0, < 3.a)
google-cloud-env (~> 2.2)
google-logging-utils (~> 0.1)
@@ -160,11 +162,9 @@ GEM
pstore (~> 0.1)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.8)
http-cookie (1.1.6)
domain_name (~> 0.5)
httpclient (2.9.0)
mutex_m
io-console (0.9.2)
io-console (0.9.4)
irb (1.18.0)
pp (>= 0.6.0)
prism (>= 1.3.0)
@@ -172,16 +172,18 @@ GEM
reline (>= 0.4.2)
jmespath (1.6.2)
json (2.21.2)
jwt (2.10.3)
jwt (3.3.0)
base64
logger (1.7.0)
mini_magick (4.13.2)
mini_mime (1.1.5)
multi_json (1.21.1)
multi_json (1.21.2)
multipart-post (2.4.1)
mutex_m (0.3.0)
nanaimo (0.4.0)
naturally (2.3.0)
net-http (0.9.1)
uri (>= 0.11.1)
nkf (0.3.0)
optparse (0.8.1)
os (1.1.4)
@@ -192,9 +194,9 @@ GEM
prettyprint (0.2.0)
prism (1.9.0)
pstore (0.2.1)
public_suffix (6.0.2)
public_suffix (7.0.5)
rake (13.4.2)
rbs (4.1.3)
rbs (4.2.0)
logger
prism (>= 1.6.0)
tsort
@@ -205,15 +207,15 @@ GEM
tsort
reline (0.7.0)
io-console (~> 0.5)
representable (3.2.0)
representable (3.3.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.8.0)
retriable (4.2.0)
rexml (3.4.4)
rouge (3.28.0)
rubyzip (2.4.1)
security (0.1.5)
rubyzip (3.7.0)
security (0.3.0)
signet (0.22.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
@@ -231,7 +233,10 @@ GEM
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
uber (0.1.0)
unicode-display_width (2.6.0)
unicode-display_width (3.3.0)
unicode-emoji (~> 4.3)
unicode-emoji (4.3.0)
uri (1.1.1)
word_wrap (1.0.0)
xcodeproj (1.28.1)
CFPropertyList (>= 2.3.3, < 4.0)
@@ -251,8 +256,8 @@ PLATFORMS
x86_64-linux
DEPENDENCIES
abbrev
fastlane
fastlane-plugin-huawei_appgallery_connect
BUNDLED WITH
2.5.4
+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://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)
[![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) [![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"
-1
View File
@@ -6,7 +6,6 @@
[![حالة REUSE](https://api.reuse.software/badge/github.com/nextcloud/android)](https://api.reuse.software/info/github.com/nextcloud/android)
[![حالة البناء](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android)
[![تقييم Codacy](https://app.codacy.com/project/badge/Grade/fb4cf26336774ee3a5c9adfe829c41aa)](https://app.codacy.com/gh/nextcloud/android/dashboard)
[![الإصدارات](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="تحميل من Google Play" height="80">](https://play.google.com/store/apps/details?id=com.nextcloud.client)
+25 -40
View File
@@ -13,13 +13,17 @@ import com.github.spotbugs.snom.SpotBugsTask
import com.karumi.shot.ShotExtension
import org.gradle.internal.jvm.Jvm
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import java.io.FileInputStream
import java.util.Properties
val shotTest = System.getenv("SHOT_TEST") == "true"
val ciBuild = System.getenv("CI") == "true"
val perfAnalysis = project.hasProperty("perfAnalysis")
val allAbis = listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
val localDebugAbis = when (System.getProperty("os.arch")) {
"aarch64", "arm64" -> listOf("arm64-v8a")
else -> listOf("arm64-v8a", "x86_64")
}
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
@@ -68,12 +72,6 @@ configurations.configureEach {
}
}
// semantic versioning for version code
val versionMajor = 35
val versionMinor = 0
val versionPatch = 0
val versionBuild = 50 // 0-50=Alpha / 51-98=RC / 90-99=stable
val ndkEnv = buildMap {
file("${project.rootDir}/ndk.env").readLines().forEach {
val (key, value) = it.split("=")
@@ -81,14 +79,9 @@ val ndkEnv = buildMap {
}
}
val configProps = Properties().apply {
val file = rootProject.file("gradle.properties")
if (file.exists()) load(FileInputStream(file))
}
val ncTestServerUsername = configProps["NC_TEST_SERVER_USERNAME"]
val ncTestServerPassword = configProps["NC_TEST_SERVER_PASSWORD"]
val ncTestServerBaseUrl = configProps["NC_TEST_SERVER_BASEURL"]
val ncTestServerUsername = providers.gradleProperty("NC_TEST_SERVER_USERNAME").get()
val ncTestServerPassword = providers.gradleProperty("NC_TEST_SERVER_PASSWORD").get()
val ncTestServerBaseUrl = providers.gradleProperty("NC_TEST_SERVER_BASEURL").get()
android {
// install this NDK version and CMake to produce smaller APKs. Build will still work if not installed
@@ -114,12 +107,12 @@ android {
)
applicationId = "com.nextcloud.client"
minSdk = 28
targetSdk = 36
compileSdk = 37
ndk {
abiFilters += listOf("arm64-v8a", "x86_64")
}
targetSdk = 36
// mayor.minor.hotfix.increment (for increment: 01-50=Alpha / 51-89=RC / 90-99=stable)
// xx .xxx .xx .xx
versionCode = 350010050
versionName = "35.1.0 Alpha 51"
buildConfigField("boolean", "CI", ciBuild.toString())
buildConfigField("boolean", "RUNTIME_PERF_ANALYSIS", perfAnalysis.toString())
@@ -128,13 +121,6 @@ android {
testInstrumentationRunner = if (shotTest) "com.karumi.shot.ShotTestRunner"
else "com.nextcloud.client.TestRunner"
versionCode = versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName = when {
versionBuild > 89 -> "${versionMajor}.${versionMinor}.${versionPatch}"
versionBuild > 50 -> "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
else -> "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
@@ -142,13 +128,21 @@ android {
buildTypes {
release {
optimization {
enable = true
}
buildConfigField("String", "NC_TEST_SERVER_DATA_STRING", "\"\"")
ndk {
abiFilters += allAbis
}
}
debug {
enableUnitTestCoverage = project.hasProperty("coverage")
enableAndroidTestCoverage = project.hasProperty("coverage")
resConfigs("xxxhdpi")
ndk {
abiFilters += if (ciBuild) allAbis else localDebugAbis
}
}
}
@@ -199,7 +193,6 @@ android {
buildFeatures {
buildConfig = true
dataBinding = true
viewBinding = true
aidl = true
compose = true
@@ -324,10 +317,7 @@ tasks.withType<SpotBugsTask>().configureEach {
}
}
// Run the compiler as a separate process
tasks.withType<JavaCompile>().configureEach {
options.isFork = true
// Enable Incremental Compilation
options.isIncremental = true
}
@@ -409,6 +399,7 @@ dependencies {
// region Lifecycle
implementation(libs.lifecycle.viewmodel.ktx)
implementation(libs.lifecycle.process)
implementation(libs.lifecycle.service)
implementation(libs.lifecycle.runtime.ktx)
// endregion
@@ -426,7 +417,6 @@ dependencies {
testImplementation(libs.kotlinx.coroutines.test)
// region other libraries
compileOnly(libs.org.jbundle.util.osgi.wrapped.org.apache.http.client)
implementation(libs.commons.httpclient.commons.httpclient) // remove after entire switch to lib v2
implementation(libs.jackrabbit.webdav) // remove after entire switch to lib v2
implementation(libs.constraintlayout)
@@ -438,14 +428,12 @@ dependencies {
implementation(libs.commons.io)
implementation(libs.eventbus)
implementation(libs.ez.vcard)
implementation(libs.nnio)
implementation(libs.bcpkix.jdk18on)
implementation(libs.gson)
implementation(libs.sectioned.recyclerview)
implementation(libs.photoview)
implementation(libs.android.gif.drawable)
implementation(libs.qrcodescanner) // "com.github.blikoon:QRCodeScanner:0.1.2"
implementation(libs.flexbox)
implementation(libs.androidsvg)
implementation(libs.annotation)
implementation(libs.emoji.google)
@@ -526,10 +514,7 @@ dependencies {
// region Kotlin
implementation(libs.kotlin.stdlib)
// endregion
// region Stateless
implementation(libs.stateless4j)
implementation(libs.kotlinx.coroutines.core)
// endregion
// region Google Play dependencies, upon each update first test: new registration, receive push
+10 -10
View File
@@ -53,9 +53,9 @@ complexity:
active: false
threshold: 10
includeStaticDeclarations: false
ComplexMethod:
CyclomaticComplexMethod:
active: true
threshold: 10
threshold: 15
ignoreSingleWhenExpression: false
ignoreSimpleWhenEntries: false
excludes: ['**/androidTest/**']
@@ -67,10 +67,10 @@ complexity:
threshold: 600
LongMethod:
active: true
threshold: 60
threshold: 120
excludes: ['**/androidTest/**']
LongParameterList:
active: true
active: false
functionThreshold: 7
constructorThreshold: 6
ignoreDefaultParameters: false
@@ -87,7 +87,7 @@ complexity:
excludeStringsWithLessThan5Characters: true
ignoreStringsRegex: '$^'
TooManyFunctions:
active: true
active: false
thresholdInFiles: 15
thresholdInClasses: 15
thresholdInInterfaces: 15
@@ -158,7 +158,7 @@ exceptions:
ThrowingNewInstanceOfSameException:
active: false
TooGenericExceptionCaught:
active: true
active: false
exceptionNames:
- ArrayIndexOutOfBoundsException
- Error
@@ -170,7 +170,7 @@ exceptions:
- Throwable
allowedExceptionNameRegex: "^(_|(ignore|expected).*)"
TooGenericExceptionThrown:
active: true
active: false
exceptionNames:
- Error
- Exception
@@ -226,7 +226,7 @@ naming:
active: true
packagePattern: '^[a-z]+(\.[a-z][A-Za-z0-9]*)*$'
TopLevelPropertyNaming:
active: true
active: false
constantPattern: '[A-Z][_A-Z0-9]*'
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
privatePropertyPattern: '(_)?[A-Za-z][A-Za-z0-9]*'
@@ -346,7 +346,7 @@ style:
NestedClassesVisibility:
active: false
NewLineAtEndOfFile:
active: true
active: false
NoTabs:
active: false
OptionalAbstractKeyword:
@@ -362,7 +362,7 @@ style:
RedundantVisibilityModifierRule:
active: false
ReturnCount:
active: true
active: false
max: 2
excludedFunctions: [equals]
excludeLabeled: false
+10 -1
View File
@@ -15,7 +15,6 @@
</issue>
<issue id="InvalidPackage">
<ignore path="**/freemarker-2.*.*.jar" />
<ignore path="**/nnio-0.2.jar"/>
<ignore path="**/bcpkix-jdk15on-1.69.jar" />
</issue>
@@ -76,6 +75,11 @@
<ignore path="build" />
</issue>
<!-- Dagger factories generated for media3 @UnstableApi types cannot carry an @OptIn annotation. -->
<issue id="UnsafeOptInUsageError" severity="error">
<ignore path="build" />
</issue>
<issue id="ObsoleteLintCustomCheck" severity="warning">
<ignore path="**/fragment-1.2.5/**/lint.jar" />
<ignore path="**/work-runtime-2.**/**/lint.jar" />
@@ -86,6 +90,11 @@
<ignore path="**/appcompat-1.**/**/lint.jar" />
</issue>
<!-- Lint reads abiFilters as source text and cannot resolve allAbis; local debug builds skip x86 on purpose. -->
<issue id="ChromeOsAbiSupport">
<ignore path="build.gradle.kts" />
</issue>
<issue id="Aligned16KB">
<ignore path="**/arm64-v8a/libmockkjvmtiagent.so" />
</issue>
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
@@ -99,7 +99,7 @@ class ActivitiesFragmentIT : AbstractIT() {
fun showActivities() {
val capability = OCCapability()
capability.versionMayor = 20
fileDataStorageManager.saveCapabilities(capability)
storageManager.saveCapabilities(capability)
val date = GregorianCalendar()
date.set(2005, 4, 17, 10, 35, 30)
@@ -8,37 +8,51 @@
*/
package com.nextcloud.client
import android.content.Intent
import android.os.Looper
import android.view.View
import androidx.appcompat.app.AlertDialog
import androidx.test.core.app.launchActivity
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.isRoot
import com.nextcloud.client.preferences.SubFolderRule
import com.owncloud.android.AbstractIT
import com.owncloud.android.R
import com.owncloud.android.datamodel.MediaFolderType
import com.owncloud.android.datamodel.SyncedFolder
import com.owncloud.android.datamodel.SyncedFolderDisplayItem
import com.owncloud.android.ui.activity.SyncedFoldersActivity
import com.owncloud.android.ui.dialog.SyncedFolderPreferencesDialogFragment.Companion.newInstance
import com.owncloud.android.ui.fragment.autoUpload.AutoUploadFragment
import com.owncloud.android.ui.navigation.NavigatorActivity
import com.owncloud.android.ui.navigation.NavigatorScreen
import com.owncloud.android.utils.ScreenshotTest
import org.junit.Test
class SyncedFoldersActivityIT : AbstractIT() {
private val testClassName = "com.nextcloud.client.SyncedFoldersActivityIT"
class AutoUploadFragmentIT : AbstractIT() {
private val testClassName = "com.nextcloud.client.AutoUploadFragmentIT"
private fun findFragment(sut: NavigatorActivity): AutoUploadFragment =
sut.supportFragmentManager.fragments.filterIsInstance<AutoUploadFragment>().firstOrNull()
?: throw IllegalStateException("AutoUploadFragment not found in NavigatorActivity!")
private fun launch(block: (ActivityScenario<NavigatorActivity>) -> Unit) {
val intent = NavigatorActivity.intent(targetContext, NavigatorScreen.AutoUpload)
ActivityScenario.launch<NavigatorActivity>(intent).use(block)
}
@Test
@ScreenshotTest
fun open() {
launchActivity<SyncedFoldersActivity>().use { scenario ->
launch { scenario ->
val screenShotName = createName(testClassName + "_" + "open", "")
onView(isRoot()).check(matches(isDisplayed()))
scenario.onActivity { sut ->
sut.adapter.clear()
screenshotViaName(sut.binding.emptyList.emptyListView, screenShotName)
val fragment = findFragment(sut)
fragment.adapter.clear()
val emptyListView = fragment.requireView().findViewById<View>(R.id.empty_list_view)
screenshotViaName(emptyListView, screenShotName)
}
}
}
@@ -67,15 +81,15 @@ class SyncedFoldersActivityIT : AbstractIT() {
SyncedFolder.NOT_SCANNED_YET
)
val intent = Intent(targetContext, SyncedFoldersActivity::class.java)
launchActivity<SyncedFoldersActivity>(intent).use { scenario ->
launch { scenario ->
val screenShotName = createName(testClassName + "_" + "testSyncedFolderDialog", "")
onView(isRoot()).check(matches(isDisplayed()))
scenario.onActivity { sut ->
val fragment = newInstance(item, 0)
fragment!!.show(sut.supportFragmentManager, "")
screenshot(fragment.requireDialog().window?.decorView, screenShotName)
val dialog = newInstance(item, 0) ?: throw IllegalStateException("Dialog could not be created")
dialog.show(findFragment(sut).childFragmentManager, "")
findFragment(sut).childFragmentManager.executePendingTransactions()
screenshot(dialog.requireDialog().window?.decorView, screenShotName)
}
}
}
@@ -87,18 +101,17 @@ class SyncedFoldersActivityIT : AbstractIT() {
Looper.prepare()
}
val intent = Intent(targetContext, SyncedFoldersActivity::class.java)
launchActivity<SyncedFoldersActivity>(intent).use { scenario ->
launch { scenario ->
var dialog: AlertDialog? = null
scenario.onActivity { sut ->
dialog = sut.buildPowerCheckDialog()
sut.showPowerCheckDialog()
val fragment = findFragment(sut)
dialog = fragment.buildPowerCheckDialog()
fragment.showPowerCheckDialog()
}
val screenShotName = createName(testClassName + "_" + "showPowerCheckDialog", "")
onView(isRoot()).check(matches(isDisplayed()))
screenshot(dialog!!.window?.decorView, screenShotName)
screenshot(dialog?.window?.decorView, screenShotName)
}
}
}
@@ -37,7 +37,7 @@ import com.owncloud.android.lib.resources.shares.OCShare
import com.owncloud.android.lib.resources.shares.ShareType
import com.owncloud.android.operations.CreateFolderOperation
import com.owncloud.android.ui.activity.FileDisplayActivity
import com.owncloud.android.ui.adapter.OCFileListItemViewHolder
import com.owncloud.android.ui.adapter.filelist.item.OCFileListItemViewHolder
import com.owncloud.android.utils.EspressoIdlingResource
import org.hamcrest.Matchers.allOf
import org.junit.After
@@ -23,6 +23,7 @@ import com.owncloud.android.R
import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.ui.activity.FileDisplayActivity
import com.owncloud.android.ui.fragment.EmptyListState
import com.owncloud.android.ui.fragment.FabState
import com.owncloud.android.utils.ScreenshotTest
import org.junit.Assert
import org.junit.Rule
@@ -48,7 +49,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
scenario.onActivity { sut ->
sut.run {
listOfFilesFragment?.let {
it.setFabEnabled(false)
it.setFabState(FabState.DISABLED)
resetScrolling(true)
it.setEmptyListMessage(EmptyListState.LOADING)
it.isLoading = false
@@ -78,7 +79,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
activity = sut
val fragment = sut.listOfFilesFragment
Assert.assertNotNull(fragment)
fragment!!.setFabEnabled(false)
fragment!!.setFabState(FabState.DISABLED)
fragment.setEmptyListMessage(EmptyListState.LOADING)
fragment.isLoading = false
}
@@ -91,7 +92,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
.perform(NavigationViewActions.navigateTo(R.id.nav_all_files))
val fragment = activity!!.listOfFilesFragment
fragment!!.setFabEnabled(false)
fragment!!.setFabState(FabState.DISABLED)
fragment.setEmptyListMessage(EmptyListState.LOADING)
fragment.isLoading = false
@@ -117,7 +118,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
resetScrolling(true)
listOfFilesFragment?.let {
it.setFabEnabled(false)
it.setFabState(FabState.DISABLED)
it.setEmptyListMessage(EmptyListState.LOADING)
it.isLoading = false
}
@@ -14,7 +14,6 @@ import androidx.test.espresso.Espresso.onView
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.GrantStoragePermissionRule.Companion.grant
import com.owncloud.android.AbstractIT
import com.owncloud.android.datamodel.ArbitraryDataProviderImpl
import com.owncloud.android.ui.activity.RequestCredentialsActivity
@@ -22,17 +21,12 @@ import com.owncloud.android.ui.activity.SettingsActivity
import com.owncloud.android.utils.EncryptionUtils
import com.owncloud.android.utils.ScreenshotTest
import org.junit.Assert
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TestRule
@Suppress("FunctionNaming")
class SettingsActivityIT : AbstractIT() {
private val testClassName = "com.nextcloud.client.SettingsActivityIT"
@get:Rule
var storagePermissionRule: TestRule = grant()
@Test
@ScreenshotTest
fun open() {
@@ -8,7 +8,7 @@
*/
package com.nextcloud.client
import androidx.test.core.app.launchActivity
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.contrib.DrawerActions
@@ -17,17 +17,19 @@ import androidx.test.espresso.matcher.ViewMatchers.isRoot
import androidx.test.espresso.matcher.ViewMatchers.withId
import com.owncloud.android.AbstractIT
import com.owncloud.android.R
import com.owncloud.android.ui.activity.UploadListActivity
import com.owncloud.android.ui.navigation.NavigatorActivity
import com.owncloud.android.ui.navigation.NavigatorScreen
import com.owncloud.android.utils.ScreenshotTest
import org.junit.Test
class UploadListActivityActivityIT : AbstractIT() {
private val testClassName = "com.nextcloud.client.UploadListActivityActivityIT"
class UploadListFragmentIT : AbstractIT() {
private val testClassName = "com.nextcloud.client.UploadListFragmentIT"
@Test
@ScreenshotTest
fun openDrawer() {
launchActivity<UploadListActivity>().use { scenario ->
val intent = NavigatorActivity.intent(targetContext, NavigatorScreen.UploadList)
ActivityScenario.launch<NavigatorActivity>(intent).use { scenario ->
onView(isRoot()).check(matches(isDisplayed()))
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open())
@@ -8,6 +8,7 @@
package com.nextcloud.client.assistant
import com.nextcloud.client.assistant.repository.remote.AssistantRemoteRepositoryImpl
import com.nextcloud.test.SinceServer
import com.owncloud.android.AbstractOnServerIT
import com.owncloud.android.lib.resources.assistant.v2.model.TaskTypeData
import com.owncloud.android.lib.resources.status.NextcloudVersion
@@ -17,20 +18,21 @@ import org.junit.Before
import org.junit.Test
@Suppress("MagicNumber")
@SinceServer(majorVersion = 28)
class AssistantRepositoryTests : AbstractOnServerIT() {
private var sut: AssistantRemoteRepositoryImpl? = null
@Before
fun setup() {
sut = AssistantRemoteRepositoryImpl(nextcloudClient, capability)
sut = AssistantRemoteRepositoryImpl(nextcloudClient, getCapability())
}
@Test
fun testGetTaskTypes() {
testOnlyOnServer(NextcloudVersion.nextcloud_28)
if (capability.assistant.isFalse) {
if (getCapability().assistant.isFalse) {
return
}
@@ -44,7 +46,7 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
fun testGetTaskList() {
testOnlyOnServer(NextcloudVersion.nextcloud_28)
if (capability.assistant.isFalse) {
if (getCapability().assistant.isFalse) {
return
}
@@ -58,7 +60,7 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
fun testCreateTask() {
testOnlyOnServer(NextcloudVersion.nextcloud_28)
if (capability.assistant.isFalse) {
if (getCapability().assistant.isFalse) {
return
}
@@ -81,7 +83,7 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
fun testDeleteTask() {
testOnlyOnServer(NextcloudVersion.nextcloud_28)
if (capability.assistant.isFalse) {
if (getCapability().assistant.isFalse) {
return
}
@@ -101,7 +101,7 @@ class ContactsBackupIT : AbstractOnServerIT() {
fail("folderPath cannot be empty")
}
val folder = fileDataStorageManager.getFileByDecryptedRemotePath(folderPath)
val folder = storageManager.getFileByDecryptedRemotePath(folderPath)
if (folder == null) {
fail("folder cannot be null")
}
@@ -16,7 +16,6 @@ import java.util.TreeMap
*
* The implementation is not thread-safe.
*/
@Suppress("TooManyFunctions")
class MockSharedPreferences : SharedPreferences {
class MockEditor(val store: MutableMap<String?, Any?>) : SharedPreferences.Editor {
@@ -0,0 +1,138 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2026 Daniele Verducci <[email protected]>
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.extensions
import android.graphics.Bitmap
import com.nextcloud.utils.extensions.areImageDimensionsSame
import com.owncloud.android.lib.resources.files.model.ImageDimension
import com.owncloud.android.lib.resources.files.model.RemoteFile
import org.junit.After
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
import java.io.File
import java.io.OutputStream
import java.nio.file.Files
import java.nio.file.Path
import kotlin.io.path.exists
class RemoteFileExtensionsImageTest {
private lateinit var tempDir: Path
private val remoteFileWithDimensions = RemoteFile().apply {
mimeType = "image/jpeg"
imageDimension = ImageDimension(IMAGE_WIDTH.toFloat(), IMAGE_HEIGHT.toFloat())
}
private val remoteFileWithoutDimensions = RemoteFile().apply {
mimeType = "image/jpeg"
imageDimension = null
}
@Test
fun testAreImageDimensionsSameWhenLocalFileIsNotImage_ShouldReturnTrue() {
// local not an image
assertTrue(
"comparing with non-image",
remoteFileWithDimensions.areImageDimensionsSame(getPath(TEXT_FILENAME).toString())
)
}
@Test
fun testAreImageDimensionsSame_ShouldReturnTrue() {
// same dimensions
assertTrue(
"comparing with same-size image",
remoteFileWithDimensions.areImageDimensionsSame(getPath(IMAGE_FILENAME).toString())
)
}
@Test
fun testAreImageDimensionsSame_ShouldReturnFalse() {
// different dimensions
val biggerRemoteImage = RemoteFile().apply {
mimeType = "image/jpeg"
imageDimension = ImageDimension((IMAGE_WIDTH * 2).toFloat(), IMAGE_HEIGHT.toFloat())
}
assertFalse(
"comparing with different-size image",
biggerRemoteImage.areImageDimensionsSame(getPath(IMAGE_FILENAME).toString())
)
}
@Test
fun testAreImageDimensionsSameWhenLocalFileHasNoDimensions_ShouldReturnTrue() {
// local file with null dimensions
assertTrue(
"comparing null-dimensions local file with valid remote file",
remoteFileWithoutDimensions.areImageDimensionsSame(getPath(TEXT_FILENAME).toString())
)
}
@Test
fun testAreImageDimensionsSameWhenRemoteFileHasNoDimensions_ShouldReturnTrue() {
// remote file with null dimensions
assertTrue(
"comparing with null-dimensions remote file",
remoteFileWithoutDimensions.areImageDimensionsSame(getPath(IMAGE_FILENAME).toString())
)
}
@Test
fun testAreImageDimensionsSameWhenBothFilesHaveNoDimensions_ShouldReturnTrue() {
// both files with null dimensions
assertTrue(
"comparing null-dimensions local file with null-dimensions remote file",
remoteFileWithoutDimensions.areImageDimensionsSame(getPath(TEXT_FILENAME).toString())
)
}
@After
fun cleanup() {
val tf = File(getPath(TEXT_FILENAME).toUri())
val imgf = File(getPath(IMAGE_FILENAME).toUri())
tf.delete()
imgf.delete()
}
@Before
fun setup() {
tempDir = Files.createTempDirectory(TMP_DIR)
assertTrue("Temp directory should exist", tempDir.exists())
createImageFile()
createTextFile()
}
private fun getPath(filename: String): Path = tempDir.resolve("test_$filename")
private fun createImageFile() {
val bitmap = Bitmap.createBitmap(IMAGE_WIDTH, IMAGE_HEIGHT, Bitmap.Config.ARGB_8888)
val imagePath = getPath(IMAGE_FILENAME)
Files.newOutputStream(imagePath).use { out: OutputStream ->
bitmap.compress(Bitmap.CompressFormat.JPEG, 90, out)
}
assertTrue(imagePath.exists())
}
private fun createTextFile() {
val f = File(getPath(TEXT_FILENAME).toUri())
f.writeText("Lorem ipsum")
}
companion object {
val TMP_DIR = "remoteFileExtensionsTest"
val TEXT_FILENAME = "text.txt"
val IMAGE_FILENAME = "image.jpg"
val IMAGE_WIDTH = 123
val IMAGE_HEIGHT = 45
}
}
@@ -11,7 +11,6 @@ import junit.framework.TestCase.assertFalse
import junit.framework.TestCase.assertTrue
import org.junit.Test
@Suppress("TooManyFunctions")
class StringExtensionTests {
@Test
fun testIsNotBlankAndEqualsWhenGivenBothStringsAreNull() {
@@ -22,7 +22,7 @@ import org.junit.Test
import java.io.File
import kotlin.random.Random
@Suppress("TooManyFunctions", "MagicNumber")
@Suppress("MagicNumber")
class FileDeletionTests : AbstractIT() {
private val createdFilePaths = mutableListOf<String>()
@@ -0,0 +1,25 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.test
import org.junit.runner.Description
import org.junit.runner.manipulation.Filter
class FlakyTestFilter : Filter() {
override fun shouldRun(description: Description): Boolean = when {
description.isTest -> !description.isFlaky()
else -> description.children.any { shouldRun(it) }
}
override fun describe(): String = "skip tests annotated with @Flaky"
private fun Description.isFlaky(): Boolean {
val onMethod = getAnnotation(Flaky::class.java) != null
val onClass = testClass?.isAnnotationPresent(Flaky::class.java) == true
return onMethod || onClass
}
}
@@ -18,7 +18,6 @@ fun withSelectedText(expected: String): Matcher<View> = object : TypeSafeMatcher
description.appendText("with selected text \"$expected\"")
}
@Suppress("ReturnCount")
override fun matchesSafely(view: View): Boolean {
if (view !is TextView) return false
val text = view.text?.toString() ?: ""
@@ -27,7 +27,6 @@ class RetryTestRule(val retryCount: Int = defaultRetryValue) : TestRule {
override fun apply(base: Statement, description: Description): Statement = statement(base, description)
@Suppress("TooGenericExceptionCaught") // and this exactly what we want here
private fun statement(base: Statement, description: Description): Statement {
return object : Statement() {
@@ -0,0 +1,43 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.test
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.runner.Description
import org.junit.runner.manipulation.Filter
class ServerVersionFilter : Filter() {
private val serverVersion: Int? by lazy {
InstrumentationRegistry
.getArguments()
.getString(SERVER_VERSION_ARGUMENT)
?.toIntOrNull()
}
override fun shouldRun(description: Description): Boolean {
val currentVersion = serverVersion ?: return true
return when {
description.isTest -> description.requiredServerVersion() <= currentVersion
else -> description.children.any { shouldRun(it) }
}
}
override fun describe(): String = "skip tests annotated with @SinceServer above server version $serverVersion"
private fun Description.requiredServerVersion(): Int {
val onMethod = getAnnotation(SinceServer::class.java)?.majorVersion ?: ANY_SERVER
val onClass = testClass?.getAnnotation(SinceServer::class.java)?.majorVersion ?: ANY_SERVER
return maxOf(onMethod, onClass)
}
companion object {
private const val SERVER_VERSION_ARGUMENT = "TEST_SERVER_VERSION"
private const val ANY_SERVER = 0
}
}
@@ -0,0 +1,11 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.test
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
annotation class SinceServer(val majorVersion: Int)
@@ -16,6 +16,7 @@ import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.isRoot
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.rule.GrantPermissionRule
import com.nextcloud.ui.dialog.account.onlineStatus.SetOnlineStatusBottomSheet
import com.owncloud.android.AbstractIT
import com.owncloud.android.R
import com.owncloud.android.lib.resources.users.Status
@@ -17,6 +17,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.rule.GrantPermissionRule
import com.nextcloud.test.Flaky
import com.nextcloud.test.GrantTestPermissionRule
import com.nextcloud.ui.dialog.account.statusMessage.SetStatusMessageBottomSheet
import com.owncloud.android.AbstractIT
import com.owncloud.android.R
import com.owncloud.android.lib.resources.users.ClearAt
@@ -8,6 +8,7 @@
package com.nextcloud.utils
import com.nextcloud.test.SinceServer
import com.nextcloud.utils.autoRename.AutoRename
import com.owncloud.android.AbstractOnServerIT
import com.owncloud.android.datamodel.e2e.v2.decrypted.DecryptedFile
@@ -17,10 +18,10 @@ import com.owncloud.android.lib.resources.status.OCCapability
import org.junit.Before
import org.junit.Test
@Suppress("TooManyFunctions")
@SinceServer(majorVersion = 30)
class AutoRenameTests : AbstractOnServerIT() {
private var capability: OCCapability = fileDataStorageManager.getCapability(account.name)
private var capability: OCCapability = storageManager.getCapability(account.name)
private val forbiddenFilenameExtension = "."
private val forbiddenFilenameCharacter = ">"
@@ -12,7 +12,6 @@ import junit.framework.TestCase.assertFalse
import junit.framework.TestCase.assertTrue
import org.junit.Test
@Suppress("TooManyFunctions")
class FileExtensionTest {
@Test
@@ -15,7 +15,6 @@ import org.junit.Test
import java.io.File
import java.nio.file.Files
@Suppress("TooManyFunctions")
class FileHelperTest {
private lateinit var testDirectory: File
@@ -7,6 +7,7 @@
package com.nextcloud.utils
import com.nextcloud.test.SinceServer
import com.nextcloud.utils.fileNameValidator.FileNameValidator
import com.owncloud.android.AbstractOnServerIT
import com.owncloud.android.R
@@ -20,10 +21,12 @@ import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
@Suppress("TooManyFunctions")
class FileNameValidatorTests : AbstractOnServerIT() {
companion object {
private const val MAX_FILENAME_SIZE = 250
}
private var capability: OCCapability = fileDataStorageManager.getCapability(account.name)
private var capability: OCCapability = storageManager.getCapability(account.name)
@Before
fun setup() {
@@ -42,6 +45,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testInvalidCharacter() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -53,6 +57,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testReservedName() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -61,6 +66,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testForbiddenFilenameExtension() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -105,6 +111,20 @@ class FileNameValidatorTests : AbstractOnServerIT() {
assertEquals(targetContext.getString(R.string.filename_empty), result)
}
@Test
fun testLongFileName() {
val filename = "a".repeat(MAX_FILENAME_SIZE)
val result = FileNameValidator.checkFileName(filename, capability, targetContext)
assertNull(result)
}
@Test
fun testTooLongFileName() {
val filename = "a".repeat(MAX_FILENAME_SIZE + 1)
val result = FileNameValidator.checkFileName(filename, capability, targetContext)
assertEquals(targetContext.getString(R.string.filename_too_long), result)
}
@Test
fun testFileAlreadyExists() {
val existingFiles = setOf("existingFile")
@@ -141,6 +161,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testFolderPathWithReservedName() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -152,6 +173,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testFilePathWithReservedName() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -163,6 +185,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testFolderPathWithInvalidCharacter() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -174,6 +197,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testFilePathWithInvalidCharacter() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -203,6 +227,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testFilePathWithNestedFolder() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -222,6 +247,7 @@ class FileNameValidatorTests : AbstractOnServerIT() {
}
@Test
@SinceServer(majorVersion = 30)
fun testOnlyFolderPathWithOneReservedName() {
testOnlyOnServer(NextcloudVersion.nextcloud_30)
@@ -17,9 +17,9 @@ import junit.framework.TestCase.assertEquals
import junit.framework.TestCase.assertTrue
import org.junit.Test
@Suppress("MagicNumber", "TooManyFunctions")
@Suppress("MagicNumber")
class OCCapabilityJsonToListTests : AbstractIT() {
private var capability: OCCapability = fileDataStorageManager.getCapability(account.name)
private var capability: OCCapability = storageManager.getCapability(account.name)
// region Valid Input
@Test
@@ -0,0 +1,38 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2026 Alper Ozturk <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package com.nextcloud.utils
import com.nextcloud.client.device.BatteryStatus
import com.nextcloud.client.device.PowerManagementService
object PowerManagementFactory {
@JvmStatic
val mock: PowerManagementService = object : PowerManagementService {
override val isIgnoringOptimization: Boolean
get() = true
override val isPowerSavingEnabled: Boolean
get() = false
override val battery: BatteryStatus
get() = BatteryStatus(false, 0)
override val blocksAutoUpload: Boolean
get() = false
}
@JvmStatic
@Suppress("MagicNumber")
val mockCharging: PowerManagementService = object : PowerManagementService {
override val isIgnoringOptimization: Boolean
get() = true
override val isPowerSavingEnabled: Boolean
get() = false
override val battery: BatteryStatus
get() = BatteryStatus(true, 100)
override val blocksAutoUpload: Boolean
get() = false
}
}
@@ -18,7 +18,6 @@ import junit.framework.TestCase.assertFalse
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 =
@@ -9,18 +9,22 @@
package com.nextcloud.utils
import android.content.Context
import android.content.res.Configuration
import android.text.format.DateUtils
import androidx.test.platform.app.InstrumentationRegistry
import com.nextcloud.client.database.entity.UploadEntity
import com.nextcloud.client.database.entity.toOCUpload
import com.nextcloud.client.database.entity.toUploadEntity
import com.nextcloud.utils.text.DisplayTextFormatter
import com.owncloud.android.R
import com.owncloud.android.utils.DisplayUtils
import org.junit.After
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotNull
import org.junit.Before
import org.junit.Test
import java.text.DateFormat
import java.util.Date
import java.util.Locale
class UploadDateTests {
@@ -30,17 +34,32 @@ class UploadDateTests {
private const val ONE_HOUR = 60 * ONE_MINUTE
private const val ONE_DAY = 24 * ONE_HOUR
private const val ONE_YEAR = 365L * ONE_DAY
private const val ONE_MONTH = 30L * ONE_DAY
private const val ONE_WEEK = 7L * ONE_DAY
private const val TWO_HOURS = 2L * ONE_HOUR
private const val ONE_AND_A_HALF_MINUTES = ONE_MINUTE + THIRTY_SECONDS
private const val TWO_AND_A_HALF_HOURS = 2 * ONE_HOUR + ONE_HOUR / 2
private const val TWO_DAYS = 2 * ONE_DAY
private const val ONE_WEEK = 7 * ONE_DAY
private const val ONE_MONTH = 30 * ONE_DAY
private const val ONE_YEAR = 365 * ONE_DAY
private const val DATE_AND_TIME_PARTS = 2
private const val TIME_OF_DAY_SEPARATOR = ":"
private const val NARROW_NO_BREAK_SPACE = ' '
private const val NO_BREAK_SPACE = ' '
}
private lateinit var context: Context
private lateinit var systemLocale: Locale
@Before
fun setup() {
context = InstrumentationRegistry.getInstrumentation().targetContext
systemLocale = Locale.getDefault()
Locale.setDefault(Locale.US)
context = InstrumentationRegistry.getInstrumentation().targetContext.localized(Locale.US)
}
@After
fun tearDown() {
Locale.setDefault(systemLocale)
}
@Test
@@ -82,189 +101,139 @@ class UploadDateTests {
@Test
fun getRelativeDateTimeStringReturnsSecondsAgoForRecentPast() {
val result = DisplayUtils.getRelativeDateTimeString(
context,
System.currentTimeMillis() - THIRTY_SECONDS,
DateUtils.MINUTE_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0
assertRelativeDateTimeString(
time = System.currentTimeMillis() - THIRTY_SECONDS,
expected = context.getString(R.string.file_list_seconds_ago)
)
assertEquals(context.getString(R.string.file_list_seconds_ago), result.toString())
}
@Test
fun getRelativeDateTimeStringReturnsFutureAsAbsoluteWhenShowFutureIsFalse() {
val time = System.currentTimeMillis() + ONE_MINUTE
val expected = java.text.DateFormat.getDateTimeInstance().format(Date(time))
val time = System.currentTimeMillis() + ONE_AND_A_HALF_MINUTES
val result = DisplayUtils.getRelativeDateTimeString(
context,
time,
DateUtils.SECOND_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0,
false
assertRelativeDateTimeString(
time = time,
expected = DateFormat.getDateTimeInstance().format(Date(time))
)
assertEquals(expected, result.toString())
}
@Test
fun getRelativeDateTimeStringReturnsFutureAsRelativeWhenShowFutureIsTrue() {
val expected = "In 1 minute"
val time = System.currentTimeMillis() + ONE_MINUTE
assertRelativeDateTimeString(time, expected, DateUtils.MINUTE_IN_MILLIS, showFuture = true)
assertRelativeDateTimeString(
time = System.currentTimeMillis() + ONE_AND_A_HALF_MINUTES,
expected = "In 1 minute",
showFuture = true
)
}
@Test
fun getRelativeDateTimeStringReturnsRelativeStringForHoursAgo() {
val expected = "2 hours ago"
val time = System.currentTimeMillis() - TWO_HOURS
assertRelativeDateTimeString(time, expected, DateUtils.SECOND_IN_MILLIS)
assertRelativeDateTimeString(
time = System.currentTimeMillis() - TWO_AND_A_HALF_HOURS,
expected = "2 hours ago",
minResolution = DateUtils.SECOND_IN_MILLIS
)
}
@Test
fun getRelativeDateTimeStringReturnsAbbreviatedStringForOneWeekAgo() {
val time = System.currentTimeMillis() - ONE_WEEK
val expectedString = DateUtils.getRelativeDateTimeString(
context,
time,
DateUtils.MINUTE_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0
).toString()
val parts = expectedString.split(",")
val expected = if (parts.size == 2) {
if (parts[1].contains(":") && !parts[0].contains(":")) parts[0].trim() else parts[1].trim()
} else {
expectedString
}
assertRelativeDateTimeString(time, expected)
fun getRelativeDateTimeStringReturnsTodayForNow() {
assertRelativeDateTimeString(
time = System.currentTimeMillis(),
expected = "Today",
minResolution = DateUtils.DAY_IN_MILLIS
)
}
@Test
fun getRelativeDateTimeStringReturnsAbbreviatedStringForOneMonthAgo() {
val time = System.currentTimeMillis() - ONE_MONTH
val expectedString = DateUtils.getRelativeDateTimeString(
context,
time,
DateUtils.SECOND_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0
).toString()
val parts = expectedString.split(",")
val expected = if (parts.size == 2) {
if (parts[1].contains(":") && !parts[0].contains(":")) parts[0].trim() else parts[1].trim()
} else {
expectedString
}
assertRelativeDateTimeString(time, expected, DateUtils.SECOND_IN_MILLIS)
fun getRelativeDateTimeStringReturnsYesterdayForOneDayAgo() {
assertRelativeDateTimeString(
time = System.currentTimeMillis() - ONE_DAY,
expected = "Yesterday",
minResolution = DateUtils.DAY_IN_MILLIS
)
}
@Test
fun getRelativeDateTimeStringReturnsAbsoluteStringForOneYearAgo() {
val time = System.currentTimeMillis() - ONE_YEAR
val expectedString = DateUtils.getRelativeDateTimeString(
context,
time,
DateUtils.SECOND_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0
).toString()
val parts = expectedString.split(",")
val expected = if (parts.size == 2) {
if (parts[1].contains(":") && !parts[0].contains(":")) parts[0].trim() else parts[1].trim()
} else {
expectedString
}
assertRelativeDateTimeString(time, expected, DateUtils.SECOND_IN_MILLIS)
fun getRelativeDateTimeStringReturnsDaysAgoForTwoDaysAgo() {
assertRelativeDateTimeString(
time = System.currentTimeMillis() - TWO_DAYS,
expected = "2 days ago",
minResolution = DateUtils.DAY_IN_MILLIS
)
}
@Suppress("MagicNumber")
@Test
fun getRelativeDateTimeStringReturnsDaysForDayInMillis() {
var testTimestamp = System.currentTimeMillis()
var expected = "Today"
var result = DisplayUtils.getRelativeDateTimeString(
context,
testTimestamp,
DateUtils.DAY_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0,
false
)
assertEquals(expected, result)
fun getRelativeDateTimeStringDropsTimeOfDayForOneWeekAgo() {
assertDateWithoutTimeOfDay(System.currentTimeMillis() - ONE_WEEK, DateUtils.MINUTE_IN_MILLIS)
}
testTimestamp = System.currentTimeMillis() - DateUtils.DAY_IN_MILLIS
expected = "Yesterday"
result = DisplayUtils.getRelativeDateTimeString(
context,
testTimestamp,
DateUtils.DAY_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0,
false
)
assertEquals(expected, result)
@Test
fun getRelativeDateTimeStringDropsTimeOfDayForOneWeekAgoWithDayResolution() {
assertDateWithoutTimeOfDay(System.currentTimeMillis() - ONE_WEEK, DateUtils.DAY_IN_MILLIS)
}
testTimestamp = System.currentTimeMillis() - 2 * DateUtils.DAY_IN_MILLIS
expected = "2 days ago"
result = DisplayUtils.getRelativeDateTimeString(
context,
testTimestamp,
DateUtils.DAY_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0,
false
)
assertEquals(expected, result)
@Test
fun getRelativeDateTimeStringDropsTimeOfDayForOneMonthAgo() {
assertDateWithoutTimeOfDay(System.currentTimeMillis() - ONE_MONTH, DateUtils.SECOND_IN_MILLIS)
}
testTimestamp = System.currentTimeMillis() - 7 * DateUtils.DAY_IN_MILLIS
val expectedString = DateUtils.getRelativeDateTimeString(
context,
testTimestamp,
DateUtils.DAY_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0
).toString()
val parts = expectedString.split(",")
expected = if (parts.size == 2) {
if (parts[1].contains(":") && !parts[0].contains(":")) parts[0].trim() else parts[1].trim()
} else {
expectedString
}
result = DisplayUtils.getRelativeDateTimeString(
context,
testTimestamp,
DateUtils.DAY_IN_MILLIS,
DateUtils.WEEK_IN_MILLIS,
0,
false
)
assertEquals(expected, result)
@Test
fun getRelativeDateTimeStringDropsTimeOfDayForOneYearAgo() {
assertDateWithoutTimeOfDay(System.currentTimeMillis() - ONE_YEAR, DateUtils.SECOND_IN_MILLIS)
}
private fun assertRelativeDateTimeString(
time: Long,
expected: String,
minResolution: Long = DateUtils.MINUTE_IN_MILLIS,
transitionResolution: Long = DateUtils.WEEK_IN_MILLIS,
showFuture: Boolean = false
) {
val result = DisplayUtils.getRelativeDateTimeString(
val result = DisplayTextFormatter.formatRelativeDateTime(
context,
time,
minResolution,
transitionResolution,
DateUtils.WEEK_IN_MILLIS,
0,
showFuture
)
assertEquals(expected.normalizeResult(), result.toString().normalizeResult())
assertEquals(expected.normalizeSpaces(), result.toString().normalizeSpaces())
}
private fun String.normalizeResult(): String = replace('\u202F', ' ').replace('\u00A0', ' ')
private fun assertDateWithoutTimeOfDay(time: Long, minResolution: Long) = assertRelativeDateTimeString(
time = time,
expected = platformDateClause(time, minResolution),
minResolution = minResolution
)
private fun platformDateClause(time: Long, minResolution: Long): String {
val platformString = DateUtils.getRelativeDateTimeString(
context,
time,
minResolution,
DateUtils.WEEK_IN_MILLIS,
0
).toString()
val parts = platformString.split(",").map(String::trim)
if (parts.size != DATE_AND_TIME_PARTS) {
return platformString
}
val (date, timeOfDay) = parts
return when {
timeOfDay.hasTimeOfDay() && !date.hasTimeOfDay() -> date
date.hasTimeOfDay() && !timeOfDay.hasTimeOfDay() -> timeOfDay
else -> platformString
}
}
private fun Context.localized(locale: Locale): Context {
val configuration = Configuration(resources.configuration).apply { setLocale(locale) }
return createConfigurationContext(configuration)
}
private fun String.hasTimeOfDay(): Boolean = contains(TIME_OF_DAY_SEPARATOR)
private fun String.normalizeSpaces(): String = replace(NARROW_NO_BREAK_SPACE, ' ').replace(NO_BREAK_SPACE, ' ')
}
@@ -11,7 +11,6 @@ import com.nextcloud.utils.extensions.webDavParentPath
import org.junit.Assert.assertEquals
import org.junit.Test
@Suppress("TooManyFunctions")
class WebDavParentPathTests {
@Test
@@ -5,18 +5,18 @@
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
*/
package com.owncloud.android.utils
package com.nextcloud.utils.view
import com.owncloud.android.AbstractIT
import org.junit.Assert.assertEquals
import org.junit.Test
class DisplayUtilsIT : AbstractIT() {
class ScreenMetricsIT : AbstractIT() {
@Test
fun testPixelToDP() {
val px = 123
val dp = DisplayUtils.convertPixelToDp(px, targetContext)
val newPx = DisplayUtils.convertDpToPixel(dp, targetContext)
val dp = ScreenMetrics.pxToDp(px, targetContext)
val newPx = ScreenMetrics.dpToPx(dp, targetContext)
assertEquals(px.toLong(), newPx.toLong())
}
Loaded 100 of 1011 files, more files were not shown because too many files have changed in this diff. Show more