Commit graph

608 commits

Author SHA1 Message Date
Michael Kirk
46ebe52a27 update pods 2018-11-12 09:40:28 -06:00
Michael Kirk
86066a37d5 update pods for exception wrapping 2018-10-30 11:35:34 -06:00
Michael Kirk
e09a181445 SQUASHME review podfile changes 2018-10-30 11:35:34 -06:00
Michael Kirk
60769a3d17 Exception wrap SessionCipher for Swift 2018-10-30 11:35:34 -06:00
Matthew Chen
b65d515ac3 Update cocoapods. 2018-10-26 16:08:56 -04:00
Matthew Chen
88c96f3c21 Update Cocoapods. 2018-10-15 12:22:58 -04:00
Michael Kirk
0cfa5c07fe update pods 2018-10-13 16:04:20 -06:00
Michael Kirk
d6a6024f37 Update PromiseKit 2018-10-13 16:04:20 -06:00
Matthew Chen
0d588346f1 Fix rebase breakage. 2018-10-10 14:28:02 -04:00
Matthew Chen
fab79e2673 Respond to CR. 2018-10-10 09:59:10 -04:00
Matthew Chen
75e59bbc6f Discard self-sent messages during the decryption process. 2018-10-10 09:10:45 -04:00
Matthew Chen
624ffdf9b5 Update cocoapods. 2018-10-10 09:09:01 -04:00
Matthew Chen
ad56be27c9 Fix missing server timestamps. 2018-10-05 12:56:42 -04:00
Matthew Chen
a697072271 Respond to CR. 2018-10-05 10:32:32 -04:00
Matthew Chen
1b25a18e57 Respond to CR. 2018-10-04 11:50:22 -04:00
Matthew Chen
4ab281346a Respond to CR. 2018-10-03 09:09:24 -04:00
Matthew Chen
5da4f7bb57 Update podfile. 2018-10-02 13:33:30 -04:00
Matthew Chen
2c4c096d93 Fix typo in swift names. 2018-10-02 13:16:46 -04:00
Matthew Chen
a224401879 Respond to CR. 2018-10-01 09:12:38 -04:00
Matthew Chen
0125535d4d Pull out SignalCoreKit. 2018-10-01 09:06:40 -04:00
Michael Kirk
39a73abcee update pods 2018-09-28 15:28:43 -06:00
Matthew Chen
90e7d9fbb6 Update AxolotlKit. 2018-09-27 15:52:59 -04:00
Matthew Chen
66fc389fba Get SSK tests building and running. 2018-09-21 09:08:39 -04:00
Matthew Chen
c7eb80700e Fix memory leak in Curve25519Kit. 2018-09-20 08:59:32 -04:00
Michael Kirk
60a6128afd Remove SSK tests from Signal-iOS xcode test run
Firstly, they aren't compiling (and haven't been for a while), and thus prevent
iOS tests from running and being written. This can and should be fixed.

Secondly, they don't respect the ubsan.supp file. I'm not sure how to fix this.
We may just not be able to run the SSK tests as part of the Signal-iOS test
runner, and instead have to revert to running them from within a separate test
app.
2018-09-17 12:37:51 -06:00
Matthew Chen
9b94580dae Update assertions.
* Streamline precompiled headers.
* Remove obsolete assertions in Constraints.h.
2018-09-14 14:30:06 -04:00
Michael Kirk
6d92413931 WIP: Run SSK tests
This just configures them to run. They're very broken at the moment.
2018-08-31 12:35:32 -04:00
Matthew Chen
e5eda8b45d Add convenience initializers to proto wrappers. 2018-08-08 13:08:47 -04:00
Michael Kirk
9662b3cb1e Wait a week before nagging when a new release comes out 2018-08-08 10:26:00 -06:00
Matthew Chen
a5ffbdebb3 Remove Obj-c proto parser. 2018-08-07 15:10:48 -04:00
Michael Kirk
495c334d14 update pods
// FREEBIE
2018-08-06 14:16:44 -06:00
Matthew Chen
d709a02493 Clean up formatting. 2018-08-06 09:02:40 -04:00
Michael Kirk
f633ebe2d9 update socketrocket 2018-08-03 14:41:06 -06:00
Michael Kirk
a7bc023526 update pods 2018-08-03 14:24:44 -06:00
Michael Kirk
df01c7e63e Update to latest YapDB (with Signal patches applied)
Applied branches:

- mkirk/invalidFinalIndices
- mkirk/upstream-unencrypted-headers

Also fixed up test suite.
2018-08-03 14:09:35 -06:00
Michael Kirk
b860dce7f9 Swift protos for Envelope 2018-07-25 13:04:26 -06:00
Matthew Chen
25a98554b7 Intern JSQMessagesViewController. 2018-07-23 13:48:24 -04:00
Matthew Chen
819c2b1ceb Remove Twisted Oak. 2018-07-23 13:24:33 -04:00
Michael Kirk
77997639f5 Use CurrentAppContext instead of compiler flag to affect test behavior 2018-07-18 10:24:08 -06:00
Michael Kirk
d423d3487f Disable swift optimizations for tests
Otherwise step-through debugging is untenable

// FREEBIE
2018-06-12 15:27:13 -04:00
Michael Kirk
6b43199ba1 Full text search pods changes
// FREEBIE
2018-06-11 09:58:36 -04:00
Michael Kirk
51747deeb7 update openssl 2018-06-01 12:57:25 -04:00
Matthew Chen
2ed80eb2dc Update cocoapods. 2018-05-25 12:32:22 -04:00
Matthew Chen
0131b8de2d Update cocoapods. 2018-04-27 12:42:23 -04:00
Matthew Chen
1395a6c37b Respond to CR. 2018-04-24 11:42:04 -04:00
Michael Kirk
eae2fa27b3 Update pods
// FREEBIE
2018-04-04 12:37:17 -04:00
Michael Kirk
00e5e1b0d6 Fixup some tests
// FREEBIE
2018-04-03 11:29:05 -04:00
Matthew Chen
e12a1e984a Work on two-factor auth settings UI. 2018-03-01 15:38:59 -05:00
Matthew Chen
710d164186 Update minimum iOS version to 9.0. 2018-02-26 14:13:38 -05:00
Matthew Chen
e411bd5ee5 Update cocoapods. 2018-02-13 10:53:37 -05:00
Matthew Chen
b64528e817 Respond to CR. 2018-02-09 10:42:25 -05:00
Matthew Chen
122ef91e57 Add protocol context to protocol kit. 2018-02-09 10:31:29 -05:00
Michael Kirk
6f959ff292 CR: be more conservative about deriving key spec, clear old passphrase
after deriving key spec.

// FREEBIE
2018-01-31 17:22:42 -08:00
Michael Kirk
426c9baa16 Key material changes
- For new installs, generate raw key-spec rather than derive it
- Adapt to separated concerns of the key derivation migration from the unencrypted header migration
- Reduce number of places where we delete/generate keying information
- Only store relevant keying material

// FREEBIE
2018-01-31 16:08:03 -08:00
Michael Kirk
938b9c85b8 Don't crash on clean install
Otherwise we'll error when retrieving non-existent password.

// FREEBIE
2018-01-31 13:28:14 -08:00
Matthew Chen
96b7dc5163 Update YapDatabase to reflect CR. 2018-01-30 10:26:33 -05:00
Matthew Chen
3c2b5e54d9 Add more logging to database conversion. 2018-01-29 09:37:09 -05:00
Matthew Chen
513ba5776b Update OpenSSL build. 2018-01-25 12:53:38 -05:00
Matthew Chen
21a0106722 Update reference to YapDatabase. 2018-01-25 12:45:30 -05:00
Matthew Chen
d8f72dbec5 Clean up ahead of PR. 2018-01-25 11:07:22 -05:00
Matthew Chen
c5079ed3d7 Add support for key specs. 2018-01-25 11:00:38 -05:00
Matthew Chen
dc73342573 Convert databases if necessary. 2018-01-25 11:00:38 -05:00
Matthew Chen
63dc3391be Update OpenSSL to new version, app extension compliant. 2018-01-12 17:19:32 -05:00
Matthew Chen
8769fb07cf Write backup to encrypted zip. 2018-01-11 10:40:49 -05:00
Matthew Chen
c8351cef57 Update YapDatabase. 2017-12-15 11:11:04 -05:00
Michael Kirk
a58f1f385c Share a photo from photos app
Shows the conversation picker, and sends the attachment to that
conversation.

There's still a lot TODO

-[ ] resolve JSQ dependency
-[ ] properly wait for app to load
-[ ] dismiss share extension after send is complete
-[ ] support non jpeg file types
-[ ] Fix device sleep manager

// FREEBIE
2017-12-07 10:13:06 -05:00
Michael Kirk
f781199e27 ignore warnings in AFNetworking
// FREEBIE
2017-12-07 10:12:23 -05:00
Michael Kirk
08c324f948 Fix compiler warnings around ambiguous macro redefinition.
LMK if there's a better way to do this, which doesn't involve requiring
modules.

// FREEBIE
2017-12-04 12:50:28 -05:00
Matthew Chen
e7b32899cb Sketch out SAE load screen; make a number of infrastructure changes. 2017-12-01 09:37:52 -05:00
Michael Kirk
7ca314aa28 Use up-to-date framework friendly OpenSSL
// FREEBIE
2017-11-30 09:43:17 -08:00
Matthew Chen
8d4e9b4565 Respond to CR. 2017-11-30 10:02:04 -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
e38535cbe1 update OpenSSL pod
// FREEBIE
2017-11-08 10:43:45 -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
Matthew Chen
569e6808a4 Update podfile.lock.
// FREEBIE
2017-11-01 12:36:24 -04:00
Matthew Chen
aec6d67df3 Respond to CR.
// FREEBIE
2017-10-31 15:07:38 -04:00
Matthew Chen
73ae5b298c Suppress build warnings for Cocoapods dependencies.
// FREEBIE
2017-10-31 15:04:40 -04:00
Michael Kirk
2e196e21c6 update third party dependencies
// FREEBIE
2017-10-06 17:56:29 -04:00
Matthew Chen
e0194fd605 Allow multiple simultaneous GIF downloads.
// FREEBIE
2017-10-02 13:37:32 -04:00
Matthew Chen
2dfd7aa0e9 Actually send GIFs.
// FREEBIE

SQUASH ME.

SQUASH ME.
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
Michael Kirk
ecf8ca093f [JSQMVC] iOS11 compatability
// FREEBIE
2017-09-06 11:46:25 -04:00
Matthew Chen
1be49e4858 Update JSQMessagesViewController pod.
// FREEBIE
2017-08-31 16:36:21 -04:00
Matthew Chen
7d32491968 Preserve scroll state across conversation view layout changes, if possible.
// FREEBIE
2017-08-31 15:21:27 -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
Matthew Chen
d4879a5f5b Update JSQMessageView.
* Fix "scroll state flickers when presenting messages view" issue.
* Ignore spurious trait collection changes on view presentation.
* Remove redundant view layout in JSQ view.

// FREEBIE
2017-08-25 16:59:01 -04:00
Matthew Chen
14d472781f Respond to CR.
// FREEBIE
2017-08-21 17:13:36 -04:00
Michael Kirk
0ab958f03a cleanup per codereview
- reference OWS OpenSSL
- clarify comments
- fix typo

// FREEBIE
2017-08-21 16:37:16 -04:00
Michael Kirk
72fbb02028 aes-gcm via openssl
// FREEBIE
2017-08-21 16:37:16 -04:00
Michael Kirk
370ce5ba01 Merge branch 'hotfix/2.15.3' 2017-08-10 13:22:21 -04:00
Michael Kirk
93d2baa096 [JSQMVC] Fix scrolling crashes
- First occurs when the "Load More Messages" is shown, while scrolling and
  receiving new messages
- Second occurs when scrolling while popping/dismissing the keyboard
  (Not sure if receiving messages was a precondition for this crash)

// FREEBIE
2017-08-10 12:17:42 -04:00
Michael Kirk
71be024fd9 [SPK] more asserts/logging
// FREEBIE
2017-08-07 12:08:56 -04:00
Matthew Chen
465711c2cb Add script to extract and gather analytics event names.
// FREEBIE
2017-07-27 12:45:29 -04:00
Michael Kirk
91ad2ec32b Properly handle too-large messages
1. Take note of any large messages.
2. If they are way too large, we just drop them on the floor.

// FREEBIE
2017-07-27 11:37:10 -04:00
Matthew Chen
4ac7600c07 Respond to CR.
// FREEBIE
2017-07-27 10:24:07 -04:00
Michael Kirk
4d8429186d Store undecrypted envelopes before doing any processing.
This lets us clear the server side queue immediately, and paves the way
for retry, give up logic.

// FREEBIE
2017-07-26 14:29:56 -04:00
Matthew Chen
2418baec15 Respond to CR.
// FREEBIE
2017-07-24 16:13:22 -04:00
Michael Kirk
a5f067936c migration to fix any half-registered users
// FREEBIE
2017-07-24 13:01:43 -04:00
Matthew Chen
4059c34170 [SSK] Migrating changes from obsolete SSK repo.
// FREEBIE
2017-07-21 15:17:35 -04:00
Matthew Chen
4f5b2993b0 [SSK] Migrating changes from obsolete SSK repo.
// FREEBIE
2017-07-21 14:55:31 -04:00
Michael Kirk
e52248fe39 Localize JSQMessagesViewController within Signal
// FREEBIE
2017-07-21 14:16:41 -04:00
Michael Kirk
1b8efb5255 CI runs SSK tests
Clean up Makefile cruft

// FREEBIE
2017-07-21 13:58:57 -04:00
Michael Kirk
4b69126d1a Use interned SSK
// FREEBIE
2017-07-21 13:58:32 -04:00
Matthew Chen
1600b1f440 [SSK] Avoid nil country names on iOS 8.
FREEBIE
2017-07-20 09:16:15 -04:00
Michael Kirk
878806aa52 [JSQMVC] Add Croatian translations
// FREEBIE
2017-07-18 18:22:01 -04:00
Matthew Chen
235a842137 [SSK] Use existing transaction in cleanup.
// FREEBIE.
2017-07-14 09:27:48 -04:00
Matthew Chen
8884cb5a2b [SSK] Fix copy and paste of voice messages.
// FREEBIE
2017-07-13 17:23:11 -04:00
Matthew Chen
0357081cc7 [SSK] Run orphan cleanup on startup.
// FREEBIE
2017-07-12 12:15:21 -04:00
Michael Kirk
4b7924cc72 [SSK] update CI gems
// FREEBIE
2017-07-12 11:57:30 -04:00
Michael Kirk
d15da6e6d4 fix bubble calculator tests
// FREEBIE
2017-07-11 16:36:50 -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
cc31d88f29 [SSK] Fix persist view for upgrade scenario
// FREEBIE
2017-07-11 15:28:15 -04:00
Michael Kirk
f61980e376 [SSK] remove unhelpful logging
// FREEBIE
2017-07-11 13:21:33 -04:00
Michael Kirk
dbf0235974 [SSK] persist thread view
// FREEBIE
2017-07-10 11:54:37 -05:00
Matthew Chen
3e11c10c9c [SSK] Don’t sync verification state until app has finished becoming active.
// FREEBIE
2017-07-06 14:42:04 -04:00
Matthew Chen
9e5447f1d4 Respond to CR.
// FREEBIE
2017-07-06 13:20:21 -04:00
Matthew Chen
944cd7beef Show app update nag on launch if necessary.
// FREEBIE
2017-07-06 12:56:27 -04:00
Michael Kirk
8e891eb357 Merge branch 'hotfix/2.13.3.0'
// FREEBIE
2017-07-06 09:33:57 -05:00
Matthew Chen
e0ee4e42f1 [SSK] Modify TSStorageManager to use separate shared read and write connections.
// FREEBIE
2017-07-05 19:08:36 -04:00
Matthew Chen
dc1453264b [SSK] Modify TSStorageManager to use separate shared read and write connections.
// FREEBIE
2017-07-05 17:24:48 -04:00
Matthew Chen
7135895c1c Modify TSStorageManager to use separate shared read and write connections.
// FREEBIE
2017-07-05 17:01:28 -04:00
Michael Kirk
7b04823aaf [SSK] FIX: verifiying unregistered user prints "no longer registered"
error on every launch

// FREEBIE
2017-07-05 13:01:48 -05:00
Michael Kirk
1f9f066fa9 print call record when declining a call
// FREEBIE
2017-07-05 12:45:34 -05:00
Michael Kirk
dbad3b4f8d [SSK] MessagesManager observes for badge count
// FREEBIE
2017-06-30 10:25:00 -10:00
Michael Kirk
d0d4e67615 update badge count when app is in background
// FREEBIE
2017-06-30 09:39:26 -10:00
Michael Kirk
544dec1af8 [SSK] Fix typo in assert
// FREEBIE
2017-06-30 06:18:33 -10:00
Michael Kirk
46bf05182a [SSK][SPK] fix upstream tests
No changes that should affect running client.

// FREEBIE
2017-06-28 18:48:44 -10:00
Michael Kirk
ab40bc7242 [SSK] sync key version
// FREEBIE
2017-06-23 15:23:32 -04:00
Matthew Chen
1eff5513b3 [SSK] Archive sessions upon identity change.
// FREEBIE
2017-06-22 18:21:42 -04:00
Michael Kirk
3e43eef534 [SSK][SPK] Archive all recipient's sessions on identity change.
// FREEBIE
2017-06-22 17:25:32 -04:00
Matthew Chen
ad17c444f7 [SSK] Add creation timestamp to attachment streams.
// FREEBIE
2017-06-22 17:18:01 -04:00
Michael Kirk
140625b2a0 [SSK] verification sync
// FREEBIE
2017-06-22 15:23:52 -04:00
Michael Kirk
a933fbf215 sync verifications with contact syncing
// FREEBIE
2017-06-22 15:21:25 -04:00
Matthew Chen
e6aacf0bca [SSK] Reduce chattiness of logs; increase log file sizes.
// FREEBIE
2017-06-22 14:29:32 -04:00
Matthew Chen
eff1974eeb [SSK] Reduce chattiness of logs; increase log file sizes.
// FREEBIE
2017-06-22 10:10:56 -04:00
Matthew Chen
12e083b4e0 [SSK] Fix OWSCFail() macro.
// FREEBIE
2017-06-21 17:46:41 -04:00
Matthew Chen
c7d9236526 [SSK] Ensure verification UI is updated to reflect incoming verification state sync messages.
// FREEBIE
2017-06-21 17:44:18 -04:00
Matthew Chen
6a1f766657 [SSK] Improve perf of attachment stream file path upgrade.
// FREEBIE
2017-06-21 10:39:45 -04:00
Michael Kirk
11fa08470d [JSQ] Fix: can't dismiss keyboard after sending
// FREEBIE
2017-06-20 17:45:28 -04:00
Matthew Chen
eb17a7b189 [SSK] Refine observation of async registration completion.
// FREEBIE
2017-06-20 13:19:01 -04:00
Matthew Chen
5ae4b99f89 Refine observation of async registration completion.
// FREEBIE
2017-06-20 13:17:44 -04:00
Matthew Chen
8948a54e2f Enable verification state sync.
// FREEBIE
2017-06-19 19:54:13 -04:00
Michael Kirk
62c096aa15 [SSK] append/remove key type as necessary to fix verification syncing
// FREEBIE
2017-06-19 17:28:05 -04:00
Michael Kirk
41065e692e [SSK] fix crash while syncing verifications
// FREEBIE
2017-06-19 15:35:59 -04:00