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

Nextcloud implementation for Device Sync #3370

Merged
merged 35 commits into from
Feb 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
09b76d5
Start working with NextCloud support
tuomas2 Jan 9, 2025
f65fd06
NextCloud succesfully creates folder on cloud server
tuomas2 Jan 9, 2025
9c502ac
Continued
tuomas2 Jan 10, 2025
5633254
Merge branch 'current-stable' into nextcloud
tuomas2 Jan 11, 2025
8707033
Merge branch 'current-stable' into nextcloud
tuomas2 Jan 11, 2025
a9b474f
Nextcloud sync now works
tuomas2 Jan 11, 2025
1b33fb8
Fixes
tuomas2 Jan 11, 2025
8f52382
Merge branch 'current-stable' into nextcloud
tuomas2 Jan 16, 2025
855b919
Add files from https://github.com/nextcloud/android-library
tuomas2 Jan 16, 2025
a8a8098
Method
tuomas2 Jan 16, 2025
3215c4e
Implement efficient listFiles for NextCloud
tuomas2 Jan 16, 2025
185491e
Add comment about nextCloud related thing
tuomas2 Jan 16, 2025
038fb23
Add file headers
tuomas2 Jan 16, 2025
06c2f53
Move next cloud adapter to its folder
tuomas2 Jan 16, 2025
6a9bed4
Improve indentation
tuomas2 Jan 16, 2025
dc80475
Add comments
tuomas2 Jan 16, 2025
b2baa7b
Increment version
tuomas2 Jan 16, 2025
a5109f2
Fix production compile
tuomas2 Jan 16, 2025
d83b3e2
Try adding proguard rules from https://github.com/nextcloud/android-l…
tuomas2 Jan 16, 2025
c6843af
Fix proguard rules
tuomas2 Jan 16, 2025
a4be4b3
Fix exception handling in NextCloudAdapter
tuomas2 Jan 16, 2025
8e3a681
Do not sync if not active window
tuomas2 Jan 17, 2025
95d02ba
Do not throw if there's no exception
tuomas2 Jan 17, 2025
df57c54
Fix NextCloud findFiles
tuomas2 Jan 30, 2025
afa5d26
Add nextcloud-search.http (debugging nextcloud) to repository
tuomas2 Jan 30, 2025
763dc7d
Implement method to make sure device is syncing already known sync so…
tuomas2 Feb 1, 2025
b5d40bc
Clean up code and remove unnecessary gets
tuomas2 Feb 1, 2025
0ef23c9
Fix issue with createNewFolder
tuomas2 Feb 1, 2025
c07e25b
Merge branch 'current-stable' into nextcloud
tuomas2 Feb 3, 2025
b94b411
Merge branch 'current-stable' into nextcloud
tuomas2 Feb 3, 2025
2d1a7d3
Add beta flag to NextCloud item
tuomas2 Feb 3, 2025
516f809
Merge branch 'current-stable' into nextcloud
tuomas2 Feb 3, 2025
4074423
Fix NextCloudSearchMethod timestamp to API 23 compatible format
tuomas2 Feb 13, 2025
6f595fd
Disable nextcloud settings when signed in
tuomas2 Feb 13, 2025
bf85847
Try to fix hourglass issue
tuomas2 Feb 13, 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
Add comment about nextCloud related thing
tuomas2 committed Jan 16, 2025
commit 185491edc11a63b8c90b47c04209e46c57034d45
Original file line number Diff line number Diff line change
@@ -99,6 +99,12 @@ class NextCloudAdapter(
): List<CloudFile> {
val results = (parentsIds?: listOf("/")).asyncMap { parentId ->
val parentFolder = "/" + parentId.trimStart('/').trimEnd('/') + "/"
// NextCloudSearchMethod method is used for searching recently modified
// patch files (more efficient than listing them all).
// Method search scope, however, is infinitely deep (NextCloud server, as
// of writing this, does not seem to care about d:depth definition at all,
// so for listing folders (when createdTimeAtLeast is null) we use
// ReadFolderRemoteOperation instead.
val operation = if (createdTimeAtLeast != null) {
val method = NextCloudSearchMethod(
client,