Skip to content

Commit

Permalink
cleaning code
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Jun 6, 2024
1 parent 42c713e commit 9d8b6a4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
4 changes: 0 additions & 4 deletions Nextcloud.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,6 @@
F7A60F84292D215000FCE1F2 /* NCShareAccounts.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NCShareAccounts.swift; sourceTree = "<group>"; };
F7A60F85292D215000FCE1F2 /* NCShareAccounts.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = NCShareAccounts.storyboard; sourceTree = "<group>"; };
F7A846DD2BB01ACB0024816F /* NCTrashCellProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCTrashCellProtocol.swift; sourceTree = "<group>"; };
F7A8D72228F176B6008BBE1C /* WidgetDashboardIntentHandler-Brinding-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WidgetDashboardIntentHandler-Brinding-header.h"; sourceTree = "<group>"; };
F7AA41B827C7CF4600494705 /* ca */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ca; path = ca.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F7AA41B927C7CF4B00494705 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
F7AA41BA27C7CF5000494705 /* zh-Hant-TW */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant-TW"; path = "zh-Hant-TW.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2754,7 +2753,6 @@
F7C9739328F17131002C43E2 /* WidgetDashboardIntentHandler */ = {
isa = PBXGroup;
children = (
F7A8D72228F176B6008BBE1C /* WidgetDashboardIntentHandler-Brinding-header.h */,
F7C9739428F17131002C43E2 /* IntentHandler.swift */,
);
path = WidgetDashboardIntentHandler;
Expand Down Expand Up @@ -5272,7 +5270,6 @@
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) EXTENSION EXTENSION_WIDGETDASHBOARDINTENTHANDLER";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/WidgetDashboardIntentHandler/WidgetDashboardIntentHandler-Brinding-header.h";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand Down Expand Up @@ -5313,7 +5310,6 @@
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) EXTENSION EXTENSION_WIDGETDASHBOARDINTENTHANDLER";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/WidgetDashboardIntentHandler/WidgetDashboardIntentHandler-Brinding-header.h";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion iOSClient/Networking/NCAutoUpload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class NCAutoUpload: NSObject {
let assetDate = asset.creationDate ?? Date()
let assetMediaType = asset.mediaType
var serverUrl: String = ""
let fileName = NCUtilityFileSystem().createFileName(asset.originalFilename as String,
let fileName = NCUtilityFileSystem().createFileName(asset.originalFilename as String,
fileDate: assetDate,
fileType: assetMediaType,
keyFileName: NCGlobal.shared.keyFileNameAutoUploadMask,
Expand Down
4 changes: 2 additions & 2 deletions iOSClient/Utility/NCUtilityFileSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ class NCUtilityFileSystem: NSObject {
func createFileName(_ fileName: String, fileDate: Date, fileType: PHAssetMediaType, keyFileName: String?, keyFileNameType: String, keyFileNameOriginal: String, forcedNewFileName: Bool) -> String {
var fileName = fileName
let keychain = NCKeychain()
var addFileNameType: Bool = keychain.getFileNameType(key: keyFileNameType)
var useFileNameOriginal: Bool = keychain.getOriginalFileName(key: keyFileNameOriginal)
let addFileNameType: Bool = keychain.getFileNameType(key: keyFileNameType)
let useFileNameOriginal: Bool = keychain.getOriginalFileName(key: keyFileNameOriginal)
var numberFileName: String = ""
var fileNameType = ""
let fileNameExt = (fileName as NSString).pathExtension.lowercased()
Expand Down
3 changes: 1 addition & 2 deletions iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ class NCViewerMediaPage: UIViewController {
@objc func deleteFile(_ notification: NSNotification) {
guard let userInfo = notification.userInfo as NSDictionary? else { return }

if let ocIds = userInfo["ocId"] as? [String],
let ocId = ocIds.first {
if let ocIds = userInfo["ocId"] as? [String] {
// Stop media
if let ncplayer = currentViewController.ncplayer, ncplayer.isPlay() {
ncplayer.playerPause()
Expand Down

0 comments on commit 9d8b6a4

Please sign in to comment.