Skip to content

0.5.0

Compare
Choose a tag to compare
@phimage phimage released this 27 Dec 14:18
· 465 commits to master since this release

Fix

  • JSON parsing to get access token when there is one parameter with only number
  • Presentation of OAuthWebViewController by choosing the good parent view controller, not only the root one

Change

  • Add parameters to OAuth1 callback #81(@quangbuule #152)
  • Add WatchOS support #135 (as proof of concept, you must do find a way to handle authorisation URL, maybe open on iOS)
  • Allow to change dispatch queue used by HTTP request (default: main queue)
  • Factorise code between OAuth1Swift & OAuthSwift2 :

After updating you must edit your code:

  • For OAuth1 you must change the callback credential, response in by credential, response, parameters in or credential, response, _ in
  • ⚠️ response into callback could now be nil
  • OAuth1Swift.handleOpenURL(url:) & OAuth2Swift.handleOpenURL(url:) are replaced by OAuthSwift.handleOpenURL(url:)

If you don't want to edit your code, do not update OAuthSwift.
You can with carthage and cocoapod for instance use "~> 0.4.8"