Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from nextcloud:master #21

Open
wants to merge 5,711 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
5711 commits
Select commit Hold shift + click to select a range
869c991
fix code analytics
alperozturk96 Jan 21, 2025
5f9c369
Update plugin com.google.devtools.ksp to v2.1.10-1.0.31
renovate[bot] Mar 3, 2025
b306bc7
Merge pull request #13975 from nextcloud/improve-file-download-worker
alperozturk96 Mar 3, 2025
4af1ff2
remove airplane mode check due to configurable unmetered Wi-Fi
alperozturk96 Feb 24, 2025
ab3e40a
Merge pull request #14623 from nextcloud/renovate/ksp-monorepo
AndyScherzinger Mar 3, 2025
d94fbcc
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 4, 2025
3f978de
Fix ecosystem app switcher spacing
ZetaTom Mar 3, 2025
69f692e
Update screenshot
ZetaTom Mar 4, 2025
a687c6f
change description
alperozturk96 Mar 3, 2025
e814e47
reduce lint
alperozturk96 Mar 4, 2025
7d01ba4
use common ui
alperozturk96 Feb 20, 2025
0979998
update androidCommonLibraryVersion
alperozturk96 Mar 4, 2025
396f6e5
Merge pull request #14630 from nextcloud/fix/ecosystem-app-switcher-s…
alperozturk96 Mar 4, 2025
2fa87b9
Merge branch 'master' into use-configure-system-bar-from-common-ui
alperozturk96 Mar 4, 2025
27cd781
use 0.25.0
alperozturk96 Mar 4, 2025
350568c
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 5, 2025
e1cb118
Merge pull request #14528 from nextcloud/fix/resume-paused-media-frag…
tobiasKaminsky Mar 5, 2025
affaa2b
Merge pull request #14565 from nextcloud/use-configure-system-bar-fro…
tobiasKaminsky Mar 5, 2025
030838b
Merge pull request #14625 from nextcloud/remove-airplane-mode-check
tobiasKaminsky Mar 5, 2025
530a19e
Merge pull request #14626 from nextcloud/simplify-e2ee-dialog-enter-p…
tobiasKaminsky Mar 5, 2025
90091a1
use FilenameUtils, add tests and only change lowercaseFileExtension f…
alperozturk96 Feb 20, 2025
68fbb07
add DOT between file name and extension
alperozturk96 Feb 20, 2025
4872774
fix tests
alperozturk96 Feb 21, 2025
5539231
add e2ee test
alperozturk96 Feb 26, 2025
c51c488
add e2ee test
alperozturk96 Feb 26, 2025
2037190
remove isFolder parameter
alperozturk96 Mar 5, 2025
2f7c925
Merge pull request #14614 from nextcloud/renovate/mockkversion
AndyScherzinger Mar 6, 2025
cd98456
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
nextcloud-android-bot Mar 7, 2025
cb9cd7a
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 7, 2025
75b6912
Merge pull request #14643 from nextcloud/repo-sync/android-config/master
AndyScherzinger Mar 7, 2025
9b110d4
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to …
renovate[bot] Mar 7, 2025
95e793a
Merge pull request #14644 from nextcloud/renovate/com.github.spotbugs…
AndyScherzinger Mar 7, 2025
c994d34
keep slideshow when deleting file
tobiasKaminsky Mar 7, 2025
3140eaf
Merge pull request #14566 from nextcloud/bugfix/auto-rename-file-exte…
alperozturk96 Mar 7, 2025
4eefc73
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
nextcloud-android-bot Mar 8, 2025
237c3a9
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 8, 2025
0ee8bb8
Merge pull request #14649 from nextcloud/repo-sync/android-config/master
AndyScherzinger Mar 8, 2025
628428e
fix(deps): Bump to AGP 8.9.0
AndyScherzinger Mar 6, 2025
8e6bab2
fix lint
tobiasKaminsky Mar 7, 2025
32ae47d
fix lint
tobiasKaminsky Mar 7, 2025
cbf3a28
ci. Bump lint error score
AndyScherzinger Mar 8, 2025
ddc7f74
Merge pull request #14641 from nextcloud/fix/noid/AGP890
AndyScherzinger Mar 8, 2025
c909780
Update library to 2025-03-09
tobiasKaminsky Mar 8, 2025
8419586
ci: Add meta data
AndyScherzinger Mar 9, 2025
30cd4d1
Merge pull request #14651 from nextcloud/update-library-2025-03-09
AndyScherzinger Mar 9, 2025
9cf3f15
Prepare for build with *.kts files
hannesa2 Feb 19, 2025
f8d175a
ci: raise commit range to hit lib change commit
AndyScherzinger Mar 9, 2025
e62ff36
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 9, 2025
086fcc9
Merge pull request #14561 from nextcloud/PrepareBuildKts
AndyScherzinger Mar 9, 2025
5656e67
Fix deprecated github action and simplify CI
hannesa2 Feb 19, 2025
d24964c
ci(assemble): Pin action with commit
AndyScherzinger Mar 9, 2025
6f0350c
Merge pull request #14562 from nextcloud/DeprecatedGithubAction
AndyScherzinger Mar 9, 2025
b16d598
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 10, 2025
4cca9f2
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 11, 2025
e8659b0
Merge pull request #14544 from Minion3665/push-kzrrwrrwrxur
tobiasKaminsky Mar 11, 2025
845db43
do not rely on else condition of webViewLoginMethod
alperozturk96 Mar 11, 2025
c6c6c7f
fix code formatting
alperozturk96 Mar 11, 2025
fa9f1ff
Merge pull request #14590 from nextcloud/optionalFieldParameters2
tobiasKaminsky Mar 11, 2025
e75c0e7
Merge pull request #14589 from nextcloud/Java5
tobiasKaminsky Mar 11, 2025
fd33f4f
Merge pull request #14663 from nextcloud/bugfix/authenticator-add-lif…
tobiasKaminsky Mar 11, 2025
063148e
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 12, 2025
a154153
fix
alperozturk96 Mar 13, 2025
f7d5fcc
add comment for FileDownloadFragment usage
alperozturk96 Mar 13, 2025
afd468b
max line lenght fix
alperozturk96 Mar 13, 2025
e117934
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 14, 2025
57a1a24
highlight tab when scrolled
alperozturk96 Mar 14, 2025
daa2101
clear import
alperozturk96 Mar 14, 2025
ad75324
check binding nullability
alperozturk96 Mar 14, 2025
16181de
chore(deps): update dependency fastlane to v2.227.0
renovate[bot] Mar 14, 2025
64b41b5
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 15, 2025
abc8787
Update library to 2025-03-16
tobiasKaminsky Mar 15, 2025
9a5704d
use find instead of first to prevent NoSuchElementException
alperozturk96 Mar 10, 2025
3629909
fix code analytics
alperozturk96 Mar 10, 2025
47b57ee
dont set etag
alperozturk96 Mar 12, 2025
fdb9119
fix android.view.ViewRootImpl$CalledFromWrongThreadException: Only th…
alperozturk96 Mar 12, 2025
bb538a0
if prev tag exist set etag
alperozturk96 Mar 13, 2025
04661f9
Use prev etag if exists
alperozturk96 Mar 13, 2025
f1a2180
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
nextcloud-android-bot Mar 17, 2025
582d2ec
Merge pull request #14696 from nextcloud/repo-sync/android-config/master
AndyScherzinger Mar 17, 2025
22e9066
pin actions
tobiasKaminsky Mar 18, 2025
3bdcf2b
Merge pull request #14698 from nextcloud/pinActions
tobiasKaminsky Mar 18, 2025
71ccf2d
Merge pull request #14690 from nextcloud/update-library-2025-03-16
tobiasKaminsky Mar 18, 2025
0c897f1
fix
alperozturk96 Mar 6, 2025
ae58979
auto rename new folder name
alperozturk96 Mar 10, 2025
480c768
get only once capabilities
alperozturk96 Mar 10, 2025
fda71cc
Merge pull request #14658 from nextcloud/fix/ChooseStorageLocationDia…
tobiasKaminsky Mar 18, 2025
fec6658
Merge pull request #14676 from nextcloud/bugfix/sync-tablayout-with-v…
tobiasKaminsky Mar 18, 2025
531e140
Merge pull request #14659 from nextcloud/bugfix/auto-rename-create-ne…
tobiasKaminsky Mar 18, 2025
ae0d4ed
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 19, 2025
8ebd8e1
Merge pull request #14646 from nextcloud/keepPreviewWhenDeletingFiles
tobiasKaminsky Mar 19, 2025
d9ebd1f
Merge pull request #14640 from nextcloud/bugfix/e2ee-rename-name-coll…
tobiasKaminsky Mar 19, 2025
3cb9111
Merge pull request #14670 from nextcloud/bugfix/use-previous-etag-for…
tobiasKaminsky Mar 19, 2025
3b5d0be
Merge pull request #14671 from nextcloud/bugfix/e2ee-image-preview
tobiasKaminsky Mar 19, 2025
0b39c9a
use sentence-style capitalization
alperozturk96 Feb 13, 2025
3eb9c71
use m3 title medium
alperozturk96 Feb 13, 2025
ea48e24
use sentence style capitalization
alperozturk96 Mar 14, 2025
e963cf3
Update app/src/main/res/values/strings.xml
alperozturk96 Mar 18, 2025
f5e5a08
Update app/src/main/res/values/strings.xml
alperozturk96 Mar 18, 2025
5a15a0a
Update app/src/main/res/values/strings.xml
alperozturk96 Mar 18, 2025
7052c18
remove white space
alperozturk96 Mar 19, 2025
0ae620a
update ss
alperozturk96 Mar 19, 2025
14226a7
enable multiselect
alperozturk96 Feb 27, 2025
a747de4
code cleanup
alperozturk96 Feb 27, 2025
eae6eb8
code cleanup setGalleryImage
alperozturk96 Feb 27, 2025
f2632ff
scaleUntilLessThanEquals512KB
alperozturk96 Feb 27, 2025
458f94e
better naming
alperozturk96 Mar 3, 2025
2b58907
this will be handled in different PR
alperozturk96 Mar 3, 2025
640a0b6
fix selectAllFiles crash. GalleryAdapter select all action was causin…
alperozturk96 Mar 3, 2025
78442d2
fix spotbugs
alperozturk96 Mar 3, 2025
f950d61
fix delete crash
alperozturk96 Mar 5, 2025
16c1bf0
fix favorite event NPE
alperozturk96 Mar 5, 2025
b693534
separate refresh logics
alperozturk96 Mar 5, 2025
0a7399e
fix java.lang.IllegalStateException: Can not perform this action afte…
alperozturk96 Mar 5, 2025
ddf8c9b
fix uses instanceof on multiple types to arbitrate logic
alperozturk96 Mar 5, 2025
3e6aa62
reduce spotbugs
alperozturk96 Mar 5, 2025
bedfb90
use ktx extension
alperozturk96 Mar 19, 2025
e41b17c
remove unused resource reduce lint
alperozturk96 Mar 19, 2025
66eebaa
Merge pull request #14674 from nextcloud/use-sentence-style-capitaliz…
tobiasKaminsky Mar 19, 2025
886b41b
Merge pull request #14611 from nextcloud/feature/media-multi-select
tobiasKaminsky Mar 19, 2025
63d51fd
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
nextcloud-android-bot Mar 20, 2025
b6a8807
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 20, 2025
bc1d4c7
inform user, if task is empty
alperozturk96 Mar 14, 2025
dfa096b
change TaskDetailBottomSheet UI
alperozturk96 Mar 14, 2025
c2f7f3c
truncateWithEllipsis for input
alperozturk96 Mar 14, 2025
d1a528a
change task view container color
alperozturk96 Mar 14, 2025
4d4993b
change empty text
alperozturk96 Mar 14, 2025
234eff3
reduce lint
alperozturk96 Mar 14, 2025
5680697
change TitleDescriptionBox box color
alperozturk96 Mar 18, 2025
628878c
update ss
alperozturk96 Mar 20, 2025
cc9de71
reduce lint
alperozturk96 Mar 20, 2025
c2092dd
Merge pull request #14712 from nextcloud/repo-sync/android-config/master
AndyScherzinger Mar 20, 2025
81fc364
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 21, 2025
1ac54f6
start migration
alperozturk96 Mar 20, 2025
7044156
add license header
alperozturk96 Mar 20, 2025
029250d
update license header
alperozturk96 Mar 21, 2025
e40e3a5
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 22, 2025
2324fd3
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 23, 2025
cc7d435
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 24, 2025
26e8901
fix
alperozturk96 Mar 24, 2025
b00144e
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
nextcloud-android-bot Mar 25, 2025
0c295ef
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 25, 2025
9f51f98
Merge pull request #14723 from nextcloud/repo-sync/android-config/master
AndyScherzinger Mar 25, 2025
5cfcded
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 26, 2025
5f03cf4
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 27, 2025
6515a4c
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 28, 2025
428325b
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 29, 2025
cc74fc9
Update library to 2025-03-30
tobiasKaminsky Mar 29, 2025
9cf510d
Fix(l10n): Update translations from Transifex
nextcloud-bot Mar 30, 2025
ec5aa9e
use lifecycleScope
alperozturk96 Feb 13, 2025
f1da19e
add getEnabledOrWithoutEnabledParent extension for List<SyncedFolderD…
alperozturk96 Feb 13, 2025
fca8321
use extension
alperozturk96 Feb 13, 2025
81c6e09
add removeAutoUploadFromSubFoldersWithEnabledParent
alperozturk96 Feb 14, 2025
a5d2ca1
add documentations to the functions and use better function names
alperozturk96 Feb 14, 2025
d387442
add documentations to the functions and use better function names
alperozturk96 Feb 14, 2025
66ad7f2
check isGivenLocalPathHasEnabledParent
alperozturk96 Feb 14, 2025
e82f8dc
add tests
alperozturk96 Feb 18, 2025
a862c14
add missing import
alperozturk96 Mar 3, 2025
aa69adf
inform user and remove auto delete
alperozturk96 Mar 5, 2025
7161742
rename imagebutton
alperozturk96 Mar 5, 2025
f1e59bf
fix code analytics
alperozturk96 Mar 5, 2025
8b9a438
show alert dialog instead of snackbar
alperozturk96 Mar 11, 2025
8a507d9
change title, title icon and positive button text
alperozturk96 Mar 12, 2025
754c4a7
add tint for title icon
alperozturk96 Mar 12, 2025
291019a
fix code analytics
alperozturk96 Mar 12, 2025
95f4770
change positiveButtonTextId for overview page
alperozturk96 Mar 12, 2025
9f397f5
check parents recursively to determine sub folder of sub folders
alperozturk96 Mar 19, 2025
8d8eec1
fixes
alperozturk96 Mar 19, 2025
188858a
remove test due to file existance check
alperozturk96 Mar 19, 2025
b6be668
fix code analytics
alperozturk96 Mar 19, 2025
f3c3548
use decrypted path
alperozturk96 Mar 18, 2025
41ddaff
consider nested paths
alperozturk96 Mar 26, 2025
30080b1
fix logic
alperozturk96 Mar 31, 2025
92a7bcd
Merge pull request #14740 from nextcloud/update-library-2025-03-30
tobiasKaminsky Apr 1, 2025
77c5e7a
Update actions/cache action to v4.2.3
renovate[bot] Apr 1, 2025
0d8ad42
Update actions/upload-artifact action to v4.6.2
renovate[bot] Apr 1, 2025
57fcdc9
Merge pull request #14745 from nextcloud/renovate/actions-upload-arti…
AndyScherzinger Apr 1, 2025
a11f3fe
Merge pull request #14744 from nextcloud/renovate/actions-cache-4.x
AndyScherzinger Apr 1, 2025
dbb79c7
Merge pull request #14679 from nextcloud/renovate/fastlane-2.x-lockfile
AndyScherzinger Apr 1, 2025
cbec4a1
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 2, 2025
a38a30e
dont use raw bitmaps for thumbnails
alperozturk96 Mar 3, 2025
2b1b5e6
fix insert logic. replace raw bitmaps on demand
alperozturk96 Mar 13, 2025
97acb7e
Use the KTX extension function Bitmap.scale
alperozturk96 Mar 13, 2025
de479bc
prevent unnecessary add logic
alperozturk96 Mar 13, 2025
0b24b99
dont thumbnail cache check during scroll
alperozturk96 Mar 19, 2025
6d12355
update ss
alperozturk96 Mar 20, 2025
8b323a2
Merge pull request #14547 from nextcloud/feature/check-auto-upload-su…
tobiasKaminsky Apr 2, 2025
f576b25
Merge pull request #14628 from nextcloud/dont-use-raw-bitmap-for-thum…
tobiasKaminsky Apr 2, 2025
4781e8a
Merge pull request #14704 from nextcloud/use-decrypted-path-for-e2ee-…
tobiasKaminsky Apr 2, 2025
91c95df
Merge pull request #14675 from nextcloud/assistant-screen-ui-improvem…
tobiasKaminsky Apr 2, 2025
034a2ed
Merge pull request #14713 from nextcloud/migrate-to-version-catalog
tobiasKaminsky Apr 2, 2025
a4dedfd
add PROPERTY_DEFAULT_PERMISSIONS
alperozturk96 Mar 17, 2025
24defbc
use default permission
alperozturk96 Mar 17, 2025
ac36c62
use default permission
alperozturk96 Mar 17, 2025
20810d4
update lib
alperozturk96 Mar 17, 2025
e5905f5
update android lib
alperozturk96 Apr 2, 2025
e36a0d5
update android lib
alperozturk96 Apr 2, 2025
9d6cf85
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 3, 2025
878a266
Re-sort drawer entries
tobiasKaminsky Sep 24, 2024
420d572
Merge pull request #13609 from nextcloud/sortDrawerEntries
tobiasKaminsky Apr 3, 2025
bcc5faf
Merge pull request #14695 from nextcloud/feature/use-default-sharing-…
tobiasKaminsky Apr 3, 2025
7872e48
Update dependency com.android.tools.build:gradle to v8.9.1
renovate[bot] Apr 1, 2025
eb5305f
ci: Update meta data
AndyScherzinger Apr 3, 2025
52cc5c4
Merge pull request #14746 from nextcloud/renovate/androidpluginversion
AndyScherzinger Apr 3, 2025
1555c05
chore(deps): update gradle/actions action to v4.3.1
renovate[bot] Apr 3, 2025
535a804
Merge pull request #14755 from nextcloud/renovate/gradle-actions-4.x
AndyScherzinger Apr 3, 2025
dc4cfac
remove 2 line max restriction
tobiasKaminsky Jan 14, 2025
fa24ba6
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 4, 2025
0cdbc00
Merge pull request #14404 from nextcloud/fixAutoUploadLines
AndyScherzinger Apr 4, 2025
904f994
fix
alperozturk96 Apr 3, 2025
c24f2c8
add log
alperozturk96 Apr 3, 2025
c53854d
fix test
alperozturk96 Apr 3, 2025
e5e92ec
use UTF_8
alperozturk96 Apr 3, 2025
8cf26ad
use apache utils
alperozturk96 Apr 3, 2025
ff99a6b
dont use string
alperozturk96 Apr 3, 2025
1720f9d
fix code analytics
alperozturk96 Apr 4, 2025
3470404
fix NPE for ContactsAccount
alperozturk96 Apr 4, 2025
c5714eb
chore(deps): update dependency org.jetbrains.kotlin.plugin.compose to…
renovate[bot] Apr 3, 2025
07d9803
fix Cannot format given Object as a Date
alperozturk96 Apr 4, 2025
f8bd6f6
fix tests
alperozturk96 Apr 4, 2025
92402fd
do-not fail whole import process
alperozturk96 Apr 4, 2025
cc65b51
ci: Add alternative checksum
AndyScherzinger Apr 4, 2025
d5e9dc7
fix: Update linked dependicies for kotlin upgrade
AndyScherzinger Apr 4, 2025
42dc21c
Merge pull request #14754 from nextcloud/renovate/kotlin
AndyScherzinger Apr 4, 2025
16495c7
fix(deps): update dependency androidx.compose:compose-bom to v2025.03.01
renovate[bot] Apr 4, 2025
4e40875
fix(deps): update jacoco_version to v0.8.13
renovate[bot] Apr 4, 2025
8e39189
chore(deps): update reactivecircus/android-emulator-runner action to …
renovate[bot] Apr 4, 2025
3c960c4
Merge pull request #14765 from nextcloud/renovate/reactivecircus-andr…
AndyScherzinger Apr 4, 2025
ada5b8c
Merge pull request #14764 from nextcloud/renovate/jacoco_versionu
AndyScherzinger Apr 4, 2025
097d792
fix(deps): update daggerversion to v2.56.1
renovate[bot] Apr 4, 2025
c7081d7
Merge pull request #14767 from nextcloud/renovate/daggerversion
AndyScherzinger Apr 4, 2025
864b934
Merge pull request #14761 from nextcloud/renovate/composebom
AndyScherzinger Apr 4, 2025
e9a24ea
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 5, 2025
8af18b6
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 6, 2025
fb70e4c
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 7, 2025
9acaf83
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
nextcloud-android-bot Apr 8, 2025
2dbf4a3
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 8, 2025
369720b
Merge pull request #14774 from nextcloud/repo-sync/android-config/master
AndyScherzinger Apr 8, 2025
92c4f49
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 9, 2025
99d7dde
Merge pull request #14751 from nextcloud/bugfix/contract-import-worke…
tobiasKaminsky Apr 9, 2025
500b674
Merge pull request #14721 from nextcloud/bugfix/e2ee-recommended-file…
tobiasKaminsky Apr 9, 2025
a1a553e
fix
alperozturk96 Mar 20, 2025
1a99da9
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 10, 2025
54dc9c9
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
nextcloud-android-bot Apr 10, 2025
240c536
Merge pull request #14780 from nextcloud/repo-sync/android-config/master
AndyScherzinger Apr 10, 2025
14bed26
fix git conflicts
alperozturk96 Apr 2, 2025
0f4202a
use master lib hash
alperozturk96 Apr 9, 2025
8f08047
fix tests
alperozturk96 Apr 10, 2025
f40732a
Fix(l10n): Update translations from Transifex
nextcloud-bot Apr 11, 2025
b5c3663
Merge pull request #14727 from nextcloud/bugfix/use-long-for-last-given
alperozturk96 Apr 11, 2025
302a4a2
Merge pull request #14714 from nextcloud/fix-file-details-activities-…
alperozturk96 Apr 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove test due to file existance check
Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk96 committed Mar 31, 2025
commit 188858a0ef743ba255dc641c2ddc935e376b75ad
Original file line number Diff line number Diff line change
@@ -8,8 +8,7 @@
package com.nextcloud.client.utils

import com.nextcloud.client.preferences.SubFolderRule
import com.nextcloud.utils.extensions.filterEnabledOrWithoutParentInEnabledSet
import com.nextcloud.utils.extensions.filterEnabledSubfoldersWithEnabledParent
import com.nextcloud.utils.extensions.filterEnabledOrWithoutEnabledParent
import com.owncloud.android.datamodel.MediaFolderType
import com.owncloud.android.datamodel.SyncedFolder
import com.owncloud.android.datamodel.SyncedFolderDisplayItem
@@ -23,7 +22,7 @@ class SyncedFolderDisplayItemExtensionsTests {
val list = listOf(
SyncedFolderDisplayItem(
1,
"/storage/emulated/0/DCIM/my_folder",
"/root/my_folder",
"/InstantUpload/",
true,
false,
@@ -43,7 +42,7 @@ class SyncedFolderDisplayItemExtensionsTests {
),
SyncedFolderDisplayItem(
2,
"/storage/emulated/0/DCIM/my_folder/B",
"/root/my_folder/B",
"/InstantUpload/",
true,
false,
@@ -63,7 +62,7 @@ class SyncedFolderDisplayItemExtensionsTests {
),
SyncedFolderDisplayItem(
3,
"/storage/emulated/0/DCIM/my_folder_2",
"/root/my_folder_2",
"/InstantUpload/",
true,
false,
@@ -83,85 +82,12 @@ class SyncedFolderDisplayItemExtensionsTests {
)
)

val filteredList = list.filterEnabledOrWithoutParentInEnabledSet()
val filteredList = list.filterEnabledOrWithoutEnabledParent()

val firstItem = filteredList.find { it.id == 1L }
val secondItem = filteredList.find { it.id == 3L }

assert(firstItem != null)
assert(secondItem != null)
}

@Suppress("MagicNumber", "LongMethod")
@Test
fun testFilterEnabledSubfoldersWithEnabledParent() {
val list = listOf(
SyncedFolderDisplayItem(
1,
"/storage/emulated/0/DCIM/my_folder",
"/InstantUpload/",
true,
false,
false,
true,
"test@https://nextcloud.localhost",
0,
0,
true,
1000,
"my_folder",
MediaFolderType.IMAGE,
false,
SubFolderRule.YEAR_MONTH,
false,
SyncedFolder.NOT_SCANNED_YET
),
SyncedFolderDisplayItem(
2,
"/storage/emulated/0/DCIM/my_folder/B",
"/InstantUpload/",
true,
false,
false,
true,
"test@https://nextcloud.localhost",
0,
0,
false,
1000,
"B",
MediaFolderType.IMAGE,
false,
SubFolderRule.YEAR_MONTH,
false,
SyncedFolder.NOT_SCANNED_YET
),
SyncedFolderDisplayItem(
3,
"/storage/emulated/0/DCIM/my_folder_2",
"/InstantUpload/",
true,
false,
false,
true,
"test@https://nextcloud.localhost",
0,
0,
true,
1000,
"my_folder_2",
MediaFolderType.IMAGE,
false,
SubFolderRule.YEAR_MONTH,
false,
SyncedFolder.NOT_SCANNED_YET
)
)

val filteredList = list.filterEnabledSubfoldersWithEnabledParent()

val firstItem = filteredList.find { it.localPath == "/storage/emulated/0/DCIM/my_folder/B" }

assert(firstItem != null && filteredList.size == 1)
}
}