Commit Graph

175 Commits

Author SHA1 Message Date
Adam Sharp
1a8c9fb5c6
Fix iOS 18 crash on launch due to offscreen rendering
Creating a UIImageView outside a view hierarchy now crashes on iOS 18. We can
avoid this offscreen rendering technique by removing UIImage.asTintedImage(),
configuring the tint colour and template rendering on the UIImage directly, and
rendering with UIGraphicsImageRenderer instead of lower-level Core Graphics
APIs.
2024-08-20 10:47:28 -04:00
Ehren Kret
99cb4b5ebe remove toE164 method from PhoneNumber 2024-08-07 16:16:02 -05:00
Ehren Kret
fc350cb88a convert PhoneNumber to swift 2024-08-07 16:16:02 -05:00
Ehren Kret
e1cfd116a2 rename OWSAES256Key in swift to Aes256Key 2024-08-02 09:29:55 -05:00
Ehren Kret
8db47c5f62 inline Cryptography.generateRandomBytes 2024-08-01 15:33:26 -05:00
Sasha Weiss
239fc7876e
Drop our custom ContextMenuButton 2024-07-22 11:38:39 -07:00
Max Radermacher
4b15e46318
Rename AccountId → RecipientUniqueId 2024-07-11 10:38:21 -05:00
Adam Sharp
b42710cf90 Work around use of deprecated UIButton API
The old UIButton API is still functional as long as we don't use
UIButton.Configuration, so we can safely ignore these warnings until we're
ready to adopt the configuration API across the codebase.
2024-07-03 14:27:48 -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
5e218e8546
Add support for plaintext backup import/export 2024-05-17 10:40:21 -07:00
Adam Sharp
cd862ce75e Fix missing DebugUI symbol when building for profiling 2024-05-16 15:16:22 -04:00
Harry
3cf36728b9
Correctly show new PIN entry after skipping old PIN entry post-registration
Co-authored-by: Pete Walters <pete@signal.org>
2024-05-15 10:27:36 -07:00
Harry
3ad0f4c89a
Don't use backup internal registration step in tests 2024-05-14 17:59:52 -05:00
Ehren Kret
0ab16e43a4
remove the last chunk of objc in the main app target 2024-05-13 12:35:01 -05:00
Pete Walters
7d391dd48c
Fix scenario where restore from backup during reg was skipped 2024-05-01 16:20:16 -05:00
Max Radermacher
0b3d2a8f18
Remove and fix confusing substring methods 2024-05-01 15:46:25 -05:00
Pete Walters
64e70938a1
Add ability to restore from local or remote backup during registration 2024-04-30 17:27:38 -05:00
Ehren Kret
a99f79ceed remove availability checks for iOS 14 and 14.0 2024-04-27 13:07:03 -05:00
Max Radermacher
177b43e229
Update to Lottie v4.4.3 2024-04-25 18:19:25 -05:00
Ehren Kret
3b51f00f6a migrate two factory methods of UIImage+OWS to swift 2024-04-22 00:17:31 -05:00
Max Radermacher
a241f40621
Fix a few build warnings 2024-04-17 19:11:13 -05:00
Max Radermacher
5bad8c00e4
Use async-await for a few notification methods 2024-04-11 18:47:02 -05:00
Harry
2440a29d32
Set local master key if we have a PIN but no master key 2024-04-10 08:08:52 -07:00
Max Radermacher
e79f977868 Fix TESTABLE_BUILD compile error 2024-04-06 13:22:28 -05:00
Sasha Weiss
7d65d35a62
Support DB debugging when restoring in Debug+Sim builds 2024-04-05 13:48:48 -07:00
Sasha Weiss
148def8251
Remove explicit storage service restore from SVR backup in reg 2024-04-04 13:27:50 -07:00
Max Radermacher
638e4f9421
Simplify & stabilize system contact parsing 2024-04-02 12:54:03 -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
c83b75c95f
Add MessageBackupManager import call in registration step 2024-03-29 20:44:04 -05:00
Pete Walters
b1c3c14e68
Add dev-only backup restore option for registraion flow. 2024-03-29 19:18:06 -05:00
Max Radermacher
2e91c8d92c
Move around a bunch of files in Signal/ 2024-03-25 13:26:31 -05:00
Ehren Kret
d4e17730f3 remove import SignalMessaging statements 2024-03-12 03:35:34 -05:00
Ehren Kret
9c7078b3f8 migrate OWSContactsManager to swift
as the last remaining objective-c file, this removed direct dependency
from the SignalMessaging framework headers on SignalServiceKit and
thus required adding lots of import statements
2024-03-09 10:45:55 -06:00
Max Radermacher
6ec2ab3b51
Remove PNP, usernames, and CDSI flags 2024-03-05 12:48:25 -06:00
Harry
2e2368d587
Allow exiting already-started registration flow if already registered 2024-02-16 16:46:10 -08:00
Max Radermacher
d8298b6e8d
Fix code to ensure local profile name is correct 2024-01-23 17:47:27 -06:00
Harry
b17514d333
Remove unused rotateMasterKey param 2024-01-23 14:52:37 -08:00
Max Radermacher
6648c23814
Fix avatar handling for profile changes/reuploads 2024-01-18 10:40:56 -06:00
Sasha Weiss
a3f12e3f55
Reclaim username during registration 2024-01-17 16:59:33 -08:00
Max Radermacher
3f2836733e
Make profile update methods into instance methods 2024-01-09 11:09:14 -06:00
Max Radermacher
14927beeaa
Add ProfileManager protocol 2024-01-08 13:30:25 -06:00
Harry
9891ceb13a
Clean up PreKeyManager to remove twenty thousand layers of abstraction 2023-12-12 13:44:00 -08:00
Harry
f1432f5b20
Add logging to reg nav controller presentation 2023-12-05 19:53:14 -05:00
Harry
b286715d6e
[Atomic device creation/linking 90 day timer] Delete legacy prekey rotation method and usages 2023-11-27 12:27:05 -08:00
Harry
9eb0ad3dde
Delete AccountManager 2023-11-21 12:37:54 -08:00
Harry
9f1c8e3dd0
Refactor AccountManager's finishProvisioningSecondary method 2023-11-21 12:37:00 -08:00
Harry
f392e20de2
Always set master key (falling back to local) when registering 2023-11-20 12:28:22 -08:00
Max Radermacher
fd9c5e8c64
Make isPrimaryDevice available to contact merges 2023-10-23 13:27:25 -05:00
Max Radermacher
59478094ed
Consolidate phone number privacy feature flags 2023-10-17 18:24:52 -05:00
Harry
e3d39d9fc0
Launch KBS into the sun 2023-10-17 11:20:27 -07:00