Commit Graph

38 Commits

Author SHA1 Message Date
Sasha Weiss
a237b9c114
Simplify and consolidate "DB Corruption" handling 2025-12-18 17:11:36 -08:00
Max Radermacher
7480a0bc9f
Fix Xcode 26.2 build 2025-12-17 13:50:30 -06:00
Max Radermacher
30060e12d5
Run schema migrations before creating globals 2025-09-29 16:55:17 -05:00
Sasha Weiss
62909f6ff6
Replace usage of writeWithTxCompletion with writeWithRollbackIfThrows 2025-09-23 09:09:18 -07:00
Sasha Weiss
d65ae767ba
Add writeWithRollbackIfThrows method to DB 2025-06-30 10:15:07 -07:00
Sasha Weiss
9a48618897
Consolidate DB default arguments 2025-06-30 10:14:35 -07:00
Max Radermacher
f1225defa7
Add cancellation support to ConcurrentTaskQueue 2025-06-25 17:19:55 -05:00
Sasha Weiss
c5523905b4
Make disabling Backups durable 2025-05-21 23:36:53 -07:00
Max Radermacher
8e90b02969
Asyncify search flows 2025-05-21 12:27:16 -05:00
Sasha Weiss
1a5cbd9183
Rename postNotificationNameAsync to postOnMainThread 2025-03-21 15:28:35 -07:00
Max Radermacher
d403c16796
Remove Promise-based database methods 2025-03-14 12:32:19 -05:00
Ehren Kret
277098b2ca fix missing implementation on SDSDatabaseStorage 2025-03-14 10:03:21 -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
Ehren Kret
ee4bb2b6b9 remove unnecessary completion hook 2025-03-07 15:04:07 -06:00
Ehren Kret
65d131737a convert AppSetup.prepareDatabase() from promises to swift concurrency 2025-03-07 15:04:06 -06:00
Max Radermacher
437bb14699
Rebuild/remove outdated TSInteraction indexes 2025-03-07 15:03:41 -06:00
Max Radermacher
cb1d8d2296
Add annotations for TSInteraction db indexes 2025-03-07 12:20:47 -06:00
Harry
d9be87a76d
Make TSAttachment migration non-blocking again
Co-authored-by: sashaweiss-signal <sasha@signal.org>
2024-12-16 18:09:20 -08:00
Harry
3467b671c5
Pass an NSProgress into the TSAttachment migration
Co-authored-by: Elaine <elaine@signal.org>
2024-12-13 15:51:12 -08:00
Max Radermacher
54eafa1bd9
Clean up app reset method 2024-11-22 17:08:36 -06:00
Ehren Kret
3d0a7d0e36 remove dead code 2024-11-07 09:27:31 -06:00
Harry
aca2204448
Improve post-backup FullTestSearchIndexer error handling 2024-11-04 08:30:01 -08:00
Harry
9937e97d6a
Add database writeWithTxCompletion variants 2024-10-30 12:45:45 -07:00
Ehren Kret
a6fd1765f9 remove unnecessary @objc from SDSDatabaseStorage 2024-10-30 12:01:54 -05:00
Harry
8f9c66cc5c
Clean up SDSDatabaseStorage's layers and layers of methods 2024-10-29 14:51:23 -07:00
Max Radermacher
71950c3e52
Don’t use escaping block for awaitableWrite 2024-10-25 13:00:37 -05:00
Harry
b3b14bc97f
Protocolize+make public DatabaseChangeObserver 2024-10-22 10:42:16 -07:00
Max Radermacher
d40fd336df
Adjust “Use awaitableWrite in Tasks” check 2024-10-01 16:17:44 -05:00
Harry Sanabria
044f277a28 Pass AppReadiness instance to a ton of classes that need to retain it as an instance var 2024-09-27 15:03:52 -07:00
Harry
fd0a34909e
Add non-global AppReadiness protocol + impl 2024-09-27 12:36:15 -07:00
Ehren Kret
5c1731902b
convert SDSCrossProcess and DarwinNotificationCenter to swift 2024-09-24 15:15:51 -05:00
Max Radermacher
6512d0bc47
Use -> Never for rescue blocks 2024-09-24 14:50:56 -05:00
Harry
bb083ca39c
Fold SignalCoreKit into SignalServiceKit
Co-authored-by: Adam Sharp <sharplet@signal.org>
2024-06-26 08:44:41 -07:00
Max Radermacher
5ca7cb66d4
Handle corruption gracefully when repairing the db 2024-06-03 12:34:51 -05:00
Max Radermacher
be974a2551
Rip out unused device transfer code 2024-05-22 15:35:22 -05:00
Max Radermacher
20783085bb
Replace SAMKeychain with direct keychain access 2024-04-05 21:50:00 -05:00
Jordan Rose
b0de59f2e2 Remove required from every init that is not dynamically dispatched
This included:
- Removing unavailable inits wholesale if no longer `required`
- Marking a few classes `final` so they could continue using
  `Self(...)` rather than `OWSWhatever(...)`
2024-04-01 15:27:20 -07:00
Max Radermacher
e10faa8593
Remove src/ prefix from SignalServiceKit files 2024-03-27 12:22:52 -05:00