mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[PR #511] [MERGED] URL type support #655
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#655
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/511
Author: @armanarutiunov
Created: 2/6/2019
Status: ✅ Merged
Merged: 2/12/2019
Merged by: @phimage
Base:
master← Head:url-type-support📝 Commits (5)
a1786baadded convenience methods with URL type arguments instead of String-URLd30b449Revert "added convenience methods with URL type arguments instead of String-URL"ec24b90added URLConvertible and switched all public String-URL parameters to ita7f72c0added URLConvertible to other targetseca6e7fnaming update📊 Changes
6 files changed (+109 additions, -64 deletions)
View changed files
📝
OAuthSwift.xcodeproj/project.pbxproj(+10 -0)📝
Sources/OAuth1Swift.swift(+8 -8)📝
Sources/OAuth2Swift.swift(+15 -15)📝
Sources/OAuthSwiftClient.swift(+22 -22)📝
Sources/Objc.swift(+19 -19)➕
Sources/URLConvertible.swift(+35 -0)📄 Description
Most of the public methods of this library accept string-typed
URLs. This is not very convenient for people who prefer constructing URLs withURL.appendingPathComponent(). This method allows you not to worry about a missed or overwritten slash and keeps it very clean and obvious.In this PR I didn't change any part of the internal logic. Only duplicated public/open methods that accept string-typed
URLs and changed the arguments to url-typedURLs that would call the original method.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.