Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 10 additions & 0 deletions DashWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,7 @@
7A30002230A2000000000022 /* CrowdNodeOwnershipTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A30002130A2000000000021 /* CrowdNodeOwnershipTests.swift */; };
7A31000230A2000000000002 /* CoinJoinMoveDestinationPolicyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A31000130A2000000000001 /* CoinJoinMoveDestinationPolicyTests.swift */; };
7A30001230A1000000000012 /* StuckAssetLockRetryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A30001130A1000000000011 /* StuckAssetLockRetryTests.swift */; };
BABA1000000000000000001F /* AssetLockDiagnosticsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BABA1000000000000000001E /* AssetLockDiagnosticsTests.swift */; };
7C1177A230A1000000000002 /* InternalTransferNoticeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C1177A130A1000000000001 /* InternalTransferNoticeTests.swift */; };
727FF6515F1B4A62A03534AD /* CoreShieldedDrainStoreTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4911E48CD7945E7B78664F7 /* CoreShieldedDrainStoreTests.swift */; };
7C0DE5A1B2C34D5E6F708196 /* CoreShieldedDrainRecipientTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C0DE5A1B2C34D5E6F708195 /* CoreShieldedDrainRecipientTests.swift */; };
Expand Down Expand Up @@ -1059,6 +1060,7 @@
95BBA0F4AB84110658BDB608 /* BIP70SendAuthorizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 379F0351A49BFB8CCA87926D /* BIP70SendAuthorizer.swift */; };
973AD0F3986AFFDBA78ED560 /* CoinJoinWithdrawalStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B208A9A34D0FFEEC796752C /* CoinJoinWithdrawalStore.swift */; };
7A30002230A1000000000022 /* AssetLockProbeStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A30002130A1000000000021 /* AssetLockProbeStore.swift */; };
BABA1000000000000000001C /* AssetLockFailureStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = BABA1000000000000000001B /* AssetLockFailureStore.swift */; };
97C1167F9600BF7E489A8545 /* SwapTransactionStatusHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52B5469F5588395FA0668C4B /* SwapTransactionStatusHostingController.swift */; };
97E0FFBBAFFB7394F6841B61 /* DWPreviewSeedPhraseModel+Mnemonic.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48D8BC6623C81DD3F008A668 /* DWPreviewSeedPhraseModel+Mnemonic.swift */; };
926525A3134D15BF737BC355 /* RecoveryPhraseLength.swift in Sources */ = {isa = PBXBuildFile; fileRef = 210C818A8AAC76F91676AFF9 /* RecoveryPhraseLength.swift */; };
Expand Down Expand Up @@ -1992,6 +1994,7 @@
D5E6F7A8B9C0D1E2F3A4B5C6 /* TransferAmountView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1D2E3F4A5B6C7D8E9F01234 /* TransferAmountView.swift */; };
D60828F846490A6462E351E9 /* CoinJoinWithdrawalStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B208A9A34D0FFEEC796752C /* CoinJoinWithdrawalStore.swift */; };
7A30002330A1000000000023 /* AssetLockProbeStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A30002130A1000000000021 /* AssetLockProbeStore.swift */; };
BABA1000000000000000001D /* AssetLockFailureStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = BABA1000000000000000001B /* AssetLockFailureStore.swift */; };
D6C0C001D6C0C001D6C0C001 /* GiftCardDetailsInfoCard.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6C0B001D6C0B001D6C0B001 /* GiftCardDetailsInfoCard.swift */; };
D6C0C002D6C0C002D6C0C002 /* GiftCardDetailsMerchantHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6C0B002D6C0B002D6C0B002 /* GiftCardDetailsMerchantHeader.swift */; };
D6C0C003D6C0C003D6C0C003 /* GiftCardPurchaseSelectionSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6C0B003D6C0B003D6C0B003 /* GiftCardPurchaseSelectionSheet.swift */; };
Expand Down Expand Up @@ -2257,6 +2260,7 @@
080B9ECCDC82A7B7FF4039C6 /* ScriptAddressCodec.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ScriptAddressCodec.swift; sourceTree = "<group>"; };
0B208A9A34D0FFEEC796752C /* CoinJoinWithdrawalStore.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CoinJoinWithdrawalStore.swift; sourceTree = "<group>"; };
7A30002130A1000000000021 /* AssetLockProbeStore.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = AssetLockProbeStore.swift; sourceTree = "<group>"; };
BABA1000000000000000001B /* AssetLockFailureStore.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = AssetLockFailureStore.swift; sourceTree = "<group>"; };
0C1D2D397047E72188C90FAE /* DWAboutModel+MasternodeSync.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "DWAboutModel+MasternodeSync.swift"; sourceTree = "<group>"; };
0CE6B29178211061196A0936 /* Pods-WatchApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WatchApp.debug.xcconfig"; path = "Target Support Files/Pods-WatchApp/Pods-WatchApp.debug.xcconfig"; sourceTree = "<group>"; };
0D2C8F8102C5C603DB63569F /* ShieldedTransferCoordinator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ShieldedTransferCoordinator.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3309,6 +3313,7 @@
7A30002130A2000000000021 /* CrowdNodeOwnershipTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CrowdNodeOwnershipTests.swift; sourceTree = "<group>"; };
7A31000130A2000000000001 /* CoinJoinMoveDestinationPolicyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoinJoinMoveDestinationPolicyTests.swift; sourceTree = "<group>"; };
7A30001130A1000000000011 /* StuckAssetLockRetryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StuckAssetLockRetryTests.swift; sourceTree = "<group>"; };
BABA1000000000000000001E /* AssetLockDiagnosticsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssetLockDiagnosticsTests.swift; sourceTree = "<group>"; };
7C1177A130A1000000000001 /* InternalTransferNoticeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InternalTransferNoticeTests.swift; sourceTree = "<group>"; };
D4911E48CD7945E7B78664F7 /* CoreShieldedDrainStoreTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreShieldedDrainStoreTests.swift; sourceTree = "<group>"; };
7C0DE5A1B2C34D5E6F708195 /* CoreShieldedDrainRecipientTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreShieldedDrainRecipientTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -7658,6 +7663,7 @@
7A30002130A2000000000021 /* CrowdNodeOwnershipTests.swift */,
7A31000130A2000000000001 /* CoinJoinMoveDestinationPolicyTests.swift */,
7A30001130A1000000000011 /* StuckAssetLockRetryTests.swift */,
BABA1000000000000000001E /* AssetLockDiagnosticsTests.swift */,
7C1177A130A1000000000001 /* InternalTransferNoticeTests.swift */,
D4911E48CD7945E7B78664F7 /* CoreShieldedDrainStoreTests.swift */,
7C0DE5A1B2C34D5E6F708195 /* CoreShieldedDrainRecipientTests.swift */,
Expand Down Expand Up @@ -7724,6 +7730,7 @@
UM00B0032FA0000000000001 /* UsernameMarketplaceService.swift */,
A1FA10C00000000000000001 /* AssetLockRecoveryService.swift */,
7A30002130A1000000000021 /* AssetLockProbeStore.swift */,
BABA1000000000000000001B /* AssetLockFailureStore.swift */,
UTR0B0002FA0000000000001 /* UnconfirmedTransactionRemover.swift */,
INSGT0001000000000000001 /* InsightExplorerAPI.swift */,
9F5A428A4E24408592C674A0 /* ShieldedBalanceController.swift */,
Expand Down Expand Up @@ -10942,6 +10949,7 @@
C05FA6CE3DDE2D0327D334E5 /* CoinJoinRecovery.swift in Sources */,
D60828F846490A6462E351E9 /* CoinJoinWithdrawalStore.swift in Sources */,
7A30002330A1000000000023 /* AssetLockProbeStore.swift in Sources */,
BABA1000000000000000001D /* AssetLockFailureStore.swift in Sources */,
950A3F8FA0D89530F227FE25 /* CoinJoinWithdrawalTxSet.swift in Sources */,
99FAE80A3A63E073A2EB5209 /* PaymentProtocolWireFormat.swift in Sources */,
4539AA3FC5C209480BA279AA /* PaymentProtocolMessages.swift in Sources */,
Expand Down Expand Up @@ -11017,6 +11025,7 @@
7A30002230A2000000000022 /* CrowdNodeOwnershipTests.swift in Sources */,
7A31000230A2000000000002 /* CoinJoinMoveDestinationPolicyTests.swift in Sources */,
7A30001230A1000000000012 /* StuckAssetLockRetryTests.swift in Sources */,
BABA1000000000000000001F /* AssetLockDiagnosticsTests.swift in Sources */,
7C1177A230A1000000000002 /* InternalTransferNoticeTests.swift in Sources */,
727FF6515F1B4A62A03534AD /* CoreShieldedDrainStoreTests.swift in Sources */,
7C0DE5A1B2C34D5E6F708196 /* CoreShieldedDrainRecipientTests.swift in Sources */,
Expand Down Expand Up @@ -12065,6 +12074,7 @@
B66294BFAF57B052A74EE77D /* CoinJoinRecovery.swift in Sources */,
973AD0F3986AFFDBA78ED560 /* CoinJoinWithdrawalStore.swift in Sources */,
7A30002230A1000000000022 /* AssetLockProbeStore.swift in Sources */,
BABA1000000000000000001C /* AssetLockFailureStore.swift in Sources */,
931B18EAFD7F2563BFAAF21E /* CoinJoinWithdrawalTxSet.swift in Sources */,
2556F3C5C72D70A771C6C61A /* PaymentProtocolWireFormat.swift in Sources */,
C1B995F0556113706D9CDA9A /* PaymentProtocolMessages.swift in Sources */,
Expand Down
11 changes: 7 additions & 4 deletions DashWallet/Sources/Categories/UIViewController+DashWallet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,25 @@ extension UIViewController {
// Zip the recent SwiftDashSDK log sessions off the main actor
// first (blocking file I/O), then compose. App logs stay as
// loose attachments — the support workflow already expects
// them — while the SDK sessions ride along as one zip. A
// failed/empty SDK export (e.g. first launch after the update
// that enabled file logging) just omits the zip.
// them — while the SDK sessions ride along as one zip. With no
// SDK session on disk (e.g. first launch after the update that
// enabled file logging) the zip still carries `summary.txt` when
// asset locks are tracked; a failed or empty export omits it.
let network = SwiftDashSDKHost.shared.runningNetwork.map { String(describing: $0) } ?? "unknown"
let short = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "?"
let build = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "?"
let appVersion = "\(short) (\(build))"
let currentSession = LoggingPreferences.currentSessionDirectory
let assetLocks = DiagnosticLogExporter.captureAssetLocks()

Task { [weak self] in
let sdkLogsZip = await Task.detached(priority: .userInitiated) { () -> URL? in
try? DiagnosticLogExporter.export(
network: network,
appVersion: appVersion,
currentSession: currentSession,
appLogFiles: [])
appLogFiles: [],
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
assetLocks: assetLocks)
Comment thread
llbartekll marked this conversation as resolved.
Resolved
}.value
self?.presentSupportEmailController(sdkLogsZip: sdkLogsZip)
}
Expand Down
Loading
Loading