Ehren Kret
5d3ca7fb3c
convert OWSProfileManager from objc to swift
2024-08-30 15:14:30 -05:00
Ehren Kret
c752ae612d
misc cleanups
2024-08-29 14:56:41 -07:00
Max Radermacher
99ff1a6858
Swiftify OWSRequestFactory
2024-08-28 16:05:58 -05:00
Ehren Kret
edefa9a440
migrate OWSFakeProfileManager from objc to swift
2024-08-28 15:10:10 -05:00
Harry
6fe99bd69b
Add support for versioned DM expire timer updates
2024-08-22 14:02:03 -07:00
Adam Sharp
f1667993f5
Make AppContext a non-Objective-C protocol
2024-08-22 16:39:27 -04:00
Max Radermacher
acf50c3559
Reformat code related to message requests
2024-08-12 11:46:41 -05:00
Sasha Weiss
6c44bf955e
Fixes for restoring a Group from Backups
2024-08-07 14:57:02 -07:00
Ehren Kret
99b52c05b2
replace Cryptography.computeSHA256HMAC(_ 🔑 ) with CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
e1cfd116a2
rename OWSAES256Key in swift to Aes256Key
2024-08-02 09:29:55 -05:00
Ehren Kret
557d6a67cc
migrate Cryptography over to swift
...
`srand` is not accessible in swift. Remove `srand` anyhow as anything
using `rand` for any actual randomness should be considered a bug in
need of fixing rather than viewing `srand` as an acceptable workaround.
2024-08-01 14:43:34 -05:00
Max Radermacher
f11f7833df
Swiftify reuploadLocalProfile(…)
2024-08-01 12:18:51 -05:00
Max Radermacher
2659c6abc2
Wrap some OWSProfileManager methods in an #ifdef
2024-08-01 12:18:51 -05:00
Ehren Kret
69bd0af9ad
migrate OWSAES256Key from objc to swift
2024-07-31 12:23:25 -05:00
Max Radermacher
2344354d2b
Consolidate “download too large” code
2024-07-25 02:37:38 -05:00
Sasha Weiss
6ec1e6f3a3
Use getOrBuild to upsert user profiles during contact restore
2024-07-09 15:56:14 -07:00
Adam Sharp
c2fd39a95c
Switch from deprecated UTI functions to UTType
2024-07-08 10:17:08 -04:00
Harry
bb083ca39c
Fold SignalCoreKit into SignalServiceKit
...
Co-authored-by: Adam Sharp <sharplet@signal.org>
2024-06-26 08:44:41 -07:00
Sasha Weiss
d193a937c8
Add a capability to enable sending DeleteForMe sync messages
2024-06-13 11:12:05 -07:00
Sasha Weiss
3ffcc47a66
Scaffold for Backup integration tests
2024-05-17 13:59:49 -07:00
Ehren Kret
13a1637608
migrate AppContext protoocl to swift
2024-05-08 07:37:37 -05:00
Ehren Kret
4364907c3e
move AppContext globals to swift
2024-05-08 07:37:37 -05:00
Max Radermacher
fa48dd4b5d
Fix LocalProfileChecker avatar mismatch handling
2024-05-07 17:04:54 -05:00
Max Radermacher
6f4fbd37cb
Fetch profiles in the NSE
2024-05-02 15:32:14 -05:00
Max Radermacher
33549e5893
Rebuild ProfileFetcher
2024-05-02 14:29:07 -05:00
Sasha Weiss
b9852224d8
Backup/Restore local group state
2024-04-29 13:49:51 -07:00
Ehren Kret
eb151549e0
remove iOS 13 availability checks
2024-04-27 12:51:59 -05:00
Ehren Kret
b63a2d6bf4
migrate NSData+Image to swift
2024-04-26 05:24:55 -05:00
Max Radermacher
5b8bf0f35b
Make LocalProfileChecker less aggressive
2024-04-25 16:04:47 -05:00
Max Radermacher
351ed2152f
Remove some unused profile manager methods
2024-04-25 12:21:25 -05:00
Max Radermacher
d6aaa92ca3
Add DBWriteTransaction.addSyncCompletion
2024-04-23 15:49:03 -05:00
Max Radermacher
dd42e10e88
Smoosh together various places that fetch profiles
2024-04-23 15:22:37 -05:00
Max Radermacher
456f2037ee
Stop putting kLocalProfileUniqueId in addresses
2024-04-23 13:58:27 -05:00
Ehren Kret
5068cd3782
finish migrating UIImage+OWS to swift
2024-04-23 07:47:47 -05:00
Ehren Kret
039d2625b9
convert OWSMath.h to swift
...
OWSMath.swift overlaps somewhat with Math+OWS.swift but no worse than
OWSMath.h did previously. There are future refactoring efforts that
should occur there to use more of the extensions of Math+OWS.swift and
less of the extensions from OWSMath.swift
2024-04-21 23:26:16 -05:00
Sasha Weiss
f1f4e6977d
Do away with ensureGroupIdMapping
2024-04-19 15:46:18 -07:00
Max Radermacher
558a62dc2e
Download local avatar after Storage Service syncs
2024-04-18 17:43:41 -05:00
Pete Walters
425f7a5d3d
expose setProfileKeyData variant that doesn't do a fetch
2024-04-12 12:08:05 -05:00
Ehren Kret
bdf6b9a4da
remove MIMETypeUtil.h/m and finish swift conversion
2024-04-11 22:19:16 -05:00
Pete Walters
2c6cfd7f32
Clean up uses of AuthedAccount in profiles
2024-04-11 11:11:43 -05:00
Max Radermacher
8cac7bccf8
Move StaleProfileFetcher into its own file
2024-04-05 20:12:46 -05:00
Max Radermacher
f1dd7f7bfd
Move SSK/Util/Profiles into SSK/Profiles/
2024-04-05 20:09:40 -05:00
Max Radermacher
269e2cd972
Use streaming decryption for profile avatars
2024-04-05 20:08:42 -05:00
Max Radermacher
9e2d753bc0
Remove redundant profile avatar download triggers
2024-04-05 20:07:20 -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
Pete Walters
3ea62d8fc4
Add some logging around paymentAddressData and profile updates
2024-03-29 13:55:50 -05:00
Max Radermacher
2c1b883f5f
Don’t swallow profile decryption errors
2024-03-28 02:24:58 -05:00
Jordan Rose
3df4d465fe
Remove AtomicLock; it was just a simple wrapper around UnfairLock
2024-03-27 10:57:32 -07:00
Max Radermacher
be4cada92d
Clean up some info lines
2024-03-27 12:08:43 -05:00
Ehren Kret
62dfaceca6
apply lint cleanups
2024-03-06 12:47:06 -06:00