Commit Graph

30329 Commits

Author SHA1 Message Date
Harry
39ec3d8d56
Hook together RegistrationNavigationController and RegistrationCoordinator
* Move RegistrationNavigationController

* Create the most basic version of RegistrationNavController conceivable

* Hook up RegistrationCoordinator

* Add new scheme for testing registration bravo
2023-02-17 08:00:48 -08:00
automated-signal
d70931744b "Bump build to 6.14.0.2." (nightly-02-17-2023) 2023-02-17 04:00:53 -08:00
Harry
a23d469aac
Finish registration in RegistrationCoordinator
* Finish registration in RegistrationCoordinator

* Get tests to compile again (but not pass)

* Tests passing again

* Test session happy path all the way through to completion

* Test KBS auth credential happy path all the way through to completion

* Test KBS reg recovery password happy path all the way through to completion

* PR comments
2023-02-16 17:21:21 -08:00
Igor Solomennikov
d8a3068615
Fix misplaced < back button in media viewer. 2023-02-16 16:17:15 -08:00
Igor Solomennikov
c6be6be4f0
Fix misplaced X button on iPhones with Dynamic Island.
Use UINavigationBar to place X button where it should be.
2023-02-16 16:16:40 -08:00
Evan Hahn
14a0a2d0d7
Add (dormant) registration loading screens
* Add (dormant) registration loading screens

* Consolidate to a single vc
2023-02-16 15:46:05 -08:00
Evan Hahn
5198fa08a9
Localize new registration phone number entry strings
This addresses a `TODO`.
2023-02-16 15:42:05 -08:00
Igor Solomennikov
57e3ad162d
Spring-based animations for media viewer open/close transitions.
Also includes updated behavior for interactive dismiss:
• higher drag threshold until dismiss
• dimmer underneath image
• image is scaled down to 80% size.
2023-02-16 13:14:00 -08:00
Max Radermacher
ad5bf7c597 Fix main queue scheduler 2023-02-16 12:18:15 -08:00
Sasha Weiss
2013bf5c09
Rebuild table contents on rotation in username selection 2023-02-16 12:12:20 -08:00
Sasha Weiss
5e0586ba7f
Add a flag for showing username education 2023-02-16 12:11:48 -08:00
Evan Hahn
756823890a
Add new (dormant) registration CAPTCHA screen 2023-02-16 13:38:35 -06:00
Evan Hahn
3586894501
Consolidate E164 -> PhoneNumber code 2023-02-16 09:57:15 -08:00
Evan Hahn
34939106f1
New (dormant) registration UI: confirm before sending codes 2023-02-16 08:03:31 -08:00
automated-signal
85034dc984 "Bump build to 6.14.0.1." (nightly-02-16-2023) 2023-02-16 04:00:51 -08:00
Evan Hahn
75308ab9f4
Add new registration verification code screen (dormant)
This also un-deprecates RegistrationVerificationCodeView and puts it in
its own file (but makes no behavior changes).
2023-02-15 16:24:59 -08:00
Harry Sanabria
ee83fcf8e7 "Bump build to 6.14.0.0." (nightly-02-15-2023) 2023-02-15 15:34:19 -08:00
Harry Sanabria
35dbd733ad Update translations 2023-02-15 15:33:27 -08:00
Harry Sanabria
946bd797bc Update release notes 2023-02-15 15:30:25 -08:00
Evan Hahn
99cfa9e2df
Add new registration phone number entry screen (dormant) 2023-02-15 12:41:17 -08:00
Pete Walters
9b96323f88
Add usernames education prompt 2023-02-15 13:47:12 -06:00
Max Radermacher
77977fb597 Add background tasks for orphan data cleaner 2023-02-15 09:49:17 -08:00
Evan Hahn
b753bf6165 Mark bad initializer unavailable
This change should have no user impact.

Nobody should be using this, and this annotation will help prevent that.
2023-02-15 08:01:53 -08:00
Max Radermacher
c923ebd0dc
Fix Promise chain when sending typing indicators 2023-02-15 07:45:12 -08:00
Adam Mork
cf00420c35
[Payments] Increase perceived payment speed
* txOutStatus and less frequent balance check

* clearCurrentPaymentBalance

* fix dispatch queue compile issue

* revert pods change

---------

Co-authored-by: Phil Larson <phil.larson@icloud.com>
2023-02-15 07:43:43 -08:00
automated-signal
1d8bd3568d "Bump build to 6.13.0.5." (nightly-02-15-2023) 2023-02-15 04:00:47 -08:00
Max Radermacher
37603f1906 Fix build error in username code 2023-02-14 18:07:05 -08:00
Sasha Weiss
44a6fa24ab
Add contacts' usernames to ContactRecord, if nothing better available 2023-02-14 13:42:53 -08:00
Sasha Weiss
bb7013ec71
Store the local username on AccountRecord 2023-02-14 11:25:48 -08:00
Max Radermacher
0b20910516 Remove unused Pods files 2023-02-14 11:24:09 -08:00
Max Radermacher
49a13d35ae Clean up Podfile 2023-02-14 11:20:50 -08:00
Harry
9501a5bbf5
Populate AccountAttributes in RegistrationCoordinator
* Populate AccountAttributes in RegistrationCoordinator

* pr comments and cleanup
2023-02-14 10:40:47 -08:00
Harry
3d6225060d
Add RegistrationCoordinator
* Add ability to compute registration recovery password

* Add RegistrationCoordinator

* remove repeat nav controller that evan added

* Scaffolding for RegistrationCoodinator test

* Add first round of RegistrationCoordinator tests, some stuff I needed to get them working, and some fixes to RegistrationCoordinator itself I discovered thanks to the tests

* switch to owsFailBeta

* Add auth credential candidate flow tests, related fixes and additions to coordinator and friends

* Add tests for session based registration path and associated fixes

* PR comment nits
2023-02-14 08:50:24 -08:00
Evan Hahn
6049a8e8f7 Deprecate RegistrationPhoneNumber
This renames `RegistrationPhoneNumber` to
`Deprecated_RegistrationPhoneNumber`, which should have no user impact.
This will be useful for an upcoming change.
2023-02-14 06:19:26 -08:00
automated-signal
b860900cf1 "Bump build to 6.13.0.4." (nightly-02-14-2023) 2023-02-14 04:00:44 -08:00
Max Radermacher
5d1cf35c1d Remove dependency on OpenSSL
It was replaced with functionality provided by libsignal.
2023-02-13 23:12:58 -08:00
Igor Solomennikov
756e162ee5
Re-worked in-app camera internals.
• Disable video stabilization (both on capture preview and video recording connections). Stabilization is causing a significant video stream latency, which resulted in last ~1.5 seconds of video not being written. The other thing stabilization was causing was zoomed-in camera preview. With stabilization off in-app camera now has the same FOV (in both preview and recorded video) as native camera app in Photo mode.
• Use a separate AVCaptureSession for capturing audio. This prevents a visible stutter in video stream at the beginning of video recording as audio input is added.
• Use separate dispatch queues for processing video and audio samples. This is again done to minimize a chance of any stutter during recording.
• Redo the way duration of video recording in progress is displayed in the UI. Old solution was to use a timer initialized at video recording start. New solution is to send actual recorded duration from the video recording stack all the way up to the UI.
2023-02-13 21:29:35 -08:00
Evan Hahn
e8c7ba8138
Make RegistrationCountryState a struct
This change should have no user impact. I made sure I could go through
registration as normal after this change.

`RegistrationCountryState` was an `NSObject` and now it's a Swift-only
struct. (It still requires `Dependencies` for now, but I think this is
an improvement.)
2023-02-13 18:29:02 -08:00
Sasha Weiss
d4760dc8b2
Show username edit/delete action sheet from profile settings 2023-02-13 18:03:14 -08:00
Max Radermacher
f4c8a6b770 Fix size of “scroll to mention” button 2023-02-13 15:27:46 -08:00
Max Radermacher
9e3b5a06fc
Use LibSignalClient for Device Transfer certs
Co-authored-by: Jordan Rose <jrose@signal.org>
Co-authored-by: Pete Walters <pete@signal.org>
2023-02-13 14:16:18 -08:00
Max Radermacher
272093e5f2
Fix device limit exceeded error handling 2023-02-13 13:45:26 -08:00
Max Radermacher
56154557dd
Add isStructurallyValidE164
This merges & replaces `resemblesE164:` and `isValidE164`.

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2023-02-13 13:45:00 -08:00
Ehren Kret
cde10a000a fix lint warnings 2023-02-13 15:24:52 -06:00
Ehren Kret
3de04afdcd making shadow warnings into errors 2023-02-13 15:24:52 -06:00
Ehren Kret
87b8c36e69 eliminate variable shadowing in some nested transaction write blocks 2023-02-13 15:24:52 -06:00
Ehren Kret
f9a9484874 remove causes of variable shadowing 2023-02-13 15:24:52 -06:00
Ehren Kret
482973fafd do not use same variable for inner for loop as outer 2023-02-13 15:24:52 -06:00
Ehren Kret
8d592857dd rename variables to eliminate shadowing 2023-02-13 15:24:52 -06:00
Ehren Kret
7418f04308 rename variable to eliminate shadowing 2023-02-13 15:24:52 -06:00