Skip to content

Commit ebc4221

Browse files
author
Pranay Sowdaboina
committed
Fix warning - Use public instead of open.
1 parent 67ee739 commit ebc4221

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ open class DropboxMobileOAuthManager: DropboxOAuthManager {
149149
}
150150

151151
open class MobileSharedApplication: SharedApplication {
152-
open static var sharedMobileApplication: MobileSharedApplication?
152+
public static var sharedMobileApplication: MobileSharedApplication?
153153

154154
let sharedApplication: UIApplication
155155
let controller: UIViewController?

Source/SwiftyDropbox/Shared/Handwritten/DropboxClientsManager.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import Alamofire
1212
/// For information on the available API methods, see the documentation for DropboxClient
1313
open class DropboxClientsManager {
1414
/// An authorized client. This will be set to nil if unlinked.
15-
open static var authorizedClient: DropboxClient?
15+
public static var authorizedClient: DropboxClient?
1616

1717
/// An authorized team client. This will be set to nil if unlinked.
18-
open static var authorizedTeamClient: DropboxTeamClient?
18+
public static var authorizedTeamClient: DropboxTeamClient?
1919

2020
/// Sets up access to the Dropbox User API
2121
static func setupWithOAuthManager(_ appKey: String, oAuthManager: DropboxOAuthManager, transportClient: DropboxTransportClient?) {
@@ -61,7 +61,7 @@ open class DropboxClientsManager {
6161
Keychain.checkAccessibilityMigrationOneTime
6262
}
6363

64-
open static func reauthorizeClient(_ tokenUid: String) {
64+
public static func reauthorizeClient(_ tokenUid: String) {
6565
precondition(DropboxOAuthManager.sharedOAuthManager != nil, "Call `DropboxClientsManager.setupWithAppKey` before calling this method")
6666

6767
if let token = DropboxOAuthManager.sharedOAuthManager.getAccessToken(tokenUid) {
@@ -70,7 +70,7 @@ open class DropboxClientsManager {
7070
Keychain.checkAccessibilityMigrationOneTime
7171
}
7272

73-
open static func reauthorizeTeamClient(_ tokenUid: String) {
73+
public static func reauthorizeTeamClient(_ tokenUid: String) {
7474
precondition(DropboxOAuthManager.sharedOAuthManager != nil, "Call `DropboxClientsManager.setupWithAppKey` before calling this method")
7575

7676
if let token = DropboxOAuthManager.sharedOAuthManager.getAccessToken(tokenUid) {
@@ -110,7 +110,7 @@ open class DropboxClientsManager {
110110
}
111111

112112
/// Handle a redirect and automatically initialize the client and save the token.
113-
open static func handleRedirectURL(_ url: URL) -> DropboxOAuthResult? {
113+
public static func handleRedirectURL(_ url: URL) -> DropboxOAuthResult? {
114114
precondition(DropboxOAuthManager.sharedOAuthManager != nil, "Call `DropboxClientsManager.setupWithAppKey` before calling this method")
115115
if let result = DropboxOAuthManager.sharedOAuthManager.handleRedirectURL(url) {
116116
switch result {
@@ -128,7 +128,7 @@ open class DropboxClientsManager {
128128
}
129129

130130
/// Handle a redirect and automatically initialize the client and save the token.
131-
open static func handleRedirectURLTeam(_ url: URL) -> DropboxOAuthResult? {
131+
public static func handleRedirectURLTeam(_ url: URL) -> DropboxOAuthResult? {
132132
precondition(DropboxOAuthManager.sharedOAuthManager != nil, "Call `DropboxClientsManager.setupWithTeamAppKey` before calling this method")
133133
if let result = DropboxOAuthManager.sharedOAuthManager.handleRedirectURL(url) {
134134
switch result {
@@ -146,15 +146,15 @@ open class DropboxClientsManager {
146146
}
147147

148148
/// Unlink the user.
149-
open static func unlinkClients() {
149+
public static func unlinkClients() {
150150
if let oAuthManager = DropboxOAuthManager.sharedOAuthManager {
151151
_ = oAuthManager.clearStoredAccessTokens()
152152
resetClients()
153153
}
154154
}
155155

156156
/// Unlink the user.
157-
open static func resetClients() {
157+
public static func resetClients() {
158158
if DropboxClientsManager.authorizedClient == nil && DropboxClientsManager.authorizedTeamClient == nil {
159159
// already unlinked
160160
return

Source/SwiftyDropbox/Shared/Handwritten/DropboxTransportClient.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Foundation
66
import Alamofire
77

88
open class DropboxTransportClient {
9-
open let manager: SessionManager
10-
open let backgroundManager: SessionManager
11-
open let longpollManager: SessionManager
9+
public let manager: SessionManager
10+
public let backgroundManager: SessionManager
11+
public let longpollManager: SessionManager
1212
open var accessToken: String
1313
open var selectUser: String?
1414
open var pathRoot: Common.PathRoot?
@@ -267,7 +267,7 @@ open class DropboxTransportClient {
267267
}
268268

269269
open class Box<T> {
270-
open let unboxed: T
270+
public let unboxed: T
271271
init (_ v: T) { self.unboxed = v }
272272
}
273273

@@ -478,7 +478,7 @@ open class Request<RSerial: JSONSerializer, ESerial: JSONSerializer> {
478478

479479
/// An "rpc-style" request
480480
open class RpcRequest<RSerial: JSONSerializer, ESerial: JSONSerializer>: Request<RSerial, ESerial> {
481-
open let request: Alamofire.DataRequest
481+
public let request: Alamofire.DataRequest
482482

483483
public init(request: Alamofire.DataRequest, responseSerializer: RSerial, errorSerializer: ESerial) {
484484
self.request = request
@@ -503,7 +503,7 @@ open class RpcRequest<RSerial: JSONSerializer, ESerial: JSONSerializer>: Request
503503

504504
/// An "upload-style" request
505505
open class UploadRequest<RSerial: JSONSerializer, ESerial: JSONSerializer>: Request<RSerial, ESerial> {
506-
open let request: Alamofire.UploadRequest
506+
public let request: Alamofire.UploadRequest
507507

508508
public init(request: Alamofire.UploadRequest, responseSerializer: RSerial, errorSerializer: ESerial) {
509509
self.request = request
@@ -536,7 +536,7 @@ open class UploadRequest<RSerial: JSONSerializer, ESerial: JSONSerializer>: Requ
536536

537537
/// A "download-style" request to a file
538538
open class DownloadRequestFile<RSerial: JSONSerializer, ESerial: JSONSerializer>: Request<RSerial, ESerial> {
539-
open let request: Alamofire.DownloadRequest
539+
public let request: Alamofire.DownloadRequest
540540
open var urlPath: URL?
541541
open var errorMessage: Data
542542

@@ -577,7 +577,7 @@ open class DownloadRequestFile<RSerial: JSONSerializer, ESerial: JSONSerializer>
577577

578578
/// A "download-style" request to memory
579579
open class DownloadRequestMemory<RSerial: JSONSerializer, ESerial: JSONSerializer>: Request<RSerial, ESerial> {
580-
open let request: Alamofire.DataRequest
580+
public let request: Alamofire.DataRequest
581581

582582
public init(request: Alamofire.DataRequest, responseSerializer: RSerial, errorSerializer: ESerial) {
583583
self.request = request

Source/SwiftyDropbox/Shared/Handwritten/OAuth.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ public protocol SharedApplication {
2121
/// @note OAuth flow webviews localize to enviroment locale.
2222
///
2323
open class DropboxOAuthManager {
24-
open let locale: Locale?
24+
public let locale: Locale?
2525
let appKey: String
2626
let redirectURL: URL
2727
let host: String
2828
var urls: Array<URL>
2929

3030
// MARK: Shared instance
3131
/// A shared instance of a `DropboxOAuthManager` for convenience
32-
open static var sharedOAuthManager: DropboxOAuthManager!
32+
public static var sharedOAuthManager: DropboxOAuthManager!
3333

3434
// MARK: Functions
3535
public init(appKey: String, host: String) {
@@ -298,10 +298,10 @@ open class DropboxOAuthManager {
298298
open class DropboxAccessToken: CustomStringConvertible {
299299

300300
/// The access token string
301-
open let accessToken: String
301+
public let accessToken: String
302302

303303
/// The associated user
304-
open let uid: String
304+
public let uid: String
305305

306306
public init(accessToken: String, uid: String) {
307307
self.accessToken = accessToken

stone

Submodule stone updated from 3c5d0c1 to 6c5deff

0 commit comments

Comments
 (0)