Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change UInt64 to Int #28

Merged
merged 1 commit into from
Sep 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ playground.xcworkspace
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
.build/
Packages/
Package.resolved

# CocoaPods
#
Expand Down
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1
3.1.1
4 changes: 2 additions & 2 deletions Sources/CredentialsGitHub/CredentialsGitHub.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corporation 2016
* Copyright IBM Corporation 2016, 2017
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -218,7 +218,7 @@ public class CredentialsGitHub: CredentialsPluginProtocol {
}
*/
private func createUserProfile(from userDictionary: [String: Any]) -> UserProfile? {
guard let id = userDictionary["id"] as? UInt64 else {
guard let id = userDictionary["id"] as? Int else {
return nil
}

Expand Down
6 changes: 3 additions & 3 deletions Sources/CredentialsGitHub/CredentialsGitHubOptions.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corporation 2016
* Copyright IBM Corporation 2016, 2017
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,8 +14,8 @@
* limitations under the License.
**/

// MARK CredentialsFacebookOptions
/// A list of options for authentication with Facebook.
// MARK CredentialsGitHubOptions
/// A list of options for authentication with GitHub.
public struct CredentialsGitHubOptions {
/// [GitHub access token scopes](https://developer.github.com/v3/oauth/#scopes)
public static let scopes = "scopes"
Expand Down