ios/File Provider Extension/FileProviderExtension+Thumb...

60 строки
2.7 KiB
Swift
Исходник Обычный вид История

2018-05-28 16:45:36 +03:00
//
// FileProviderExtension+Thumbnail.swift
// PickerFileProvider
//
// Created by Marino Faggiana on 28/05/18.
2018-10-20 11:36:00 +03:00
// Copyright © 2018 Marino Faggiana. All rights reserved.
2018-05-28 16:45:36 +03:00
//
2018-11-29 14:13:29 +03:00
// Author Marino Faggiana <marino.faggiana@nextcloud.com>
2018-06-28 16:13:25 +03:00
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
2018-05-28 16:45:36 +03:00
2021-05-12 09:17:32 +03:00
import UIKit
2018-05-28 16:45:36 +03:00
import FileProvider
import NextcloudKit
2018-05-28 16:45:36 +03:00
extension FileProviderExtension {
override func fetchThumbnails(for itemIdentifiers: [NSFileProviderItemIdentifier], requestedSize size: CGSize, perThumbnailCompletionHandler: @escaping (NSFileProviderItemIdentifier, Data?, Error?) -> Void, completionHandler: @escaping (Error?) -> Void) -> Progress {
let progress = Progress(totalUnitCount: Int64(itemIdentifiers.count))
var counterProgress: Int64 = 0
add CI (#1711) * fix * 404 * fix * fix * coding * coding * fix * new Cartfile * added: allowedAlbumCloudShared * fix * fix svg * fix * update strings * new version * improved share * coding * coding * coding * coding * improved richWorkspace * fix * added link name (label) * Delete files / Clear cache * fix * test * coding * fix * fix * fix * update * update library * fix * #1642 * add size in share * set title Files as ALIAS * Build 3 * title & alias * improved cleanUp * Improvements pastePasteboard * coding * coding * coding * build 4 * fix * coding * coding * fix * fix * fix share * coding * coding * coding * coding * coding * coding * coding * coding * coding * coding * improved code * nextcloud_unsupported_version 16 * update lib * new lib * new build * Update README.md update readme * new version * update Strings & lib * Update README.md * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Revert "Talk notification" Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update NCCollectionViewCommon.swift Fix selection count (in NCRecent) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Version 4.2.0 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Precompile Brinding header NO Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements passcode Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Revert "Revert "Talk notification"" * Fix TalkNotification room token Get only roomToken if token & message id are present in objectId Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Update iOSClient/Supporting Files/en.lproj/Localizable.strings Co-authored-by: Henry <thisisthefoxe@gmail.com> * Update iOSClient/Settings/NCSettings.m Co-authored-by: Henry <thisisthefoxe@gmail.com> * update comment Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Use `guard` for splash screen checks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvement Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix server trust nitpicks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * New build for TestFlight Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Update NCLoginWeb.swift Use default app user agent for login. This will display *Nextcloud iOS app* in the user settings. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Use device name as user agent for login flow Make sure the user agent is ascii encoded. Will be shown when logging in, granting access and in /settings/user/security Use ONLY for login flow, when user agent is saved to DB. For API requests always use `getUserAgent()` Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Build 2 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix share email, not asked for password Check for password enforcement every time a new share should be created. Will display an alert. If password enforcement is off, callback returns `nil`. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add CI for xcbuild + linting Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "add resolved cartfile for caching" This reverts commit 53532867f906b22be8775220316eb413be2b097e. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * fix GoogleServices.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * update CI to XC 13 + fix GoogleService.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Caching..? Signed-off-by: Henrik Storch <thisisthefoxe@gmail.com> Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Delete lint.yml Remove for now since it seem it causes problems with other PRs Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "Delete lint.yml" This reverts commit 181739526bf76353b992d689a1899296a2dccbcf. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Linting (default, auto) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * SwiftLint customisation (few errors, many warnings) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update .SwiftLint.yml + autocorrect Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix linting Build Successful (?) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix GH actions yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Quarantine infected lint files Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Add initial tests Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * CI: Remove xc clean for extensions Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix notification weak delegate Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update Readme Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> Co-authored-by: marinofaggiana <marino@marinofaggiana.com> Co-authored-by: Nextcloud bot <bot@nextcloud.com>
2021-12-16 16:41:14 +03:00
2018-05-28 16:45:36 +03:00
for itemIdentifier in itemIdentifiers {
2024-07-26 10:09:58 +03:00
guard let metadata = providerUtility.getTableMetadataFromItemIdentifier(itemIdentifier), metadata.hasPreview else {
2019-04-02 17:09:32 +03:00
counterProgress += 1
add CI (#1711) * fix * 404 * fix * fix * coding * coding * fix * new Cartfile * added: allowedAlbumCloudShared * fix * fix svg * fix * update strings * new version * improved share * coding * coding * coding * coding * improved richWorkspace * fix * added link name (label) * Delete files / Clear cache * fix * test * coding * fix * fix * fix * update * update library * fix * #1642 * add size in share * set title Files as ALIAS * Build 3 * title & alias * improved cleanUp * Improvements pastePasteboard * coding * coding * coding * build 4 * fix * coding * coding * fix * fix * fix share * coding * coding * coding * coding * coding * coding * coding * coding * coding * coding * improved code * nextcloud_unsupported_version 16 * update lib * new lib * new build * Update README.md update readme * new version * update Strings & lib * Update README.md * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Revert "Talk notification" Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update NCCollectionViewCommon.swift Fix selection count (in NCRecent) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Version 4.2.0 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Precompile Brinding header NO Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements passcode Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Revert "Revert "Talk notification"" * Fix TalkNotification room token Get only roomToken if token & message id are present in objectId Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Update iOSClient/Supporting Files/en.lproj/Localizable.strings Co-authored-by: Henry <thisisthefoxe@gmail.com> * Update iOSClient/Settings/NCSettings.m Co-authored-by: Henry <thisisthefoxe@gmail.com> * update comment Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Use `guard` for splash screen checks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvement Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix server trust nitpicks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * New build for TestFlight Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Update NCLoginWeb.swift Use default app user agent for login. This will display *Nextcloud iOS app* in the user settings. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Use device name as user agent for login flow Make sure the user agent is ascii encoded. Will be shown when logging in, granting access and in /settings/user/security Use ONLY for login flow, when user agent is saved to DB. For API requests always use `getUserAgent()` Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Build 2 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix share email, not asked for password Check for password enforcement every time a new share should be created. Will display an alert. If password enforcement is off, callback returns `nil`. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add CI for xcbuild + linting Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "add resolved cartfile for caching" This reverts commit 53532867f906b22be8775220316eb413be2b097e. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * fix GoogleServices.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * update CI to XC 13 + fix GoogleService.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Caching..? Signed-off-by: Henrik Storch <thisisthefoxe@gmail.com> Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Delete lint.yml Remove for now since it seem it causes problems with other PRs Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "Delete lint.yml" This reverts commit 181739526bf76353b992d689a1899296a2dccbcf. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Linting (default, auto) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * SwiftLint customisation (few errors, many warnings) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update .SwiftLint.yml + autocorrect Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix linting Build Successful (?) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix GH actions yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Quarantine infected lint files Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Add initial tests Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * CI: Remove xc clean for extensions Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix notification weak delegate Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update Readme Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> Co-authored-by: marinofaggiana <marino@marinofaggiana.com> Co-authored-by: Nextcloud bot <bot@nextcloud.com>
2021-12-16 16:41:14 +03:00
if counterProgress == progress.totalUnitCount { completionHandler(nil) }
2019-04-02 17:09:32 +03:00
continue
}
2024-07-26 10:09:58 +03:00
let fileNameIconLocalPath = utilityFileSystem.getDirectoryProviderStorageIconOcId(metadata.ocId, etag: metadata.etag)
2024-08-07 13:24:28 +03:00
NextcloudKit.shared.downloadPreview(fileId: metadata.fileId, widthPreview: Int(size.width), heightPreview: Int(size.height), etag: metadata.etag, account: metadata.account) { _ in
2024-07-26 10:09:58 +03:00
} completion: { _, data, error in
if error == .success, let data {
do {
try data.write(to: URL(fileURLWithPath: fileNameIconLocalPath), options: .atomic)
} catch { }
perThumbnailCompletionHandler(itemIdentifier, data, nil)
} else {
perThumbnailCompletionHandler(itemIdentifier, nil, NSFileProviderError(.serverUnreachable))
2019-11-11 13:19:29 +03:00
}
2018-05-28 16:45:36 +03:00
counterProgress += 1
add CI (#1711) * fix * 404 * fix * fix * coding * coding * fix * new Cartfile * added: allowedAlbumCloudShared * fix * fix svg * fix * update strings * new version * improved share * coding * coding * coding * coding * improved richWorkspace * fix * added link name (label) * Delete files / Clear cache * fix * test * coding * fix * fix * fix * update * update library * fix * #1642 * add size in share * set title Files as ALIAS * Build 3 * title & alias * improved cleanUp * Improvements pastePasteboard * coding * coding * coding * build 4 * fix * coding * coding * fix * fix * fix share * coding * coding * coding * coding * coding * coding * coding * coding * coding * coding * improved code * nextcloud_unsupported_version 16 * update lib * new lib * new build * Update README.md update readme * new version * update Strings & lib * Update README.md * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Revert "Talk notification" Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update NCCollectionViewCommon.swift Fix selection count (in NCRecent) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Version 4.2.0 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Precompile Brinding header NO Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements passcode Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Revert "Revert "Talk notification"" * Fix TalkNotification room token Get only roomToken if token & message id are present in objectId Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Update iOSClient/Supporting Files/en.lproj/Localizable.strings Co-authored-by: Henry <thisisthefoxe@gmail.com> * Update iOSClient/Settings/NCSettings.m Co-authored-by: Henry <thisisthefoxe@gmail.com> * update comment Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Use `guard` for splash screen checks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvement Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix server trust nitpicks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * New build for TestFlight Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Update NCLoginWeb.swift Use default app user agent for login. This will display *Nextcloud iOS app* in the user settings. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Use device name as user agent for login flow Make sure the user agent is ascii encoded. Will be shown when logging in, granting access and in /settings/user/security Use ONLY for login flow, when user agent is saved to DB. For API requests always use `getUserAgent()` Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Build 2 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix share email, not asked for password Check for password enforcement every time a new share should be created. Will display an alert. If password enforcement is off, callback returns `nil`. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add CI for xcbuild + linting Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "add resolved cartfile for caching" This reverts commit 53532867f906b22be8775220316eb413be2b097e. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * fix GoogleServices.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * update CI to XC 13 + fix GoogleService.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Caching..? Signed-off-by: Henrik Storch <thisisthefoxe@gmail.com> Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Delete lint.yml Remove for now since it seem it causes problems with other PRs Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "Delete lint.yml" This reverts commit 181739526bf76353b992d689a1899296a2dccbcf. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Linting (default, auto) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * SwiftLint customisation (few errors, many warnings) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update .SwiftLint.yml + autocorrect Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix linting Build Successful (?) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix GH actions yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Quarantine infected lint files Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Add initial tests Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * CI: Remove xc clean for extensions Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix notification weak delegate Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update Readme Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> Co-authored-by: marinofaggiana <marino@marinofaggiana.com> Co-authored-by: Nextcloud bot <bot@nextcloud.com>
2021-12-16 16:41:14 +03:00
if counterProgress == progress.totalUnitCount {
2020-07-07 18:24:00 +03:00
completionHandler(nil)
}
2018-05-28 16:45:36 +03:00
}
}
return progress
}
}