-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate missing app auth routes, clean up task reconnection helpers #396
Conversation
c38bcf1
to
c0224f1
Compare
@@ -13,11 +13,17 @@ public class DropboxAppBase: DropboxTransportClientOwning { | |||
public var auth: AuthAppAuthRoutes! | |||
/// Routes within the check namespace. See CheckAppAuthRoutes for details. | |||
public var check: CheckAppAuthRoutes! | |||
/// Routes within the files namespace. See FilesAppAuthRoutes for details. | |||
public var files: FilesAppAuthRoutes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update diff title to note additional routes
@@ -24,9 +24,85 @@ protocol PersistedRequestInfoBaseInfo { | |||
var clientProvidedInfo: String? { get set } | |||
} | |||
|
|||
extension ReconnectionHelpers { | |||
private static let Separator = "#?///?#" | |||
private let Separator = "#?///?#" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be in the default extension of ReconnectionHelpersShared instead of global space?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish I could but you can't put a stored property there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a small Constants struct to get it out of the global space
This PR generates code from a new version of stone that remedies missing app auth routes from app auth clients when those routes have additional auth types.
App auth routes also now get their own reconnection helpers, and objc wrappers over reconnection helpers are slightly modified to avoid potentially creating unreachable defaults in switch statements.
See dropbox/stone#317 for stone changes and explanations.