Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Install dependencies
run: |
echo "⏱️ Starting dependency resolution at $(date)"
xcodebuild -resolvePackageDependencies | xcbeautify
xcodebuild -resolvePackageDependencies -onlyUsePackageVersionsFromResolvedFile | xcbeautify
echo "✅ Dependencies resolved at $(date)"

- name: Pre-start simulator
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Install dependencies
run: |
echo "⏱️ Starting dependency resolution at $(date)"
xcodebuild -resolvePackageDependencies | xcbeautify
xcodebuild -resolvePackageDependencies -onlyUsePackageVersionsFromResolvedFile | xcbeautify
echo "✅ Dependencies resolved at $(date)"

- name: Pre-start simulator
Expand Down
2 changes: 0 additions & 2 deletions Bitkit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
Services/MigrationsService.swift,
Services/ServiceQueue.swift,
Services/VssStoreIdProvider.swift,
Utilities/AddressChecker.swift,
Utilities/Crypto.swift,
Utilities/Errors.swift,
Utilities/Keychain.swift,
Expand All @@ -118,7 +117,6 @@
Services/LightningService.swift,
Services/ServiceQueue.swift,
Services/VssStoreIdProvider.swift,
Utilities/AddressChecker.swift,
Utilities/Crypto.swift,
Utilities/Errors.swift,
Utilities/Keychain.swift,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions Bitkit/AppScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ struct AppScene: View {
.onChange(of: currency.hasStaleData, perform: handleCurrencyStaleData)
.onChange(of: wallet.walletExists, perform: handleWalletExistsChange)
.onChange(of: wallet.nodeLifecycleState, perform: handleNodeLifecycleChange)
.onChange(of: wallet.totalBalanceSats, perform: handleBalanceChange)
.onChange(of: scenePhase, perform: handleScenePhaseChange)
.environmentObject(app)
.environmentObject(navigation)
Expand Down Expand Up @@ -215,11 +214,6 @@ struct AppScene: View {
app?.handleLdkNodeEvent(lightningEvent)
}

wallet.addOnEvent(id: "activity-sync") { [weak activity] (_: Event) in
// TODO: this might not be the best for performace to sync all payments on every event. Could switch to habdling the specific event.
Task { try? await activity?.syncLdkNodePayments() }
}

if wallet.isRestoringWallet {
Task {
await BackupService.shared.performFullRestoreFromLatestBackup()
Expand Down Expand Up @@ -284,11 +278,6 @@ struct AppScene: View {
}
}

private func handleBalanceChange(_: Int) {
// Anytime we receive a balance update, we should sync the payments to activity list
Task { try? await activity.syncLdkNodePayments() }
}

private func handleScenePhaseChange(_: ScenePhase) {
// If PIN is enabled, lock the app when the app goes to the background
if scenePhase == .background && settings.pinEnabled {
Expand Down
Loading
Loading