Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
moonpart committed Mar 27, 2020
1 parent f23cba0 commit 7f0719f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 3 additions & 1 deletion AmondoSDK/AmondoSDK/AmondoSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public class AmondoSDK: NSObject {
Network.shared.configure()
Network.shared.apollo!.perform(mutation: LoginMutation(email: appID, password: secretKey)) { result in
switch result {
case .success(let _):
case .success(_):
guard let data = try? result.get().data else { return }
AMDDefaults.Standard.setString(key: "username", value: appID)
AMDDefaults.Standard.setString(key: "token", value: data!.loginUser.token)
AMDUser.currentUser()?.token = data!.loginUser.token
print("AMONDO_SDK: SDK successfully initialised")
case .failure(let error):
Expand Down
3 changes: 1 addition & 2 deletions AmondoSDK/AmondoSDK/Managers/Data/API/BaseAPIManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ public class Network {
var apollo: ApolloClient?

func configure() {
networkTransport = HTTPNetworkTransport(url: URL(string: "https://graphql.amondo.com/")!)
networkTransport!.delegate = self
networkTransport = HTTPNetworkTransport(url: URL(string: "https://graphql.amondo.com/")!, session: .shared, sendOperationIdentifiers: false, useGETForQueries: false, enableAutoPersistedQueries: false, useGETForPersistedQueryRetry: false, delegate: self, requestCreator: ApolloRequestCreator())
apollo = ApolloClient(networkTransport: networkTransport!)
}
}
Expand Down
2 changes: 1 addition & 1 deletion AmondoSDK/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ target 'AmondoSDK' do
pod 'Cloudinary'#, '~> 2.0'
pod 'Intercom'
pod 'FacebookShare'
pod 'Apollo'
pod 'Apollo', '0.18.1'

end
12 changes: 6 additions & 6 deletions AmondoSDK/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- Alamofire (4.8.2)
- Apollo (0.24.0):
- Apollo/Core (= 0.24.0)
- Apollo/Core (0.24.0)
- Apollo (0.18.1):
- Apollo/Core (= 0.18.1)
- Apollo/Core (0.18.1)
- Cloudinary (2.7.0):
- Alamofire (~> 4.8.2)
- FacebookCore (0.8.0):
Expand All @@ -24,7 +24,7 @@ PODS:

DEPENDENCIES:
- Alamofire (~> 4.4)
- Apollo
- Apollo (= 0.18.1)
- Cloudinary
- FacebookShare
- Intercom
Expand All @@ -45,7 +45,7 @@ SPEC REPOS:

SPEC CHECKSUMS:
Alamofire: ae5c501addb7afdbb13687d7f2f722c78734c2d3
Apollo: ef7cf21a5f599c98a8699243f6a9922466405669
Apollo: 03f2ad1b6de18727bf443fd00e1963487a2972d3
Cloudinary: d9b2d7d7692a6deb51227fa9f4e7cf8f49d6c375
FacebookCore: 563bb4cbcd7dd86cf89f3729252140bf256aacaa
FacebookShare: e75d5e81ef7bd7aab2f865446c4c27015b43bae6
Expand All @@ -54,6 +54,6 @@ SPEC CHECKSUMS:
Intercom: d189cf8cc8591e7e63dbb10ee4401a70a7fdc9d6
KeychainSwift: 4209611373ca4a098e09b1e547eebd87c544dcc4

PODFILE CHECKSUM: 44f1c03e5cf3c58333cea9039ae232cd1b34b1fb
PODFILE CHECKSUM: e21ba83fa6f2b12cceca926cc11c0854ea86c9ed

COCOAPODS: 1.8.4

0 comments on commit 7f0719f

Please sign in to comment.