mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[PR #643] [MERGED] Restore lint-ability to OAuthSwift Podspec #698
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#698
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/643
Author: @macbellingrath
Created: 1/19/2021
Status: ✅ Merged
Merged: 5/13/2021
Merged by: @phatblat
Base:
master← Head:bug/fix-podspec📝 Commits (2)
4ec7559[Fix] repairs conditional compilation for platforms that are currently failing during pod lint56b8ef5Merge branch 'master' into bug/fix-podspec📊 Changes
3 files changed (+14 additions, -23 deletions)
View changed files
📝
OAuthSwift.podspec(+3 -0)📝
Sources/Handler/ASWebAuthenticationURLHandler.swift(+6 -8)📝
Sources/OAuth2Swift.swift(+5 -15)📄 Description
Background:
The podspec definition on the main branch lists support for iOS, watchOS, tvOS, macOS but if one creates a target (as CocoaPods does during lint) for watchOS or tvOS, it can be seen that ASWebAuthenticationURLHandler isn't supported on those platforms.
Because of how the conditional compilation was written - (nested
#if) the entire class is actually only available on iOS currently. It would appear that the dependency ASWebAuthenticationURLHandler has on ASWebAuthenticationSession is available for macCatalyst targets, however, and I've left that intact.The Podspec is also failing to list its system framework dependencies. For iOS 9..<12 targets, OAuthSwift depends on SafariServices, and on 12+, it also depends on AuthenticationServices. I've added those to the Podspec.
With these changes - the pod can be pushed to specs and will succeed to lint.
Thank you for contributing to OSS and taking time to review this diff.
Related issues:
https://github.com/OAuthSwift/OAuthSwift/issues/615
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.