Skip to content

Commit f71ccd1

Browse files
Merge branch 'master' into fix/backup-wallet-id-migration
2 parents 214cd4e + 9a3b00e commit f71ccd1

43 files changed

Lines changed: 2077 additions & 3689 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ai-device-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
env:
2323
TERM: xterm-256color
2424
FORCE_COLOR: 1
25+
GIT_LFS_SKIP_SMUDGE: "1"
2526

2627
concurrency:
2728
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.suite }}

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
env:
1414
TERM: xterm-256color
1515
FORCE_COLOR: 1
16+
GIT_LFS_SKIP_SMUDGE: "1"
1617

1718
concurrency:
1819
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/e2e_migration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
env:
1414
TERM: xterm-256color
1515
FORCE_COLOR: 1
16+
GIT_LFS_SKIP_SMUDGE: "1"
1617
SIMULATOR_NAME: "iPhone 17"
1718
IOS_VERSION: "26.2"
1819

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
types: [opened, synchronize, reopened, ready_for_review]
99
workflow_dispatch:
1010

11+
env:
12+
GIT_LFS_SKIP_SMUDGE: "1"
13+
1114
concurrency:
1215
group: ${{ github.workflow }}-${{ github.ref }}
1316
cancel-in-progress: true

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types: [opened, synchronize, reopened, ready_for_review]
88
workflow_dispatch:
99

10+
env:
11+
GIT_LFS_SKIP_SMUDGE: "1"
12+
1013
concurrency:
1114
group: ${{ github.workflow }}-${{ github.ref }}
1215
cancel-in-progress: true

Bitkit.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@
11691169
repositoryURL = "https://github.com/pubky/paykit-rs";
11701170
requirement = {
11711171
kind = exactVersion;
1172-
version = "0.1.0-rc8";
1172+
version = "0.1.0-rc31";
11731173
};
11741174
};
11751175
18D65DFE2EB9649F00252335 /* XCRemoteSwiftPackageReference "vss-rust-client-ffi" */ = {

Bitkit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Bitkit/AppScene.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,19 @@ struct AppScene: View {
682682
}
683683

684684
private func retryPendingPaykitEndpointRemoval() async {
685+
if PublicPaykitService.isCleanupPending {
686+
if UserDefaults.standard.bool(forKey: PublicPaykitService.publishingEnabledKey) {
687+
PublicPaykitService.setCleanupPending(false)
688+
} else {
689+
do {
690+
try await PublicPaykitService.removePublishedEndpoints()
691+
PublicPaykitService.setCleanupPending(false)
692+
} catch {
693+
Logger.warn("Failed to retry public Paykit endpoint cleanup: \(error)", context: "AppScene")
694+
}
695+
}
696+
}
697+
685698
await PrivatePaykitService.shared.retryPendingEndpointRemoval(
686699
wallet: wallet,
687700
savedPublicKeys: contactsManager.contacts.map(\.publicKey)

Bitkit/Constants/Env.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,6 @@ enum Env {
336336
}
337337
}
338338

339-
/// Pubky/Paykit capabilities — production for mainnet, staging for regtest/testnet/signet.
340-
static var pubkyCapabilities: String {
341-
switch network {
342-
case .bitcoin:
343-
return "/pub/bitkit.to/:rw,/pub/pubky.app/:r,/pub/paykit/v0/:rw"
344-
default:
345-
return "/pub/staging.bitkit.to/:rw,/pub/staging.pubky.app/:r,/pub/paykit/v0/:rw"
346-
}
347-
}
348-
349339
/// Homegate URL for auto-provisioned identity signup via IP verification.
350340
static var homegateUrl: String {
351341
if isLocalE2EBackend {

Bitkit/FeatureFlags/PaykitFeatureFlags.swift

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ enum PaykitFeatureFlags {
1515
isUIAvailable && UserDefaults.standard.bool(forKey: uiEnabledKey)
1616
}
1717

18-
static func enforceBuildAvailability() {
19-
let defaults = UserDefaults.standard
20-
let hasPublishedState = defaults.bool(forKey: PublicPaykitService.publishingEnabledKey) ||
21-
defaults.bool(forKey: PrivatePaykitService.publishingEnabledKey) ||
18+
static func enforceBuildAvailability(defaults: UserDefaults = .standard, isUIEnabled: Bool = Self.isUIEnabled) {
19+
let hasPublicPublishedState = defaults.bool(forKey: PublicPaykitService.publishingEnabledKey) ||
2220
defaults.bool(forKey: "hasConfirmedPublicPaykitEndpoints") ||
2321
!(defaults.string(forKey: "publicPaykitBolt11") ?? "").isEmpty
24-
22+
let hasPrivatePublishedState = defaults.bool(forKey: PrivatePaykitService.publishingEnabledKey)
23+
let hasPublishedState = hasPublicPublishedState ||
24+
hasPrivatePublishedState ||
25+
defaults.bool(forKey: PublicPaykitService.cleanupPendingKey) ||
26+
defaults.bool(forKey: PrivatePaykitService.cleanupPendingKey)
2527
guard !isUIEnabled, hasPublishedState else { return }
2628

2729
defaults.set(false, forKey: uiEnabledKey)
@@ -32,6 +34,11 @@ enum PaykitFeatureFlags {
3234
defaults.removeObject(forKey: "publicPaykitBolt11PaymentHash")
3335
defaults.removeObject(forKey: "publicPaykitBolt11ExpiresAt")
3436

35-
PrivatePaykitService.setContactSharingCleanupPending(true)
37+
if hasPublicPublishedState {
38+
defaults.set(true, forKey: PublicPaykitService.cleanupPendingKey)
39+
}
40+
if hasPrivatePublishedState {
41+
defaults.set(true, forKey: PrivatePaykitService.cleanupPendingKey)
42+
}
3643
}
3744
}

0 commit comments

Comments
 (0)