mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #129] OAuthSwift does not work within a widget #77
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#77
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?
Originally created by @DennisDreissen on GitHub (Oct 16, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/129
*/Pods/OAuthSwift/OAuthSwift/OAuthSwiftURLHandlerType.swift:33:31: 'sharedApplication()' is unavailable: Use view controller based solutions where appropriate instead.
@phimage commented on GitHub (Oct 16, 2015):
OAuthSwiftURLHandlerType is a protocol that you can implement
OAuthSwiftOpenURLExternally is just the default one, and simply use application method to open externally the URL
To allow compilation I don't think there is an other way than add "#if/#else/#endif" preprocessor macros to exclude code in widget/extension
@phimage commented on GitHub (Nov 9, 2015):
PR #143 add OAUTH_APP_EXTENSIONS var to disable code
UIApplication. sharedApplicationWith cocoapod post install setting must be add into podfile for extension target
https://guides.cocoapods.org/syntax/podfile.html#post_install
@phimage commented on GitHub (Nov 10, 2015):
wiki page added, PR merge is next
https://github.com/dongri/OAuthSwift/wiki/Work-with-application-extension