Commit 701f3edf authored by Jose Blaya's avatar Jose Blaya
Browse files

Refactor

Update PIALibrary
parent acf32e4b
......@@ -19,14 +19,17 @@ extension AccountProvider {
var forceRefreshToken = force
if migrationDone != true {
//Disconnect the VPN (if it's trying to reconnect)
forceRefreshToken = true
if !Client.providers.vpnProvider.isVPNConnected {
Client.providers.vpnProvider.disconnect({ [weak self] error in
guard let _ = error as? ClientError else {
forceRefreshToken = true
self?.refreshAccount(force: forceRefreshToken)
return
}
})
} else {
refreshAccount(force: forceRefreshToken)
}
} else {
refreshAccount(force: forceRefreshToken)
......@@ -48,9 +51,6 @@ extension AccountProvider {
refreshAccountInfo(force: forceRefreshToken, { (info, error) in
guard let error = error as? ClientError else {
let preferences = Client.preferences.editable()
preferences.authMigrationSuccess = true
preferences.commit()
return
}
guard self.isLoggedIn else {
......
......@@ -53,7 +53,7 @@ end
def shared_main_pods
pod 'AlamofireImage'
#library_by_path('')
library_by_git('9c76549')
library_by_git('6621cf2')
#library_by_version('~> 1.1.3')
end
......
......@@ -104,10 +104,10 @@ DEPENDENCIES:
- HockeySDK
- iRate
- MBProgressHUD
- PIALibrary/Library (from `https://github.com/pia-foss/client-library-apple`, commit `9c76549`)
- PIALibrary/Mock (from `https://github.com/pia-foss/client-library-apple`, commit `9c76549`)
- PIALibrary/UI (from `https://github.com/pia-foss/client-library-apple`, commit `9c76549`)
- PIALibrary/VPN (from `https://github.com/pia-foss/client-library-apple`, commit `9c76549`)
- PIALibrary/Library (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIALibrary/Mock (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIALibrary/UI (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIALibrary/VPN (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIATunnel (from `https://github.com/pia-foss/tunnel-apple`, commit `269d6d1`)
- SideMenu (= 3.1.5)
- TPKeyboardAvoiding
......@@ -138,7 +138,7 @@ SPEC REPOS:
EXTERNAL SOURCES:
PIALibrary:
:commit: 9c76549
:commit: 6621cf2
:git: https://github.com/pia-foss/client-library-apple
PIATunnel:
:commit: 269d6d1
......@@ -146,7 +146,7 @@ EXTERNAL SOURCES:
CHECKOUT OPTIONS:
PIALibrary:
:commit: 9c76549
:commit: 6621cf2
:git: https://github.com/pia-foss/client-library-apple
PIATunnel:
:commit: 269d6d1
......@@ -177,6 +177,6 @@ SPEC CHECKSUMS:
SwiftyBeaver: ccfcdf85a04d429f1633f668650b0ce8020bda3a
TPKeyboardAvoiding: cb69d5ddbe90ce0170e4bc2db1e5e41d4a3ad9a4
PODFILE CHECKSUM: 23d2c63bd3e1e95d63d62954b40075c09d19efe5
PODFILE CHECKSUM: da85c5713f2405118340eb087909234bc6af3ead
COCOAPODS: 1.5.3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment