Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
Dev (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon Genosar authored Aug 25, 2019
1 parent ea27545 commit 5cb5487
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion KinEcosystem/KinEcosystem/Blockchain/Blockchain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Blockchain: NSObject {
}

func onboard() -> Promise<Void> {

if onboarded {
return Promise<Void>().signal(())
}
Expand Down Expand Up @@ -581,16 +581,19 @@ extension KinAccountsProtocol {
extension Blockchain: KinMigrationManagerDelegate {
public func kinMigrationManagerNeedsVersion(_ kinMigrationManager: KinMigrationManager) -> Promise<KinVersion> {
guard let query = versionQuery else {
print(kinMigrationManager.version?.rawValue)
fatalError("version query closure not set on blockchain object")
}
return query()
}

public func kinMigrationManagerDidStart(_ kinMigrationManager: KinMigrationManager) {
logInfo("migration started...")
PaymentManager.resign()
}

public func kinMigrationManager(_ kinMigrationManager: KinMigrationManager, readyWith client: KinClientProtocol) {
// PaymentManager.resume(blockchain: self)
logInfo("migration manager is ready with client, version: \(kinMigrationManager.version?.rawValue ?? 0), number of accounts: \(client.accounts.count)")
self.client = client
if let address = self.startingAddress,
Expand Down
1 change: 1 addition & 0 deletions KinEcosystem/KinEcosystem/Core/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Core {
}
}.then {
self.isOnboarding = false
PaymentManager.resume(core: self)
self.onboardPromise.signal(())
}.error { error in
self.isOnboarding = false
Expand Down
4 changes: 2 additions & 2 deletions KinEcosystemSampleApp/EcosystemSampleApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.6.98</string>
<string>1.2.6.99</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.2.6.98</string>
<string>1.2.6.99</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
Expand Down
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PODS:
- KinCoreSDK (0.8.0):
- Sodium (= 0.8.0)
- StellarKit (= 0.4.0)
- KinEcosystem (1.2.6):
- KinEcosystem (1.2.7):
- KinAppreciationModuleOptionsMenu (= 0.0.4)
- KinMigrationModule (= 0.1.0)
- KinMigrationModule (0.1.0):
Expand Down Expand Up @@ -57,7 +57,7 @@ SPEC CHECKSUMS:
JWT: 05028b9624591bba9681bb57df2c5f95fa258bad
KinAppreciationModuleOptionsMenu: 6d52396b8d1eb16a56a4f3b51f135b2835ed91ed
KinCoreSDK: 419f6736c8aefcc0aef8ad45fa9032890ae6672e
KinEcosystem: a4c1aa21ec99357cdb3e4c444823df404585a9a8
KinEcosystem: 3c39d0aae40cfd81a992e5fdce9a9718c49d8f4a
KinMigrationModule: 0f14c64bfb6e1046bd137ab829264223c20905ec
KinSDK: 24cbb5cf8b560c6025eacabc1b5aebbe5938c141
KinUtil: 5ba64858ba2f24156d6e229c963b37f8d808bd4c
Expand Down

0 comments on commit 5cb5487

Please sign in to comment.