Skip to content
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

Merged
merged 5 commits into from
Jan 16, 2024

Conversation

julianlocke
Copy link
Contributor

@julianlocke julianlocke commented Jan 4, 2024

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.

@julianlocke julianlocke force-pushed the fix-app-auth-client-routes branch from c38bcf1 to c0224f1 Compare January 5, 2024 15:06
@@ -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!
Copy link

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 = "#?///?#"
Copy link

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@julianlocke julianlocke changed the title Fix app auth client routes Generate missing app auth routes, clean up task reconnection helpers Jan 16, 2024
@julianlocke julianlocke merged commit 3f281e3 into master Jan 16, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants