Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
667 commits
Select commit Hold shift + click to select a range
2effb73
Section header (#2923)
marinofaggiana May 15, 2024
0898988
cod
marinofaggiana May 15, 2024
5216dd0
cod
marinofaggiana May 15, 2024
1d08ab6
fix trash images
marinofaggiana May 15, 2024
e0def6c
Fix(l10n): Update translations from Transifex
nextcloud-bot May 16, 2024
384fb19
fix
marinofaggiana May 16, 2024
f35bc93
fix widget
marinofaggiana May 16, 2024
68291b0
fix widget
marinofaggiana May 16, 2024
7e051f6
fix fileProviderStorageExists
marinofaggiana May 16, 2024
843fc10
build 15
marinofaggiana May 16, 2024
b2a3860
Varie (#2925)
marinofaggiana May 16, 2024
a19109c
small fix
marinofaggiana May 17, 2024
3a98b64
gui widget
marinofaggiana May 17, 2024
6ffbd55
tabbar images
marinofaggiana May 17, 2024
95f2df2
remove old code
marinofaggiana May 18, 2024
91236d2
remove old images
marinofaggiana May 18, 2024
f150022
cleaning
marinofaggiana May 18, 2024
7d2d4ca
clear old code
marinofaggiana May 18, 2024
a65efe2
build 16
marinofaggiana May 18, 2024
74a987d
cleaning
marinofaggiana May 18, 2024
1b0fd66
cleaning
marinofaggiana May 18, 2024
c2f9e0f
cleaning
marinofaggiana May 18, 2024
d8bde93
cleaning
marinofaggiana May 18, 2024
66a16ee
cleaning
marinofaggiana May 18, 2024
5773509
cleaning
marinofaggiana May 18, 2024
8b30f72
fix color
marinofaggiana May 19, 2024
b893a32
coding
marinofaggiana May 19, 2024
a87c1b5
coding color
marinofaggiana May 19, 2024
c0e9101
coding color
marinofaggiana May 19, 2024
647f967
coding color
marinofaggiana May 19, 2024
53c6e00
coding color
marinofaggiana May 19, 2024
7555f14
swiftUI Images std
marinofaggiana May 20, 2024
e458015
improved images
marinofaggiana May 20, 2024
2c13172
images
marinofaggiana May 20, 2024
06065a5
images
marinofaggiana May 20, 2024
6ee9c30
image
marinofaggiana May 20, 2024
ec0b41b
image
marinofaggiana May 20, 2024
2482a14
https://github.com/nextcloud/ios/issues/2291
marinofaggiana May 20, 2024
9563c8f
cleaning
marinofaggiana May 20, 2024
624b361
Fix(l10n): Update translations from Transifex
nextcloud-bot May 21, 2024
d31b039
fic color
marinofaggiana May 21, 2024
edf05cc
improvements
marinofaggiana May 21, 2024
e398bad
images
marinofaggiana May 21, 2024
a7a092d
images
marinofaggiana May 21, 2024
32e2d18
images
marinofaggiana May 21, 2024
dd1491a
Build 17
marinofaggiana May 21, 2024
ef1137a
fix Login disable_intro
marinofaggiana May 21, 2024
88b1f67
Build 18
marinofaggiana May 21, 2024
6004a9c
Fix(l10n): Update translations from Transifex
nextcloud-bot May 22, 2024
cc46e83
fix login
marinofaggiana May 22, 2024
51d060f
windowForRootViewController
marinofaggiana May 22, 2024
a28556f
Build 19
marinofaggiana May 22, 2024
540a67a
fix PRJ
marinofaggiana May 22, 2024
0b8fe16
Service not in backgrounf
marinofaggiana May 22, 2024
7f6cf8e
Fix(l10n): Update translations from Transifex
nextcloud-bot May 23, 2024
7762461
fix localized
marinofaggiana May 23, 2024
e328ca8
new check background task
marinofaggiana May 23, 2024
473bcad
fix
marinofaggiana May 23, 2024
726072d
new build
marinofaggiana May 23, 2024
c2d7c8a
Fix(l10n): Update translations from Transifex
nextcloud-bot May 24, 2024
c65ec86
NextcloudKit V 3.0.1
marinofaggiana May 24, 2024
6c9d8f7
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana May 24, 2024
6ef29ff
fix Error: invalid redeclaration of 'scrollViewWillBeginDragging'
marinofaggiana May 24, 2024
73c9d97
Fix(l10n): Update translations from Transifex
nextcloud-bot May 25, 2024
c154327
NavigationRightItems crash (#2934)
marinofaggiana May 28, 2024
f48e050
Build 1 (small fix)
marinofaggiana May 29, 2024
95c8f81
Build 2
marinofaggiana May 29, 2024
e320138
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana May 30, 2024
4bc08ff
coding
marinofaggiana May 31, 2024
a37b32f
Revamp settings section (#2938)
marinofaggiana Jun 4, 2024
a5dd79b
content mode
marinofaggiana Jun 5, 2024
08c2dd7
fix
marinofaggiana Jun 5, 2024
622e88a
fix upload (replace)
marinofaggiana Jun 5, 2024
b07a962
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 5, 2024
ec127de
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 5, 2024
463dfff
localizable
marinofaggiana Jun 5, 2024
98d15d7
cleaning
marinofaggiana Jun 5, 2024
98264e8
Version 5.4.0
marinofaggiana Jun 5, 2024
b90cec2
cleaning
marinofaggiana Jun 5, 2024
f3762b0
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 6, 2024
b325796
Cleaning old code (#2941)
marinofaggiana Jun 6, 2024
2b2cc81
remove old code (cleaning)
marinofaggiana Jun 6, 2024
42c713e
remove old code
marinofaggiana Jun 6, 2024
9d8b6a4
cleaning code
marinofaggiana Jun 6, 2024
db82c9c
cleaning
marinofaggiana Jun 6, 2024
b6afa60
new build
marinofaggiana Jun 6, 2024
ab74fc7
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 7, 2024
9ba2062
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 8, 2024
e626763
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 9, 2024
0fd93dc
https://github.com/nextcloud/ios/issues/2937
marinofaggiana Jun 10, 2024
e4223e8
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 11, 2024
55041f6
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 12, 2024
919b989
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 13, 2024
391dc2d
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 15, 2024
5a4e710
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 21, 2024
d3b57b2
Revamp manageaccount (#2951)
marinofaggiana Jun 21, 2024
13c3059
fix
marinofaggiana Jun 21, 2024
811fd63
build 2
marinofaggiana Jun 21, 2024
cf8e3ef
cleaning
marinofaggiana Jun 21, 2024
8ccbb60
add title
marinofaggiana Jun 21, 2024
ca02662
Improved settings
marinofaggiana Jun 21, 2024
d7cfecf
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 21, 2024
a8e8950
fix icons scan
marinofaggiana Jun 21, 2024
4a63a99
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 22, 2024
63aadae
Update Realm + OpenSSL
marinofaggiana Jun 22, 2024
0f2174d
Create document (#2954)
marinofaggiana Jun 22, 2024
c06b0e3
fix proj
marinofaggiana Jun 22, 2024
68f2c7d
cleaning
marinofaggiana Jun 22, 2024
7797d3e
fix directory
marinofaggiana Jun 22, 2024
7139dc7
Revert "cleaning"
marinofaggiana Jun 22, 2024
cc6a56d
improvements
marinofaggiana Jun 22, 2024
11702bd
normalized + fix
marinofaggiana Jun 22, 2024
54ba57d
normalized
marinofaggiana Jun 22, 2024
5c67204
armonized
marinofaggiana Jun 22, 2024
e6c45eb
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 23, 2024
1d4d982
mask filename
marinofaggiana Jun 23, 2024
dd990c6
build 4
marinofaggiana Jun 23, 2024
58b5430
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 24, 2024
38c26ef
Enable Login v2 (#2908)
mpivchev Jun 24, 2024
793bcfc
Improved image & code (#2958)
marinofaggiana Jun 24, 2024
af20510
cleaning
marinofaggiana Jun 24, 2024
c2b65f0
Code improvements
marinofaggiana Jun 24, 2024
56f2925
build 5
marinofaggiana Jun 24, 2024
44cdde6
lint
marinofaggiana Jun 24, 2024
1d331c2
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 25, 2024
755e07d
cleaning
marinofaggiana Jun 25, 2024
02eb6e8
cleaning
marinofaggiana Jun 25, 2024
4f7e168
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 26, 2024
c825e74
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 27, 2024
b0c2803
Scan document: added the modify (#2959)
marinofaggiana Jun 27, 2024
28143d8
Filename + move object-c to swift (#2961)
marinofaggiana Jun 27, 2024
2ab2059
Build 6
marinofaggiana Jun 27, 2024
ec001ee
fix
marinofaggiana Jun 27, 2024
562f242
icon changed
marinofaggiana Jun 27, 2024
6849606
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 28, 2024
aae2a7d
Deep link support for screens navigation (#2963)
marinofaggiana Jun 28, 2024
78da6ed
new build
marinofaggiana Jun 28, 2024
45f800b
Improved strings
marinofaggiana Jun 28, 2024
561691e
improvements
marinofaggiana Jun 28, 2024
28f2407
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 29, 2024
f6ddebf
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 30, 2024
366e410
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 1, 2024
1cbcfb5
build 9
marinofaggiana Jul 1, 2024
64e30af
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Jul 1, 2024
b39ec1a
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 2, 2024
fa5abe6
NextcloudKit Swift (#2970)
marinofaggiana Jul 2, 2024
14f3c55
cleaning code
marinofaggiana Jul 2, 2024
887fb31
improvements
marinofaggiana Jul 2, 2024
7886b55
fix
marinofaggiana Jul 2, 2024
d63670e
cleaning
marinofaggiana Jul 2, 2024
553f481
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 3, 2024
789567d
Improvements varie (#2973)
marinofaggiana Jul 3, 2024
dad0c09
fix
marinofaggiana Jul 3, 2024
84f9efa
https://github.com/nextcloud/ios/issues/2971
marinofaggiana Jul 3, 2024
a1118df
revert
marinofaggiana Jul 3, 2024
039cf67
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 4, 2024
96de02b
Share screen redesign (#2967)
mpivchev Jul 4, 2024
d82c797
(revert)
marinofaggiana Jul 4, 2024
f1af4a1
lint
marinofaggiana Jul 4, 2024
6aa60c4
fix
marinofaggiana Jul 4, 2024
1b85d5a
fix color
marinofaggiana Jul 4, 2024
9bd73a3
lint
marinofaggiana Jul 4, 2024
8c5b870
lint
marinofaggiana Jul 4, 2024
6f841e9
lint
marinofaggiana Jul 4, 2024
32743b6
cod
marinofaggiana Jul 4, 2024
650189f
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 5, 2024
6d38161
File is downloaded when opening text editor (#2976)
marinofaggiana Jul 5, 2024
383b05a
build 1
marinofaggiana Jul 5, 2024
267444c
lint
marinofaggiana Jul 5, 2024
082b900
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 6, 2024
3856b57
improvements
marinofaggiana Jul 6, 2024
1a2d2ea
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
marinofaggiana Jul 6, 2024
a0a8e19
lint
marinofaggiana Jul 6, 2024
7875c83
lint
marinofaggiana Jul 6, 2024
dafb384
lint
marinofaggiana Jul 6, 2024
f3af759
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 7, 2024
31131b7
fix
marinofaggiana Jul 8, 2024
6c8bcc4
fix
marinofaggiana Jul 8, 2024
d23e4aa
Build 2
marinofaggiana Jul 8, 2024
d1789fe
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 9, 2024
0e975a9
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 10, 2024
1c8854a
File provider extension (fix & improvements) (#2978)
marinofaggiana Jul 10, 2024
8577a50
5.5.0 build 3
marinofaggiana Jul 10, 2024
a1a06ea
File provider extension (#2979)
marinofaggiana Jul 11, 2024
8533179
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 13, 2024
9b9b09a
File provider extension (#2980)
marinofaggiana Jul 13, 2024
a91fbfe
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 14, 2024
e2d80d5
Photo view (#2981)
marinofaggiana Jul 15, 2024
7c3ab8d
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 17, 2024
53d8e4c
Improvements varie (#2983)
marinofaggiana Jul 17, 2024
7315867
build 5
marinofaggiana Jul 17, 2024
a477bc3
fix db -> new build
marinofaggiana Jul 18, 2024
213e902
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 19, 2024
95cd7c7
Cookies (#2985)
marinofaggiana Jul 19, 2024
4080815
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 20, 2024
3efb493
Nc media layout header (#2986)
marinofaggiana Jul 20, 2024
3b198ea
Lint
marinofaggiana Jul 20, 2024
610c1a0
Account create (#2987)
marinofaggiana Jul 21, 2024
c7e4f79
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 22, 2024
ec1f537
cod
marinofaggiana Jul 22, 2024
9577885
new build
marinofaggiana Jul 22, 2024
9ecc768
improvements
marinofaggiana Jul 23, 2024
189eb47
Build 8
marinofaggiana Jul 23, 2024
0b94717
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 24, 2024
86812b6
fix name
marinofaggiana Jul 24, 2024
40abaa3
cod
marinofaggiana Jul 24, 2024
b91dab2
cod
marinofaggiana Jul 24, 2024
0a55d3f
header
marinofaggiana Jul 24, 2024
454525b
footer
marinofaggiana Jul 24, 2024
b84852a
footer
marinofaggiana Jul 24, 2024
70cd82c
build 9
marinofaggiana Jul 24, 2024
f7fe80d
fix autoupload
marinofaggiana Jul 24, 2024
670b737
build 10
marinofaggiana Jul 24, 2024
e0a5d42
Fix crash (#2992)
mpivchev Jul 24, 2024
dedda73
fix
marinofaggiana Jul 24, 2024
3241edb
Fix (#2993)
mpivchev Jul 24, 2024
b401ca6
Build 11
marinofaggiana Jul 25, 2024
3493a50
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 26, 2024
9084164
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Jul 26, 2024
60bde88
Revert "Merge remote-tracking branch 'origin/master' into develop"
marinofaggiana Jul 26, 2024
9be001c
Version 5.5.0 (#2994) (#2996)
marinofaggiana Jul 26, 2024
f337c31
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 27, 2024
74249b1
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 28, 2024
d026880
capabilities button in settings / certificate settings user (#3003)
marinofaggiana Jul 30, 2024
42bf6af
fix (#3001)
marinofaggiana Jul 30, 2024
dc11f0a
FileProviderExtension (#3004)
marinofaggiana Jul 30, 2024
a156077
new build
marinofaggiana Jul 30, 2024
68fcde0
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Jul 30, 2024
bffc948
NextcloudKit + Account (#3006)
marinofaggiana Jul 31, 2024
df8eda9
Remove comments
mpivchev Aug 1, 2024
851b5ef
Add warning for configuration profile via Safari (#3008)
mpivchev Aug 5, 2024
d52a8aa
Fix push same viewController in different navigationController
marinofaggiana Aug 5, 2024
803116b
Fix(l10n): Update translations from Transifex
nextcloud-bot Aug 6, 2024
c2f272a
Scroll to top when pressing a tab again (#3009)
mpivchev Aug 6, 2024
e0238a7
Improved photo view (header) (#3011)
marinofaggiana Aug 6, 2024
ca62985
WIP (#3010)
mpivchev Aug 6, 2024
de21b3b
WIP
mpivchev Aug 6, 2024
4fff5a6
Remove red
mpivchev Aug 6, 2024
2d8e6b3
https://github.com/nextcloud/ios/issues/3012
marinofaggiana Aug 6, 2024
06623cc
new Version
marinofaggiana Aug 6, 2024
cb325ec
build 11
marinofaggiana Aug 6, 2024
fb132c7
cod (#3014)
marinofaggiana Aug 6, 2024
cc3c5a8
Build 12
marinofaggiana Aug 6, 2024
d91312a
wip
marinofaggiana Aug 6, 2024
c70f2ac
cleaning
marinofaggiana Aug 6, 2024
e2f2924
cleaning
marinofaggiana Aug 6, 2024
4333f0a
cleaning
marinofaggiana Aug 6, 2024
5b722ae
build 13
marinofaggiana Aug 6, 2024
37247cd
Fix(l10n): Update translations from Transifex
nextcloud-bot Aug 7, 2024
452dca1
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Aug 7, 2024
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
2 changes: 1 addition & 1 deletion File Provider Extension/FileProviderEnumerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator {
let predicate = NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.shared.account, serverUrl)

if pageNumber == 1 {
NextcloudKit.shared.readFileOrFolder(serverUrlFileName: serverUrl, depth: "1", showHiddenFiles: NCKeychain().showHiddenFiles) { _, files, _, error in
NextcloudKit.shared.readFileOrFolder(serverUrlFileName: serverUrl, depth: "1", showHiddenFiles: NCKeychain().showHiddenFiles, account: fileProviderData.shared.account) { _, files, _, error in
if error == .success {
NCManageDatabase.shared.convertFilesToMetadatas(files, useFirstAsMetadataFolder: true) { metadataFolder, metadatas in
/// FOLDER
Expand Down
12 changes: 6 additions & 6 deletions File Provider Extension/FileProviderExtension+Actions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ extension FileProviderExtension {
let directoryName = utilityFileSystem.createFileName(directoryName, serverUrl: tableDirectory.serverUrl, account: fileProviderData.shared.account)
let serverUrlFileName = tableDirectory.serverUrl + "/" + directoryName

NextcloudKit.shared.createFolder(serverUrlFileName: serverUrlFileName) { _, ocId, _, error in
NextcloudKit.shared.createFolder(serverUrlFileName: serverUrlFileName, account: fileProviderData.shared.account) { _, ocId, _, error in
if error == .success {
NextcloudKit.shared.readFileOrFolder(serverUrlFileName: serverUrlFileName, depth: "0", showHiddenFiles: NCKeychain().showHiddenFiles) { _, files, _, error in
NextcloudKit.shared.readFileOrFolder(serverUrlFileName: serverUrlFileName, depth: "0", showHiddenFiles: NCKeychain().showHiddenFiles, account: fileProviderData.shared.account) { _, files, _, error in
if error == .success, let file = files.first {
let isDirectoryEncrypted = self.utilityFileSystem.isDirectoryE2EE(file: file)
let metadata = NCManageDatabase.shared.convertFileToMetadata(file, isDirectoryE2EE: isDirectoryEncrypted)
Expand Down Expand Up @@ -69,7 +69,7 @@ extension FileProviderExtension {
let serverUrl = metadata.serverUrl
let fileName = metadata.fileName

NextcloudKit.shared.deleteFileOrFolder(serverUrlFileName: serverUrlFileName) { account, error in
NextcloudKit.shared.deleteFileOrFolder(serverUrlFileName: serverUrlFileName, account: metadata.account) { account, error in
if error == .success { // || error == kOCErrorServerPathNotFound {
let fileNamePath = self.utilityFileSystem.getDirectoryProviderStorageOcId(itemIdentifier.rawValue)

Expand Down Expand Up @@ -107,7 +107,7 @@ extension FileProviderExtension {
let serverUrlTo = tableDirectoryTo.serverUrl
let fileNameTo = serverUrlTo + "/" + itemFrom.filename

NextcloudKit.shared.moveFileOrFolder(serverUrlFileNameSource: fileNameFrom, serverUrlFileNameDestination: fileNameTo, overwrite: false) { account, error in
NextcloudKit.shared.moveFileOrFolder(serverUrlFileNameSource: fileNameFrom, serverUrlFileNameDestination: fileNameTo, overwrite: false, account: metadataFrom.account) { account, error in
if error == .success {
if metadataFrom.directory {
NCManageDatabase.shared.deleteDirectoryAndSubDirectory(serverUrl: serverUrlFrom, account: account)
Expand Down Expand Up @@ -138,7 +138,7 @@ extension FileProviderExtension {
let fileNamePathTo = metadata.serverUrl + "/" + itemName
let ocId = metadata.ocId

NextcloudKit.shared.moveFileOrFolder(serverUrlFileNameSource: fileNamePathFrom, serverUrlFileNameDestination: fileNamePathTo, overwrite: false) { account, error in
NextcloudKit.shared.moveFileOrFolder(serverUrlFileNameSource: fileNamePathFrom, serverUrlFileNameDestination: fileNamePathTo, overwrite: false, account: metadata.account) { account, error in
if error == .success {
// Rename metadata
NCManageDatabase.shared.renameMetadata(fileNameTo: itemName, ocId: ocId)
Expand Down Expand Up @@ -185,7 +185,7 @@ extension FileProviderExtension {

if (favorite == true && metadata.favorite == false) || (favorite == false && metadata.favorite == true) {
let fileNamePath = utilityFileSystem.getFileNamePath(metadata.fileName, serverUrl: metadata.serverUrl, urlBase: metadata.urlBase, userId: metadata.userId)
NextcloudKit.shared.setFavorite(fileName: fileNamePath, favorite: favorite) { _, error in
NextcloudKit.shared.setFavorite(fileName: fileNamePath, favorite: favorite, account: metadata.account) { _, error in
if error == .success {
guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(ocId) else {
return completionHandler(nil, NSFileProviderError(.noSuchItem))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extension FileProviderExtension {
}
let fileNameIconLocalPath = utilityFileSystem.getDirectoryProviderStorageIconOcId(metadata.ocId, etag: metadata.etag)

NextcloudKit.shared.downloadPreview(fileId: metadata.fileId, widthPreview: Int(size.width), heightPreview: Int(size.height), etag: metadata.etag) { _ in
NextcloudKit.shared.downloadPreview(fileId: metadata.fileId, widthPreview: Int(size.width), heightPreview: Int(size.height), etag: metadata.etag, account: metadata.account) { _ in
} completion: { _, data, error in
if error == .success, let data {
do {
Expand Down
6 changes: 3 additions & 3 deletions File Provider Extension/FileProviderExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class FileProviderExtension: NSFileProviderExtension {
/// SIGNAL
fileProviderData.shared.signalEnumerator(ocId: metadata.ocId, type: .update)

NextcloudKit.shared.download(serverUrlFileName: serverUrlFileName, fileNameLocalPath: fileNameLocalPath, requestHandler: { _ in
NextcloudKit.shared.download(serverUrlFileName: serverUrlFileName, fileNameLocalPath: fileNameLocalPath, account: metadata.account, requestHandler: { _ in
}, taskHandler: { task in
NCManageDatabase.shared.setMetadataSession(ocId: metadata.ocId,
taskIdentifier: task.taskIdentifier)
Expand Down Expand Up @@ -254,7 +254,7 @@ class FileProviderExtension: NSFileProviderExtension {
sessionError: "",
selector: "",
status: NCGlobal.shared.metadataStatusUploading)
if let task = NKBackground(nkCommonInstance: NextcloudKit.shared.nkCommonInstance).upload(serverUrlFileName: serverUrlFileName, fileNameLocalPath: url.path, dateCreationFile: nil, dateModificationFile: nil, session: NCNetworking.shared.sessionManagerUploadBackgroundExtension) {
if let task = NKBackground(nkCommonInstance: NextcloudKit.shared.nkCommonInstance).upload(serverUrlFileName: serverUrlFileName, fileNameLocalPath: url.path, dateCreationFile: nil, dateModificationFile: nil, account: metadata.account, session: NCNetworking.shared.sessionManagerUploadBackgroundExtension) {
NCManageDatabase.shared.setMetadataSession(ocId: metadata.ocId,
status: NCGlobal.shared.metadataStatusUploading,
taskIdentifier: task.taskIdentifier)
Expand Down Expand Up @@ -318,7 +318,7 @@ class FileProviderExtension: NSFileProviderExtension {
let serverUrlFileName = tableDirectory.serverUrl + "/" + fileName
let fileNameLocalPath = self.utilityFileSystem.getDirectoryProviderStorageOcId(ocIdTemp, fileNameView: fileName)

if let task = NKBackground(nkCommonInstance: NextcloudKit.shared.nkCommonInstance).upload(serverUrlFileName: serverUrlFileName, fileNameLocalPath: fileNameLocalPath, dateCreationFile: nil, dateModificationFile: nil, session: NCNetworking.shared.sessionManagerUploadBackgroundExtension) {
if let task = NKBackground(nkCommonInstance: NextcloudKit.shared.nkCommonInstance).upload(serverUrlFileName: serverUrlFileName, fileNameLocalPath: fileNameLocalPath, dateCreationFile: nil, dateModificationFile: nil, account: metadata.account, session: NCNetworking.shared.sessionManagerUploadBackgroundExtension) {
NCManageDatabase.shared.setMetadataSession(ocId: metadata.ocId,
status: NCGlobal.shared.metadataStatusUploading,
taskIdentifier: task.taskIdentifier)
Expand Down
10 changes: 5 additions & 5 deletions Nextcloud.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5414,7 +5414,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 13;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = NKUJUXUJ3B;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -5441,7 +5441,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 5.5.2;
MARKETING_VERSION = 5.5.3;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = "";
Expand Down Expand Up @@ -5480,7 +5480,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 13;
DEVELOPMENT_TEAM = NKUJUXUJ3B;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -5504,7 +5504,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 5.5.2;
MARKETING_VERSION = 5.5.3;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = "";
Expand Down Expand Up @@ -5779,7 +5779,7 @@
repositoryURL = "https://github.com/nextcloud/NextcloudKit";
requirement = {
kind = exactVersion;
version = 4.0.3;
version = 4.0.4;
};
};
F788ECC5263AAAF900ADC67F /* XCRemoteSwiftPackageReference "MarkdownKit" */ = {
Expand Down
2 changes: 1 addition & 1 deletion Share/NCShareExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class NCShareExtension: UIViewController {
}

@objc func actionCreateFolder() {
let alertController = UIAlertController.createFolder(serverUrl: serverUrl, urlBase: activeAccount) { error in
let alertController = UIAlertController.createFolder(serverUrl: serverUrl, userBaseUrl: activeAccount) { error in
guard error != .success else { return }
self.showAlert(title: "_error_createsubfolders_upload_", description: error.errorDescription)
}
Expand Down
4 changes: 2 additions & 2 deletions Widget/Dashboard/DashboardData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func getDashboardDataEntry(configuration: DashboardIntent?, isPreview: Bool, dis
let titleImage = imagetmp

let options = NKRequestOptions(timeout: 90, queue: NextcloudKit.shared.nkCommonInstance.backgroundQueue)
NextcloudKit.shared.getDashboardWidgetsApplication(id, options: options) { _, results, data, error in
NextcloudKit.shared.getDashboardWidgetsApplication(id, account: account.account, options: options) { _, results, data, error in
Task {
var datas = [DashboardData]()
var numberItems = 0
Expand Down Expand Up @@ -225,7 +225,7 @@ func getDashboardDataEntry(configuration: DashboardIntent?, isPreview: Bool, dis
if FileManager().fileExists(atPath: fileNamePath), let image = UIImage(contentsOfFile: fileNamePath) {
icon = image
} else {
let (_, data, error) = await NCNetworking.shared.downloadPreview(url: url)
let (_, data, error) = await NCNetworking.shared.downloadPreview(url: url, account: account.account)
if error == .success,
let image = convertDataToImage(data: data, size: CGSize(width: 256, height: 256), fileNameToWrite: fileName) {
icon = image
Expand Down
4 changes: 2 additions & 2 deletions Widget/Files/FilesData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func getFilesDataEntry(configuration: AccountIntent?, isPreview: Bool, displaySi
}

let options = NKRequestOptions(timeout: 30, queue: NextcloudKit.shared.nkCommonInstance.backgroundQueue)
NextcloudKit.shared.searchBodyRequest(serverUrl: account.urlBase, requestBody: requestBody, showHiddenFiles: NCKeychain().showHiddenFiles, options: options) { _, files, data, error in
NextcloudKit.shared.searchBodyRequest(serverUrl: account.urlBase, requestBody: requestBody, showHiddenFiles: NCKeychain().showHiddenFiles, account: account.account, options: options) { _, files, data, error in
Task {
var datas: [FilesData] = []
let title = getTitleFilesWidget(account: account)
Expand Down Expand Up @@ -223,7 +223,7 @@ func getFilesDataEntry(configuration: AccountIntent?, isPreview: Bool, displaySi
}
if image == nil, file.hasPreview {
let sizePreview = NCUtility().getSizePreview(width: Int(file.width), height: Int(file.height))
let (_, _, imageIcon, _, _, _) = await NCNetworking.shared.downloadPreview(fileId: file.fileId, fileNamePreviewLocalPath: fileNamePreviewLocalPath, fileNameIconLocalPath: fileNameIconLocalPath, widthPreview: Int(sizePreview.width), heightPreview: Int(sizePreview.height), sizeIcon: NCGlobal.shared.sizeIcon, options: options)
let (_, _, imageIcon, _, _, _) = await NCNetworking.shared.downloadPreview(fileId: file.fileId, fileNamePreviewLocalPath: fileNamePreviewLocalPath, fileNameIconLocalPath: fileNameIconLocalPath, widthPreview: Int(sizePreview.width), heightPreview: Int(sizePreview.height), sizeIcon: NCGlobal.shared.sizeIcon, account: account.account, options: options)
image = imageIcon
}
if image == nil {
Expand Down
6 changes: 3 additions & 3 deletions Widget/Lockscreen/LockscreenData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func getLockscreenDataEntry(configuration: AccountIntent?, isPreview: Bool, fami
account = NCManageDatabase.shared.getAccount(predicate: NSPredicate(format: "account == %@", accountIdentifier))
}

guard let account = account else {
guard let account else {
return completion(LockscreenData(date: Date(), isPlaceholder: true, activity: "", link: URL(string: "https://")!, quotaRelative: 0, quotaUsed: "", quotaTotal: "", error: false))
}

Expand All @@ -78,7 +78,7 @@ func getLockscreenDataEntry(configuration: AccountIntent?, isPreview: Bool, fami
let options = NKRequestOptions(timeout: 90, queue: NextcloudKit.shared.nkCommonInstance.backgroundQueue)
if #available(iOSApplicationExtension 16.0, *) {
if family == .accessoryCircular {
NextcloudKit.shared.getUserProfile(options: options) { _, userProfile, _, error in
NextcloudKit.shared.getUserProfile(account: account.account, options: options) { _, userProfile, _, error in
if error == .success, let userProfile = userProfile {
if userProfile.quotaRelative > 0 {
quotaRelative = Float(userProfile.quotaRelative) / 100
Expand All @@ -102,7 +102,7 @@ func getLockscreenDataEntry(configuration: AccountIntent?, isPreview: Bool, fami
}
}
} else if family == .accessoryRectangular {
NextcloudKit.shared.getDashboardWidgetsApplication("activity", options: options) { _, results, _, error in
NextcloudKit.shared.getDashboardWidgetsApplication("activity", account: account.account, options: options) { _, results, _, error in
var activity: String = NSLocalizedString("_no_data_available_", comment: "")
var link = URL(string: "https://")!
if error == .success, let result = results?.first {
Expand Down
16 changes: 9 additions & 7 deletions iOSClient/Activity/NCActivity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class NCActivity: UIViewController, NCSharePagingContent {
commentView = Bundle.main.loadNibNamed("NCActivityCommentView", owner: self, options: nil)?.first as? NCActivityCommentView
commentView?.setup(urlBase: appDelegate, account: activeAccount) { newComment in
guard let newComment = newComment, !newComment.isEmpty, let metadata = self.metadata else { return }
NextcloudKit.shared.putComments(fileId: metadata.fileId, message: newComment) { _, error in
NextcloudKit.shared.putComments(fileId: metadata.fileId, message: newComment, account: self.appDelegate.account) { _, error in
if error == .success {
self.commentView?.newCommentField.text?.removeAll()
self.loadComments()
Expand Down Expand Up @@ -264,7 +264,7 @@ extension NCActivity: UITableViewDataSource {
cell.icon.image = image.withTintColor(NCBrandColor.shared.textColor, renderingMode: .alwaysOriginal)
}
} else {
NextcloudKit.shared.downloadContent(serverUrl: activity.icon) { _, data, error in
NextcloudKit.shared.downloadContent(serverUrl: activity.icon, account: appDelegate.account) { _, data, error in
if error == .success {
do {
try data!.write(to: NSURL(fileURLWithPath: fileNameLocalPath) as URL, options: .atomic)
Expand Down Expand Up @@ -393,7 +393,7 @@ extension NCActivity {
guard showComments, let metadata = metadata else { return }
disptachGroup?.enter()

NextcloudKit.shared.getComments(fileId: metadata.fileId) { _, comments, _, error in
NextcloudKit.shared.getComments(fileId: metadata.fileId, account: metadata.account) { _, comments, _, error in
if error == .success, let comments = comments {
NCManageDatabase.shared.addComments(comments, account: metadata.account, objectId: metadata.fileId)
} else if error.errorCode != NCGlobal.shared.errorResourceNotFound {
Expand Down Expand Up @@ -422,7 +422,8 @@ extension NCActivity {
limit: 1,
objectId: nil,
objectType: objectType,
previews: true) { task in
previews: true,
account: appDelegate.account) { task in
self.dataSourceTask = task
} completion: { account, _, activityFirstKnown, activityLastGiven, _, error in
defer { disptachGroup.leave() }
Expand Down Expand Up @@ -450,7 +451,8 @@ extension NCActivity {
limit: min(limit, 200),
objectId: metadata?.fileId,
objectType: objectType,
previews: true) { task in
previews: true,
account: appDelegate.account) { task in
self.dataSourceTask = task
} completion: { account, activities, activityFirstKnown, activityLastGiven, _, error in
defer { disptachGroup.leave() }
Expand Down Expand Up @@ -507,7 +509,7 @@ extension NCActivity: NCShareCommentsCellDelegate {
alert.addAction(UIAlertAction(title: NSLocalizedString("_ok_", comment: ""), style: .default, handler: { _ in
guard let message = alert.textFields?.first?.text, !message.isEmpty else { return }

NextcloudKit.shared.updateComments(fileId: metadata.fileId, messageId: tableComments.messageId, message: message) { _, error in
NextcloudKit.shared.updateComments(fileId: metadata.fileId, messageId: tableComments.messageId, message: message, account: self.appDelegate.account) { _, error in
if error == .success {
self.loadComments()
} else {
Expand All @@ -529,7 +531,7 @@ extension NCActivity: NCShareCommentsCellDelegate {
action: { _ in
guard let metadata = self.metadata, let tableComments = tableComments else { return }

NextcloudKit.shared.deleteComments(fileId: metadata.fileId, messageId: tableComments.messageId) { _, error in
NextcloudKit.shared.deleteComments(fileId: metadata.fileId, messageId: tableComments.messageId, account: metadata.account) { _, error in
if error == .success {
self.loadComments()
} else {
Expand Down
2 changes: 0 additions & 2 deletions iOSClient/Activity/NCActivityCommentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,4 @@ extension NCActivityCommentView: UISearchBarDelegate {
searchBar.resignFirstResponder()
completionHandler?(searchBar.text)
}

func searchBarTextDidEndEditing(_ searchBar: UISearchBar) { }
}
Loading