Commit Graph

491 Commits

Author SHA1 Message Date
Matthew Chen 9da165b846 Continue conversion of app setup. 2017-12-05 11:19:11 -05:00
Matthew Chen ce899edf10 Respond to CR. 2017-12-05 10:44:11 -05:00
Matthew Chen b4e8df79da Migrate environment to SignalMessaging. 2017-12-05 10:29:29 -05:00
Matthew Chen a16058e477 Migrate environment to SignalMessaging. 2017-12-05 10:29:29 -05:00
Matthew Chen 6d87df88aa Migrate environment to SignalMessaging. 2017-12-05 10:29:28 -05:00
Matthew Chen c817aa51b3 Migrate environment to SignalMessaging. 2017-12-05 10:28:46 -05:00
Michael Kirk e3b0333b97 CR: Separate class files
// FREEBIE
2017-12-04 15:29:14 -05:00
Michael Kirk cd440b839f Consolidate search logic
// FREEBIE
2017-12-04 13:53:10 -05:00
Michael Kirk 71bafcc8f0 Search SignalAccounts by profile name
...and fixup some tests
2017-12-04 12:52:59 -05:00
Michael Kirk 2af818b3ba Make SignalMessaging AppExtension safe
// FREEBIE
2017-12-04 12:50:28 -05:00
Matthew Chen bf21d0c0ed Enable logging in SAE; rework log file management to include multiple log directories. 2017-12-01 12:55:47 -05:00
Matthew Chen 8cc33b3de1 Refine loading view of share extension. 2017-12-01 10:48:18 -05:00
Matthew Chen f728f5c09b Incorporate l10n strings from main app into SAE. 2017-12-01 09:46:17 -05:00
Matthew Chen 074664f735 Revert "Modify l10n string extraction script to copy strings to SAE."
This reverts commit c61490c0b4.
2017-12-01 09:42:06 -05:00
Matthew Chen efe0758e3d Revert "Modify l10n string download script to copy strings to SAE."
This reverts commit 9f31c048a2.
2017-12-01 09:41:59 -05:00
Matthew Chen 9f31c048a2 Modify l10n string download script to copy strings to SAE. 2017-12-01 09:41:14 -05:00
Matthew Chen c61490c0b4 Modify l10n string extraction script to copy strings to SAE. 2017-12-01 09:41:14 -05:00
Matthew Chen e7b32899cb Sketch out SAE load screen; make a number of infrastructure changes. 2017-12-01 09:37:52 -05:00
Matthew Chen 61b33b1a45 Make SignalMessaging a build dependency of the share extension. 2017-11-30 14:57:03 -05:00
Matthew Chen 2aafdcf577 Add app extension context, bridging header and PCH to app extension. 2017-11-30 14:57:03 -05:00
Matthew Chen f896bf99d5 Update share extension capabilities. 2017-11-30 14:09:10 -05:00
Matthew Chen 8706d8f599 Update share extension capabilities. 2017-11-30 14:09:10 -05:00
Matthew Chen 66fae5bd54 Clean up ahead of PR. 2017-11-30 10:07:39 -05:00
Matthew Chen cd11ec5698 Add app group, share keychain. Take a first pass at file migration to shared data directory. 2017-11-30 09:49:01 -05:00
Michael Kirk 961727814b Move pinning certificates into App
// FREEBIE
2017-11-29 13:58:27 -08:00
Michael Kirk a11d83187b WIP: Framework-friendly - compiles but crashes on launch
// FREEBIE
2017-11-29 13:58:27 -08:00
Michael Kirk b56f0e0d25 Pod setup for SignalMessaging framework
// FREEBIE
2017-11-29 13:58:27 -08:00
Michael Kirk de028404bb Shared framework between app and extension
// FREEBIE
2017-11-29 13:58:27 -08:00
Michael Kirk d96eb8932b ShareExtension template
Only modification was to target down to iOS9

(targeting iOS8 failed to build)

// FREEBIE
2017-11-29 13:58:27 -08:00
Matthew Chen 5ef9d53c91 Update conversation view UI to reflect unread state. 2017-11-21 17:53:52 -05:00
Matthew Chen d9fcfdeeb7 Fix deadlock when responding to contacts sync messages. 2017-11-21 11:21:08 -05:00
Matthew Chen 9d4ec557dc Update l10n strings; add Persian l10n. 2017-11-16 13:35:54 -05:00
Matthew Chen 5e61307ce3 Don't ask for microphone permissions if app is not active.
// FREEBIE
2017-11-09 02:58:51 -05:00
Matthew Chen 2d21e2ae2c Fix build warnings from XCode 9. 2017-11-09 02:52:44 -05:00
Matthew Chen 3952f717a5 Add Burmese l10n.
// FREEBIE
2017-11-06 15:15:22 -05:00
Matthew Chen e07a240ee5 Merge tag '2.18.0.9' 2017-11-03 14:23:47 -04:00
Michael Kirk 81cff837ae Include root certs from pki.goog
// FREEBIE
2017-11-03 13:55:12 -04:00
Michael Kirk a30533e7b5 Add GTSGIAG3 to censorship circumvention trust store
openssl x509 -outform der -in GIAG3.pem -out GIAG3.crt

// FREEBIE
2017-11-03 11:24:57 -04:00
Michael Kirk a63a767bf2 connecting ping quieter, ringer is louder
- outring: Raised gain on ringer, max is now  -0.6 dB
- outring: clipped hiss
- connecting-ping: reduced volume, max is now -17.8 dB

- remove unused audio files

// FREEBIE
2017-11-02 08:49:46 -04:00
Matthew Chen 9cc4521d07 Respond to CR.
// FREEBIE
2017-10-26 12:09:36 -04:00
Matthew Chen bcf83a4c8e Rework handling of oversize text messages.
// FREEBIE
2017-10-26 11:56:03 -04:00
Matthew Chen 3927815a35 Fix tests broken by the JSQ rewrite.
// FREEBIE
2017-10-25 16:08:15 -04:00
Michael Kirk d87f000051 Interactive/Cancelable slide left for details
// FREEBIE
2017-10-24 15:29:03 -07:00
Matthew Chen 722fc4d7a7 Fix size of message previews.
// FREEBIE
2017-10-24 17:12:26 -04:00
Matthew Chen 5cde74f505 Add Hebrew l10n.
// FREEBIE
2017-10-24 15:59:37 -04:00
Matthew Chen 9b57df67e0 Fix broken build.
// FREEBIE
2017-10-24 09:53:50 -04:00
Michael Kirk 1fee5d97e6 Merge branch 'release/2.18.0' 2017-10-23 16:02:11 -07:00
Michael Kirk efd58022d0 bump version
// FREEBIE
2017-10-23 16:01:37 -07:00
Matthew Chen bd5639baaf Linkify text messages.
// FREEBIE
2017-10-19 22:41:32 -04:00
Matthew Chen 032ec59d1c Respond to CR.
// FREEBIE
2017-10-16 21:05:29 -07:00
Matthew Chen 3723a4845f Restore message cell footers.
// FREEBIE
2017-10-16 20:41:14 -07:00
Matthew Chen c2f07bb3d8 Restore message cell footers.
// FREEBIE
2017-10-16 20:41:14 -07:00
Michael Kirk 0f859d6b20 Merge branch 'release/2.18.0' 2017-10-16 12:27:20 -07:00
Michael Kirk 3080cb512b Compose View: collation index and group search
- Include table index for contacts
- Fix extra spacing in OWS table view
- Separate search results into contact/invite sections
- Include groups in search results when composing new message
- Compose Screen search matches on group member names

// FREEBIE
2017-10-16 12:22:02 -07:00
Matthew Chen 5621fe893c Clean up ahead of PR.
// FREEBIE
2017-10-12 16:23:48 -04:00
Matthew Chen fb408f980c Remove JSQ.
// FREEBIE
2017-10-12 16:23:48 -04:00
Michael Kirk df15c904bc Rework push registration
== Account Registration ==

Not complete until push tokens are uploaded

== Remote Notifications Registration ==

Extracted from PushManager

- wait for notification-settings registration to complete before
  requesting push tokens, otherwise it's possible token requests will
  be ignored.

- Less state required for push notification callbacks, specifically, we
  no longer need to ensure we've created a promise before the
  registration delegate methods get called.

- no more TOCFuture in Signal-iOS (still in SSK for now). It's not in
  cases of inexplicable behavior - one a recently, push notification
  premature free, in redphone, and more popular use, and I've seen two
  futures inexplicably being nil.  Instead, let's consolidate around
  PromiseKit for popularly used, maintained, strongly-typed futures.

- separate logic for registering for vanilla push/voip notifications
  (few dependencies) from responding to UILocalNotifications (lots of
  dependencies). Ultimately I'd like to consolidate the remaining
  UILocalNotifications logic with the existing NotificationsManager

== Misc ==

more debug logging
more uniform logging
remove stale logic around newly registered user

// FREEBIE
2017-10-12 12:02:22 -04:00
Matthew Chen 5999178e78 Remove FLAnimatedImage.
// FREEBIE
2017-10-10 09:50:13 -04:00
Michael Kirk 2e196e21c6 update third party dependencies
// FREEBIE
2017-10-06 17:56:29 -04:00
Michael Kirk ff2f9ebaf0 fix compiling on 32bit.
// FREEBIE
2017-10-05 13:02:38 -04:00
Matthew Chen a0c9a84390 Clean up ahead of PR.
// FREEBIE
2017-10-02 13:37:32 -04:00
Matthew Chen 789cea118d Pull out GifDownloader class.
// FREEBIE
2017-10-02 13:37:32 -04:00
Matthew Chen 3b9726a4fa Sketch out the GIF picker.
// FREEBIE
2017-10-02 13:37:32 -04:00
Matthew Chen 206f96c9af Sketch out GIF picker.
// FREEBIE
2017-10-02 13:37:32 -04:00
Matthew Chen 27e5a2f1b2 Sketch out GIF picker.
// FREEBIE
2017-10-02 13:37:32 -04:00
Matthew Chen 9710964e38 Sketch out the GIF manager.
// FREEBIE
2017-10-02 13:37:32 -04:00
Michael Kirk e2445e6ed2 Fix RTL bubbles in conversation and message detail view
// FREEBIE
2017-09-28 16:34:10 -04:00
Matthew Chen 9f9ac746d1 Sketch out message metadata view.
* Show message metadata view from conversation view.
* Pull out MediaMessageView class.
* Track recipient read timestamps.
* Add per-recipient status to message metadata view.
* Add share button to message metadata view.

// FREEBIE
2017-09-25 17:25:49 -04:00
Matthew Chen 11cadf4200 Send, receive & show read receipts to senders/from receivers.
* Send read receipts to senders.
* Honor "send read receipts" preference.
* Process read receipts from recipients.
* Refactor "mark as read" logic.
* Serialize and apply recipient read receipts received before sync transcript.
* Show recipient read receipts in conversation view.

// FREEBIE
2017-09-22 14:24:17 -04:00
Matthew Chen bd416176ae Add stress group to debug UI.
// FREEBIE
2017-09-22 00:31:13 -04:00
Matthew Chen 3eaeb4e0ec Add read receipts manager.
* Simplify read receipts plumbing.
* Rework incoming read receipts handling.
* Rework outgoing read receipts handling.
* Make "database view registration complete" check thread-safe.
* Don't send sync messages to self if no linked devices.

// FREEBIE
2017-09-21 16:23:03 -04:00
Matthew Chen 183f0f1ccd Respond to CR.
// FREEBIE
2017-09-19 17:45:18 -04:00
Matthew Chen 80e5f281c6 Rename app preferences class.
// FREEBIE
2017-09-19 17:35:42 -04:00
Matthew Chen 3367292ba0 Merge branch 'hotfix/2.16.1' 2017-09-19 17:25:24 -04:00
Matthew Chen 5be2014ec7 Create Flat UI rounded button class.
// FREEBIE
2017-09-12 14:45:57 -04:00
Matthew Chen ab00342d67 Add modal activity indicator view.
// FREEBIE
2017-09-11 12:49:14 -04:00
Matthew Chen 69816cdf0e Convert DataSource to Objective-C.
// FREEBIE
2017-09-11 10:20:48 -04:00
Matthew Chen 2282733fa9 Add data source class.
// FREEBIE
2017-09-11 10:20:48 -04:00
Michael Kirk 0ec2ac862a Marquee label for callview controller
// FREEBIE
2017-09-11 10:01:21 -04:00
Michael Kirk ad76155bdd audit/fix up supported l10ns (added km and lt)
As policy we don't include a language in Signal until it has at least
80% of strings translated. We don't currently remove languages that fall
below that threshold.

There are two things that must happen to add a localization in Signal.

1. Pull the Localizable.strings from transifex for each language, add
   them to git.
2. Add the localization to the Xcode project file

These four languages were in the repository (step 1) but not properly
added to the project file (step 2):

- khmer (km)
- lithuanian (lt)
- hebrew (he)
- persian (fa)

Of these, only khmer and lithuanian were sufficiently translated, so I
added them properly to the Xcode project file, making them available to
our users.

To make this process slightly easier to track in the future, I've
removed the insufficiently complete `he` and `fa` files from the
repository. Once they fall above 80% translated they will be
automatically downloaded by our sync-translations script, appearing as
new files, being the cue to the developer to add those new translations
to the project (step 2).

Note: the fa/he translations were never available to users, so we're not
going removing anyones existing functionality.

// FREEBIE
2017-09-11 09:55:31 -04:00
Matthew Chen c106794fe8 Rename conversation view.
// FREEBIE
2017-09-06 14:13:18 -04:00
Matthew Chen 928525c31e Rename home view.
// FREEBIE
2017-09-06 13:59:39 -04:00
Matthew Chen fd4f00fa4d Rename new contact thread view.
// FREEBIE
2017-09-06 13:55:01 -04:00
Michael Kirk ae174d4a87 proper handling for multibyte characters
// FREEBIE
2017-09-01 18:15:02 -04:00
Matthew Chen cc048b3971 Respond to CR.
// FREEBIE
2017-08-30 12:46:21 -04:00
Matthew Chen 5fcf89dff1 Ignore "GIF of death."
// FREEBIE
2017-08-30 12:46:21 -04:00
Matthew Chen 44f071bdfb Respond to CR.
// FREEBIE
2017-08-29 12:20:58 -04:00
Matthew Chen 6f5437ee0d Revisit the [UIScrollView _adjustContentOffsetIfNecessary] issue. Fix glitches in the initial scroll state in message view. Don't reset scroll state when returning to the message view.
// FREEBIE
2017-08-29 12:20:58 -04:00
Matthew Chen 7f717c0ca6 Revisit the [UIScrollView _adjustContentOffsetIfNecessary] issue. Fix glitches in the initial scroll state in message view. Don't reset scroll state when returning to the message view.
// FREEBIE
2017-08-29 12:20:58 -04:00
Michael Kirk 6c63009e9e Dedicated "Profile" debug section
// FREEBIE
2017-08-29 10:35:54 -04:00
Michael Kirk 526d5e33b9 Sync profile key to sibling devices when updating contact
// FREEBIE
2017-08-29 10:35:18 -04:00
Matthew Chen 2aaa9155de Add view to Crop and scale avatar.
// FREEBIE
2017-08-25 16:02:15 -04:00
Matthew Chen 2c301feeb7 Add view to Crop and scale avatar.
// FREEBIE
2017-08-25 16:02:15 -04:00
Michael Kirk bde40a1f9c Ensure avatar upates right after profile change.
// FREEBIE
2017-08-25 12:40:19 -04:00
Michael Kirk f6720f9afa properly clear all cached avatar images
// FREEBIE
2017-08-25 12:40:19 -04:00
Matthew Chen 14d472781f Respond to CR.
// FREEBIE
2017-08-21 17:13:36 -04:00
Matthew Chen 5f2f8ec6d8 Start reworking the contact offers.
// FREEBIE
2017-08-21 17:05:42 -04:00
Michael Kirk 72fbb02028 aes-gcm via openssl
// FREEBIE
2017-08-21 16:37:16 -04:00
Matthew Chen 08347478a2 Implement alternative approach to veto-able back buttons.
// FREEBIE
2017-08-21 10:10:22 -04:00
Michael Kirk 7c386b1d1e CR: RTL, trim profile names, ensure not empty
- RTL support with localizable format strings
- Trim decrypted profile names
- more rigorous empty check

// FREEBIE
2017-08-17 12:24:31 -04:00
Michael Kirk 3d9796db77 Debug actions for calling
For testing stale hangup/busy messages

Extracted MessageSender promise API
Moved call debug actions to their own page

// FREEBIE
2017-08-11 09:21:11 -04:00
Matthew Chen 6ec756de44 Move profile manager to Signal.
// FREEBIE
2017-08-04 09:45:33 -04:00
Matthew Chen 282ac4bb29 Add “share profile” row to conversation settings.
// FREEBIE
2017-08-02 10:50:44 -04:00
Matthew Chen 873f5208c4 Sketch out the profile view.
// FREEBIE
2017-08-01 16:17:59 -04:00
Matthew Chen 72ea096970 Sketch out the profile view.
// FREEBIE
2017-08-01 16:17:59 -04:00
Michael Kirk d809a30fa2 fix tests
// FREEBIE
2017-07-28 17:17:19 -04:00
Michael Kirk 020bd48496 Fix tests
// FREEBIE
2017-07-28 14:57:21 -04:00
Matthew Chen 75c7cc4abf Add debug UI to enable manual censorship circumvention.
// FREEBIE
2017-07-28 11:15:09 -04:00
Matthew Chen 75fb55e018 Merge tag '2.14.1.2'
// FREEBIE
2017-07-27 15:09:51 -04:00
Matthew Chen 31ab9a00da Add script to extract and gather analytics event names.
// FREEBIE
2017-07-27 12:26:02 -04:00
Matthew Chen 1009b1ba77 Fix tests.
// FREEBIE
2017-07-26 13:26:49 -04:00
Matthew Chen f0cecfad11 Surface memory leaks by logging the deallocation of view controllers.
// FREEBIE
2017-07-26 11:59:00 -04:00
Matthew Chen 863fd27abe Respond to CR.
// FREEBIE
2017-07-26 10:52:15 -04:00
Michael Kirk a5f067936c migration to fix any half-registered users
// FREEBIE
2017-07-24 13:01:43 -04:00
Matthew Chen 04fb3642b2 Remove .xib for home view cells; adapter home view to RTL.
// FREEBIE
2017-07-21 14:49:12 -04:00
Matthew Chen e15432720c Add arabic translation; begin work on right-to-left layout.
// FREEBIE
2017-07-21 14:48:52 -04:00
Michael Kirk 84e9c33f12 Optionally link Metal/MetalKit frameworks used by WebRTC
// FREEBIE
2017-07-19 15:52:42 -04:00
Michael Kirk 17b1b70726 Remove verification debug UI
There is a more true-to-life way to set verification state - mark
someone as verified or default via the SN UI.

If they are marked as verified, you can mark them as no-longer-verified
by toggling a keychange in the debug UI

// FREEBIE
2017-07-19 09:43:30 -04:00
Matthew Chen 81555d1225 Add “new contact” and “add to existing contact” buttons in 1:1 conversation settings view.
// FREEBIE
2017-07-12 13:18:14 -04:00
Michael Kirk c0aa455714 fix tests
// FREEBIE
2017-07-12 09:44:11 -04:00
Michael Kirk 3eb90ba383 Disable singleton assert for tests
introduce a new build configuration, used by tests, which disables
singleton asserts

// FREEBIE
2017-07-11 16:36:50 -04:00
Michael Kirk 82180f6a97 fix compilation problems
// FREEBIE
2017-07-11 16:36:50 -04:00
Matthew Chen d639d6557e Add owsFail free function for swift.
// FREEBIE
2017-07-11 16:20:20 -04:00
Matthew Chen 0244e134f5 Block device from sleeping during certain activities.
// FREEBIE
2017-07-06 17:35:47 -04:00
Matthew Chen 944cd7beef Show app update nag on launch if necessary.
// FREEBIE
2017-07-06 12:56:27 -04:00
Matthew Chen 284d55ef6c Rework the debug UI.
* Move debug stats to the about view.
* Convert about view to OWSTableView.
* Add DebugUIPage.
* Add non-thread Debug UI.

// FREEBIE
2017-07-04 11:57:13 -04:00
Matthew Chen 6a5fe94d59 Improve perf of attachment stream file path upgrade.
// FREEBIE
2017-06-21 10:38:41 -04:00
Michael Kirk 4f3278db1e Fix layout of timestamp for system messages
Incorporate topLabelSize into cell size for system messages.

We are using the term "bubble size" to describe the interaction specific
views of a collection cell. It's a crappy name, but coincides with other
usage.

// FREEBIE
2017-06-19 09:16:37 -04:00
Matthew Chen c7426f9343 Avoid crashing on startup due to database view creation.
* Substitute unread view for unseen view until unseen view is ready.
* Register as many views as possible async.
* Perform blocking, safe migrations before async registration of views.
* Add debug settings view for internal app stats.
* Show blocking overlay until async registration of database views is complete.
* Convert version migrations to use AppVersions.

// FREEBIE
2017-06-15 13:44:30 -04:00
Matthew Chen 11ca51c95f Show verification state banner. Show verification state in conversation settings view.
// FREEBIE
2017-06-09 16:21:59 -04:00
Matthew Chen 58ebebc97f Move QR code scanning to a separate view.
// FREEBIE
2017-06-09 07:48:48 -04:00
Matthew Chen 3508feaec3 Convert FingerprintViewController to programmatic layout.
// FREEBIE
2017-06-08 14:55:26 -04:00
Michael Kirk d77addc01e extract session state debug utils into section
// FREEBIE
2017-06-07 10:56:23 -04:00
Matthew Chen b6ddea9eae Sketch out OWSIdentityManager.
// FREEBIE
2017-06-07 10:18:16 -04:00
Matthew Chen a013a7206e Rework and unify the system messages.
// FREEBIE
2017-06-06 10:15:56 -04:00
Matthew Chen 2cbf1e1d05 Rework and unify the system messages.
// FREEBIE
2017-06-06 10:15:56 -04:00
Matthew Chen a69c6cce4e Decompose MessagesViewController, add “scroll to bottom button”, improve scrolling behavior.
// FREEBIE
2017-06-05 16:21:26 -04:00
Michael Kirk 130aa132a0 Reject incoming calls from an unseen changed identity
// FREEBIE
2017-06-01 12:59:34 -07:00
Michael Kirk 9a2f218bf3 show SN confirmation before adding to group
* Extract SN confirmation dialog

// FREEBIE
2017-05-30 13:10:45 -07:00
Michael Kirk 1a03be8ae7 Fetch safety number upon entering thread
* uniform method to get recipients in group/contact thread
  * use it to clean up markAsSeenJob

// FREEBIE
2017-05-26 09:50:09 -07:00
Michael Kirk bb25d2beb6 IdentityKeyStore changes
1) Always accept keys from incoming messages

2) Block sending only if it's a recent change, or if always
   block is enabled

// FREEBIE

// FREEBIE
2017-05-24 18:01:24 -07:00
Matthew Chen 4680a2465a Remove registration storyboard.
// FREEBIE
2017-05-24 17:46:32 -04:00
Matthew Chen db097ab8de Fix caching of message bubble sizes.
// FREEBIE
2017-05-23 13:24:10 -04:00
Matthew Chen bc501b16f2 Let users manually specify the domain fronting country.
// FREEBIE
2017-05-22 20:34:56 -04:00
Matthew Chen 867eb7d741 Convert CountryCodeViewController.
// FREEBIE
2017-05-22 20:23:53 -04:00
Matthew Chen a37b194dc0 Add debug functions for sending media messages.
// FREEBIE
2017-05-22 20:17:56 -04:00
Matthew Chen 7b70fe674a “Add to contacts” offer.
// FREEBIE
2017-05-22 18:27:11 -04:00
Matthew Chen ac458cc7ad Add unread indicator.
// FREEBIE
2017-05-19 14:30:27 -04:00
Matthew Chen 0ec095f216 Nag users on iOS 8 to upgrade.
// FREEBIE
2017-05-18 10:09:07 -04:00
Michael Kirk 557488bc7d return iOS8 support in project files
// FREEBIE
2017-05-18 10:05:39 -04:00