Skip to content

Commit

Permalink
Merge pull request #27 from MuShare/fix/typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
lm2343635 committed Dec 1, 2020
2 parents f1e3b48 + 6b539a7 commit c7c4224
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
PODS:
- Alamofire (5.4.0)
- Kingfisher (5.15.7):
- Kingfisher/Core (= 5.15.7)
- Kingfisher/Core (5.15.7)
- PlutoSDK/Core (0.8.6):
- Kingfisher (5.15.8):
- Kingfisher/Core (= 5.15.8)
- Kingfisher/Core (5.15.8)
- PlutoSDK/Core (0.8.7):
- Alamofire (~> 5)
- SwiftyJSON (~> 5)
- SwiftyUserDefaults (~> 5)
- PlutoSDK/Rx (0.8.6):
- PlutoSDK/Rx (0.8.7):
- PlutoSDK/Core (~> 0)
- RxCocoa (~> 5)
- RxCocoa (5.1.1):
Expand Down Expand Up @@ -39,8 +39,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Alamofire: 3b6a534a3df22db367e4dedeeca73d1ddfcf0e2f
Kingfisher: 6e1a13523fcb1c86924ce53affe4ac957e544d59
PlutoSDK: d8d7bd500c44c20c1fd6483aef2a2762335e75dc
Kingfisher: a3c03d702433fa6cfedabb2bddbe076fb8f2e902
PlutoSDK: cee2bc4064c8b81686f01fd8f3525e538fe59dd0
RxCocoa: 32065309a38d29b5b0db858819b5bf9ef038b601
RxRelay: d77f7d771495f43c556cbc43eebd1bb54d01e8e9
RxSwift: 81470a2074fa8780320ea5fe4102807cb7118178
Expand Down
10 changes: 5 additions & 5 deletions Pluto/Classes/Core/Pluto+Binding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Alamofire

extension Pluto {

public var avialiableLoginTypes: [Pluto.LoginType] {
public var availableLoginTypes: [Pluto.LoginType] {
var types = [Pluto.LoginType.mail, .google]
if #available(iOS 13.0, *) {
types.append(.apple)
Expand All @@ -38,9 +38,9 @@ extension Pluto {
return types
}

public var avialiableBindings: [PlutoUser.Binding]? {
public var availableBindings: [PlutoUser.Binding]? {
DefaultsManager.shared.user?.bindings.filter {
avialiableLoginTypes.contains($0.loginType)
availableLoginTypes.contains($0.loginType)
}
}

Expand Down Expand Up @@ -78,8 +78,8 @@ extension Pluto {
}

public func unbind(type: LoginType, success: (() -> Void)? = nil, error: ErrorCompletion? = nil) {
guard let bindings = avialiableBindings else {
error?(PlutoError.notSignin)
guard let bindings = availableBindings else {
error?(PlutoError.notSignIn)
return
}
guard bindings.count > 1 else {
Expand Down
10 changes: 5 additions & 5 deletions Pluto/Classes/Core/PlutoResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ public enum PlutoError: Int, Error {
case badRequest = -99998
case parseError = -99997
case avatarBase64GenerateError = 901
case appleSigninAuthorizationParseError = 902
case notSignin = 1001
case mailIsAlreadyRegister = 2001
case mailIsNotExist = 2002
case mailIsNotVerified = 2003
case appleSignInAuthorizationParseError = 902
case notSignIn = 1001
case mailAlreadyRegister = 2001
case mailNotExist = 2002
case mailNotVerified = 2003
case mailAlreadyVerified = 2004
case userIdNotExist = 2005
case userIdExist = 2006
Expand Down
2 changes: 1 addition & 1 deletion PlutoSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'PlutoSDK'
s.version = '0.8.6'
s.version = '0.8.7'
s.summary = 'Swift SDK for Pluto login microservice.'

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit c7c4224

Please sign in to comment.