Commit Graph

63 Commits

Author SHA1 Message Date
Sasha Weiss
714a789cc5
Make DonationSubscriptionManager a singleton instance, not a static class 2026-05-13 16:15:30 -07:00
Sasha Weiss
8a0e1a9a2c
Use Cron/scheduleFrequently for subscription redemption 2026-05-13 16:14:19 -07:00
Max Radermacher
13d5fe93dc
Run swiftformat . using v0.60.1 2026-03-26 17:10:38 -05:00
Max Radermacher
94467ce733
Remove unnecessary SDSCodableModel requirements 2026-03-05 21:51:36 -06:00
Max Radermacher
9d20237b9c
Don’t retry errors by default 2026-01-26 12:47:51 -06:00
Max Radermacher
24b213a32b
Improve KeyValueStore compile-time checks 2026-01-09 15:08:26 -06:00
Sasha Weiss
d267ec8305
Run swiftformat . 2025-12-30 11:34:05 -08:00
Sasha Weiss
a237b9c114
Simplify and consolidate "DB Corruption" handling 2025-12-18 17:11:36 -08:00
Max Radermacher
422d7547ce
Add & use RegisteredState 2025-12-10 14:52:53 -08:00
Max Radermacher
0977510e1f
Throw OWSHTTPError for unexpected status codes 2025-11-25 09:32:58 -06:00
Pete Walters
67d0b5b946
Launch SDSDB into the sun 2025-11-13 17:49:54 -06:00
Sasha Weiss
185d47f50b
Deprotocolize DonationReceiptCredentialResultStore 2025-10-31 12:42:24 -07:00
Sasha Weiss
38ef1d2099
Drop legacy donation errors 2025-10-31 12:40:04 -07:00
Sasha Weiss
f38a373f57
Add ReceiptCredentialManager to handle shared ReceiptCredential logic 2025-10-31 12:37:56 -07:00
Sasha Weiss
7ddd3ca9fa
Avoid Any?-typed responseBodyJson for all but one caller 2025-10-24 12:57:56 -07:00
Sasha Weiss
4a45dc95b8
Add SubscriptionConfigMgr, use to populate Backups-related remote values 2025-10-23 16:09:03 -07:00
Sasha Weiss
db962d8f53
Rename and flatten DonationSubscriptionConfiguration 2025-10-23 16:08:08 -07:00
Sasha Weiss
d7a3f004b3
Guard donations more closely on isRegistered 2025-09-23 09:15:55 -07:00
Max Radermacher
2690a841c4
Remove displayBadgesOnProfileCache 2025-09-16 12:51:28 -05:00
Sasha Weiss
2c70cb177f
Tweaks to reconcileBadgeStates 2025-09-15 14:49:12 -07:00
Sasha Weiss
9a35281f52
Make BkpSubMgr/redeemSubscriptionIfNecessary await interrupted-and-resumed redemptions 2025-09-10 12:55:22 -07:00
Max Radermacher
bb2d89e55a
Update to LibSignal v0.75.0 2025-06-17 14:02:29 -05:00
Max Radermacher
a13b225cd5
Asyncify iDEAL callback handling 2025-06-17 00:05:50 -05:00
Sasha Weiss
93d2a9274d
Add optional network/5xx retries to NetworkManager 2025-06-04 14:21:42 -07:00
Sasha Weiss
d13e5afb1a
Make BackupPlan more detailed, set in response to more events 2025-05-28 12:50:07 -07:00
Sasha Weiss
81ad376eb1
Avoid enqueuing multiple donation-redemption jobs for a single period 2025-05-15 16:43:44 -07:00
Pete Walters
95779395ac
Remove bank selection from iDEAL donations 2025-05-14 13:05:24 -05:00
Sasha Weiss
dec50cfc52
Reregister subscriberID for StoreKit subscription if remote Subscription missing 2025-05-12 12:28:05 -07:00
Max Radermacher
2cfaebf865
Delete the old subscription when starting anew 2025-04-21 14:40:53 -05:00
Max Radermacher
1f134a2d85
Use awaitableWrite when cancelling subscription 2025-04-21 11:30:06 -05:00
Sasha Weiss
969b0db854
Add SubscriptionFetcher, decoupled from donations 2025-04-07 12:52:44 -07:00
Sasha Weiss
43be0e5eec
Use system localization for currency formatting 2025-04-03 11:17:58 -07:00
Pete Walters
a3e8141ba9
Asyncify DonationSubscriptionManager (part 2)
Co-authored-by: Ehren Kret <ehren@signal.org>
2025-03-25 16:59:45 -05:00
Sasha Weiss
1a5cbd9183
Rename postNotificationNameAsync to postOnMainThread 2025-03-21 15:28:35 -07:00
Sasha Weiss
be619eb10b
Make DBWriteTransaction only take sync completions 2025-03-21 15:27:42 -07:00
Max Radermacher
10cb6f69f7
Use HttpHeaders in more places 2025-03-21 13:53:38 -05:00
Ehren Kret
7c0c2de8d3 convert some donation logic from promises to swift concurrency 2025-03-14 09:24:33 -05:00
Sasha Weiss
bb048e8b59
One transaction type to rule them all and in the darkness bind them 2025-03-13 21:43:35 -07:00
Sasha Weiss
047e3a38df
Clean up SDSAnyWriteTransaction async completion 2025-03-13 21:38:21 -07:00
Max Radermacher
6abe506cb0
Asyncify fetchLocalUsersProfile 2025-03-10 13:51:00 -05:00
Pete Walters
c6e3692633
Asyncify Stripe methods 2025-03-07 12:29:07 -06:00
Max Radermacher
c2070943a5
Prefer infallible String → Data construct 2025-03-06 13:56:16 -06:00
Sasha Weiss
1082e08786
Always suppress 409 errors from donation subscription-redemption jobs 2025-03-05 12:28:37 -08:00
Max Radermacher
ed57c5fb49
Asyncify Paypal.AuthSession 2025-02-12 18:25:37 -06:00
Ehren Kret
3c159a4ec6
convert Paypal+API from promises to async-await 2025-02-11 10:35:33 -06:00
Ehren Kret
6ed390c381 remove unused objc compat code on OWSRetryableSubscriptionError 2025-02-10 10:37:48 -06:00
Ehren Kret
c9f4b83ffb remove DonationSubscriptionManager objc compat 2025-02-10 08:05:36 -06:00
Ehren Kret
83b37e74a3 remove unused objc compat 2025-02-07 05:30:56 -06:00
Sasha Weiss
45658e6454
Some subscription cleanup 2025-01-17 13:59:12 -08:00
Max Radermacher
b7dedf2c0d
Remove last remnants of OWSUserProfile caching 2025-01-08 21:15:10 -06:00