Skip to content

Commit

Permalink
Bump to 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
p2 committed Feb 28, 2017
1 parent 11613cf commit 60c6805
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ custom_categories:
- OAuth2ClientCredentialsReddit
- OAuth2ImplicitGrant
- OAuth2PasswordGrant
- OAuth2PasswordGrantDelegate

- name: Errors & Types
children:
Expand Down Expand Up @@ -68,7 +69,11 @@ custom_categories:
children:
- OAuth2AuthorizerUI
- OAuth2Authorizer
- OAuth2CustomAuthorizerUI
- OAuth2CustomAuthorizer
- OAuth2ContextStore
- OAuth2KeychainAccount
- OAuth2WebViewController
- OAuth2DataLoaderSessionTaskDelegate


2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: objective-c # well "swift" actually
osx_image: xcode8
xcode_project: OAuth2.xcodeproj
xcode_scheme: OAuth2OSX
xcode_scheme: OAuth2macOS
xcode_sdk: macosx
script:
- travis_wait xcodebuild
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ Version numbering represents the Swift version, plus a running number representi
You can also refer to commit logs to get details on what was implemented, fixed and improved.


### x.x.x
### 3.0.3

- Allow more UI customization via `authConfig.UI` and making `OAuth2Authorizer` friendlier to subclassing
- Implement custom authorization UIs for password grants (thanks @amaurydavid !)
- Optionally allow `DataLoader` to follow 302 redirects automatically (on same host)
- Fix a bug with data loader not using refresh tokens (#184)


### 3.0.2
Expand Down
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0.2</string>
<string>3.0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 4 additions & 4 deletions Sources/Base/OAuth2AuthConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
// limitations under the License.
//


/**
Simple struct to hold settings describing how authorization appears to the user.
*/
#if os(iOS)
import UIKit
#endif


/**
Simple struct to hold settings describing how authorization appears to the user.
*/
public struct OAuth2AuthConfig {

/// Sub-stuct holding configuration relevant to UI presentation.
Expand Down
1 change: 1 addition & 0 deletions Sources/Base/OAuth2AuthRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ open class OAuth2AuthRequest {
/// Custom headers can be set here, they will take precedence over any built-in headers.
open private(set) var headers: [String: String]?

/// Query parameters to use with the request.
open var params = OAuth2RequestParams()


Expand Down
2 changes: 1 addition & 1 deletion Sources/Flows/OAuth2PasswordGrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ open class OAuth2PasswordGrant: OAuth2 {
/// The password to use during authorization.
open var password: String?

// Properties used to handle the native controller
/// Properties used to handle the native controller.
lazy var customAuthorizer: OAuth2CustomAuthorizerUI = OAuth2CustomAuthorizer()

/**
Expand Down
1 change: 1 addition & 0 deletions Sources/macOS/OAuth2CustomAuthorizer+macOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class OAuth2CustomAuthorizer: OAuth2CustomAuthorizerUI {

private var presentedController: NSViewController?

/** Initializer. */
public init() { }


Expand Down
2 changes: 1 addition & 1 deletion generate-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
jazzy \
-o "docs" \
--min-acl "internal" \
--module-version "3.0.2"
--module-version "3.0.3"

mkdir docs/assets 2>/dev/null
cp assets/* docs/assets/
2 changes: 1 addition & 1 deletion p2.OAuth2.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|
s.name = "p2.OAuth2"
s.version = "3.0.2"
s.version = "3.0.3"
s.summary = "OAuth2 framework for macOS, iOS and tvOS, written in Swift."
s.description = <<-DESC
OAuth2 frameworks for macOS, iOS and tvOS written in Swift.
Expand Down

0 comments on commit 60c6805

Please sign in to comment.