@@ -12,10 +12,10 @@ import Alamofire
1212/// For information on the available API methods, see the documentation for DropboxClient
1313open 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
0 commit comments