diff --git a/Source/SwiftyDropbox/Shared/Handwritten/MockApiRequest.swift b/Source/SwiftyDropbox/Shared/Handwritten/MockApiRequest.swift index 5ade43b4..251380b9 100644 --- a/Source/SwiftyDropbox/Shared/Handwritten/MockApiRequest.swift +++ b/Source/SwiftyDropbox/Shared/Handwritten/MockApiRequest.swift @@ -72,7 +72,7 @@ class MockApiRequest: ApiRequest { extension MockApiRequest { func handleMockInput(_ mockInput: MockInput) throws { - try self._handleMockInput(mockInput) + try _handleMockInput(mockInput) } } diff --git a/TestSwiftyDropbox/IntegrationTests/ObjC/ObjCTestData.swift b/TestSwiftyDropbox/IntegrationTests/ObjC/ObjCTestData.swift index 74b90a83..0481f7b3 100644 --- a/TestSwiftyDropbox/IntegrationTests/ObjC/ObjCTestData.swift +++ b/TestSwiftyDropbox/IntegrationTests/ObjC/ObjCTestData.swift @@ -33,7 +33,7 @@ open class DBXTestData: NSObject { @objc static var testIdTeam: String { get { TestData.testIdTeam } set { TestData.testIdTeam = newValue } } @objc static var groupName: String { get { TestData.groupName } set { TestData.groupName = newValue } } @objc static var groupExternalId: String { get { TestData.groupExternalId } set { TestData.groupExternalId = newValue } } - @objc static var groupExternalIdDashObjc: String { get { TestData.groupExternalId + "-objc" } } + @objc static var groupExternalIdDashObjc: String { TestData.groupExternalId + "-objc" } @objc static var teamMemberEmail: String { get { TestData.teamMemberEmail } set { TestData.teamMemberEmail = newValue } } @objc static var newMemberEmail: String { get { TestData.newMemberEmail } set { TestData.newMemberEmail = newValue } } diff --git a/TestSwiftyDropbox/TestSwiftyDropbox_ActionExtension/ActionRequestHandler.swift b/TestSwiftyDropbox/TestSwiftyDropbox_ActionExtension/ActionRequestHandler.swift index 360a9fad..04a660f5 100644 --- a/TestSwiftyDropbox/TestSwiftyDropbox_ActionExtension/ActionRequestHandler.swift +++ b/TestSwiftyDropbox/TestSwiftyDropbox_ActionExtension/ActionRequestHandler.swift @@ -110,7 +110,7 @@ class ActionRequestHandler: NSObject, NSExtensionRequestHandling { client = DropboxClientsManager.authorizedClient } - TestUtilities.createFileToUpload(sizeInKBs: 1000) + TestUtilities.createFileToUpload(sizeInKBs: 1_000) let fileName = "/test_action_extension.txt" let path = TestConstants.dropboxTestFolder + fileName let input = TestConstants.fileToUpload diff --git a/TestSwiftyDropbox/TestSwiftyDropbox_iOS/DebugBackgroundSessionView.swift b/TestSwiftyDropbox/TestSwiftyDropbox_iOS/DebugBackgroundSessionView.swift index 45ae9909..5ff7a36c 100644 --- a/TestSwiftyDropbox/TestSwiftyDropbox_iOS/DebugBackgroundSessionView.swift +++ b/TestSwiftyDropbox/TestSwiftyDropbox_iOS/DebugBackgroundSessionView.swift @@ -94,7 +94,7 @@ struct BlueButton: ButtonStyle { .font(.caption) .fontWeight(.bold) .padding() - .background(configuration.isPressed ? .indigo : .blue ) + .background(configuration.isPressed ? .indigo : .blue) .foregroundStyle(.white) .clipShape(Capsule()) } diff --git a/TestSwiftyDropbox/TestSwiftyDropbox_iOS/FileBrowserView.swift b/TestSwiftyDropbox/TestSwiftyDropbox_iOS/FileBrowserView.swift index b22ecce4..87f2e629 100644 --- a/TestSwiftyDropbox/TestSwiftyDropbox_iOS/FileBrowserView.swift +++ b/TestSwiftyDropbox/TestSwiftyDropbox_iOS/FileBrowserView.swift @@ -27,7 +27,7 @@ class FileBrowserViewModel: ObservableObject { do { let fileURLs = try fileManager.contentsOfDirectory(at: localURL, includingPropertiesForKeys: nil) - files = fileURLs.sorted(by: { $0.lastPathComponent < $1.lastPathComponent }) + self.files = fileURLs.sorted(by: { $0.lastPathComponent < $1.lastPathComponent }) } catch { print("Error loading files: \(error)") } diff --git a/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/SwiftyDropboxTestExtensions.swift b/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/SwiftyDropboxTestExtensions.swift index 7009498a..0108341f 100644 --- a/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/SwiftyDropboxTestExtensions.swift +++ b/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/SwiftyDropboxTestExtensions.swift @@ -55,10 +55,10 @@ public class SecureStorageAccessTestImpl: SecureStorageAccess { } public func deleteInfo(for key: String) -> Bool { - return true + true } public func deleteInfoForAllKeys() -> Bool { - return true + true } } diff --git a/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/TeamRoutesTests.swift b/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/TeamRoutesTests.swift index ff61ed57..c968b7b0 100644 --- a/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/TeamRoutesTests.swift +++ b/TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/TeamRoutesTests.swift @@ -52,9 +52,19 @@ class TeamRoutesTests: XCTestCase { DropboxOAuthManager.sharedOAuthManager = nil #if os(OSX) - DropboxClientsManager.setupWithTeamAppKeyMultiUserDesktop(apiAppKey, transportClient: transportClient, secureStorageAccess: SecureStorageAccessTestImpl(), tokenUid: TestUid) + DropboxClientsManager.setupWithTeamAppKeyMultiUserDesktop( + apiAppKey, + transportClient: transportClient, + secureStorageAccess: SecureStorageAccessTestImpl(), + tokenUid: TestUid + ) #elseif os(iOS) - DropboxClientsManager.setupWithTeamAppKeyMultiUser(apiAppKey, transportClient: transportClient, secureStorageAccess: SecureStorageAccessTestImpl(), tokenUid: TestUid) + DropboxClientsManager.setupWithTeamAppKeyMultiUser( + apiAppKey, + transportClient: transportClient, + secureStorageAccess: SecureStorageAccessTestImpl(), + tokenUid: TestUid + ) #endif teamClient = DropboxClientsManager.authorizedTeamClient?.team