Commit Graph

210 Commits (2b1e32283279d7b44469687111842da75d103d27)

Author SHA1 Message Date
Matthew Chen 0125535d4d Pull out SignalCoreKit. 6 years ago
Michael Kirk 39a73abcee update pods 6 years ago
Matthew Chen 66fc389fba Get SSK tests building and running. 6 years ago
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.
6 years ago
Michael Kirk 6d92413931 WIP: Run SSK tests
This just configures them to run. They're very broken at the moment.
6 years ago
Michael Kirk 9662b3cb1e Wait a week before nagging when a new release comes out 6 years ago
Matthew Chen a5ffbdebb3 Remove Obj-c proto parser. 6 years ago
Matthew Chen d709a02493 Clean up formatting. 6 years ago
Michael Kirk f633ebe2d9 update socketrocket 6 years ago
Michael Kirk df01c7e63e Update to latest YapDB (with Signal patches applied)
Applied branches:

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

Also fixed up test suite.
6 years ago
Matthew Chen 25a98554b7 Intern JSQMessagesViewController. 6 years ago
Michael Kirk 77997639f5 Use CurrentAppContext instead of compiler flag to affect test behavior 6 years ago
Michael Kirk d423d3487f Disable swift optimizations for tests
Otherwise step-through debugging is untenable

// FREEBIE
6 years ago
Michael Kirk eae2fa27b3 Update pods
// FREEBIE
6 years ago
Michael Kirk 00e5e1b0d6 Fixup some tests
// FREEBIE
6 years ago
Matthew Chen 710d164186 Update minimum iOS version to 9.0. 6 years ago
Joshua Lund 2c18a75d12 Update to the new GitHub organization name 6 years ago
Matthew Chen b64528e817 Respond to CR. 6 years ago
Matthew Chen 122ef91e57 Add protocol context to protocol kit. 6 years ago
Matthew Chen 21a0106722 Update reference to YapDatabase. 7 years ago
Matthew Chen d8f72dbec5 Clean up ahead of PR. 7 years ago
Matthew Chen c5079ed3d7 Add support for key specs. 7 years ago
Matthew Chen dc73342573 Convert databases if necessary. 7 years ago
Matthew Chen 8769fb07cf Write backup to encrypted zip. 7 years ago
Matthew Chen c8351cef57 Update YapDatabase. 7 years ago
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
7 years ago
Michael Kirk f781199e27 ignore warnings in AFNetworking
// FREEBIE
7 years ago
Matthew Chen e7b32899cb Sketch out SAE load screen; make a number of infrastructure changes. 7 years ago
Michael Kirk 7ca314aa28 Use up-to-date framework friendly OpenSSL
// FREEBIE
7 years ago
Michael Kirk 2c4cf96515 Some proof of framework integration in the sample share extension
// FREEBIE
7 years ago
Michael Kirk a11d83187b WIP: Framework-friendly - compiles but crashes on launch
// FREEBIE
7 years ago
Michael Kirk b56f0e0d25 Pod setup for SignalMessaging framework
// FREEBIE
7 years ago
Michael Kirk e38535cbe1 update OpenSSL pod
// FREEBIE
7 years ago
Matthew Chen bb4d94fd1f Respond to CR.
// FREEBIE
7 years ago
Matthew Chen aec6d67df3 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen 73ae5b298c Suppress build warnings for Cocoapods dependencies.
// FREEBIE
7 years ago
Michael Kirk 2e196e21c6 update third party dependencies
// FREEBIE
7 years ago
Matthew Chen 3b9726a4fa Sketch out the GIF picker.
// FREEBIE
7 years ago
Michael Kirk 0ab958f03a cleanup per codereview
- reference OWS OpenSSL
- clarify comments
- fix typo

// FREEBIE
7 years ago
Michael Kirk 72fbb02028 aes-gcm via openssl
// FREEBIE
7 years ago
Michael Kirk 1b8efb5255 CI runs SSK tests
Clean up Makefile cruft

// FREEBIE
7 years ago
Michael Kirk 4b69126d1a Use interned SSK
// FREEBIE
7 years ago
Michael Kirk 878806aa52 [JSQMVC] Add Croatian translations
// FREEBIE
7 years ago
Michael Kirk 3eb90ba383 Disable singleton assert for tests
introduce a new build configuration, used by tests, which disables
singleton asserts

// FREEBIE
7 years ago
Matthew Chen 9e5447f1d4 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen 944cd7beef Show app update nag on launch if necessary.
// FREEBIE
7 years ago
Michael Kirk 11fa08470d [JSQ] Fix: can't dismiss keyboard after sending
// FREEBIE
7 years ago
Matthew Chen 35879046c3 Remove OpenSSL pod.
// FREEBIE
7 years ago
Matthew Chen 1057e40008 Fix OpenSSL cocoapod.
// FREEBIE
7 years ago
Matthew Chen b0005ea932 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen 2e36f41838 Add support for manually activating censorship circumvention.
// FREEBIE
7 years ago
Michael Kirk 557488bc7d return iOS8 support in project files
// FREEBIE
7 years ago
Michael Kirk da58eb18ad partial revert of previous pod update
// FREEBIE
7 years ago
Matthew Chen 67c3bca913 [SSK] Move filename property to TSAttachment.
// FREEBIE
7 years ago
Matthew Chen 96e155c75e Rework appearance of voice messages and audio attachments.
// FREEBIE
7 years ago
Matthew Chen c2cdeb3bcd Remove SCWaveformView.
// FREEBIE
7 years ago
Matthew Chen cb293f286a [SSK] Add SignalAccount class, Extract labels for phone numbers.
// FREEBIE
7 years ago
Matthew Chen 42768294ee Extract labels for phone numbers.
// FREEBIE
7 years ago
Michael Kirk 5d604a796c [JSQMVC] Fixes "floating" edit menu for narrow media items
previously, edit menu was only positioned correctly for text bubbles,
and centered for media bubbles.

It wasn't that noticable for images/videos since those usually extended
to the middle of the conversation view, but with narrower media bubbles
(like arbitrary attachments) this became a bigger problem.

// FREEBIE
7 years ago
Matthew Chen 5250d327e4 [SSK] Remove RedPhone code.
// FREEBIE
7 years ago
Matthew Chen faf75e25c2 [SSK] Remove RedPhone code.
// FREEBIE
7 years ago
Matthew Chen 74f939b520 Remove RedPhone code.
// FREEBIE
7 years ago
Matthew Chen 9db33a9651 Remove RedPhone code.
// FREEBIE
7 years ago
Michael Kirk f29ca7851f Move PureLayout back to cocoapods for now
This introduced some unexpected crashes related to frameworks in Swift.

// FREEBIE
7 years ago
Michael Kirk 0d52a18458 Update dependencies
Also moved PureLayout to Carthage for faster incremental builds

// FREEBIE
7 years ago
Michael Kirk 8adba61b37 intern Pastelog back into Signal.
Not worth the cocaopods/framework/project mgmt machinery for making
changes to 1 class.

// FREEBIE
7 years ago
Michael Kirk 99c982fbb2 change ZXing to framework for faster incremental compiles in xcode
// FREEBIE
7 years ago
Michael Kirk 8f7e0a8a5b [SSK] Fix crash-on-launch for older installs
populating the de-duping index assumes authorId is always set for
incoming messages, but this was not always the case.

// FREEBIE
7 years ago
Matthew Chen c35c118dcd Respond to CR.
// FREEBIE
7 years ago
Michael Kirk be9725c7ce [SSK] lost changes needed to fixup 'charlesmchen/webrtcByDefault'
Previous commit referenced no-longer existent SHA

// FREEBIE
7 years ago
Matthew Chen f4453eb995 Enable WebRTC-based audio and video calls by default.
// FREEBIE
7 years ago
Matthew Chen 3c3f782e7d Clean up prekey usage.
// FREEBIE
7 years ago
Matthew Chen c0f52d1de9 [SSK] Mark "attempting out" messages as "unsent" on app launch
// FREEBIE
7 years ago
Matthew Chen 21e55d3be5 Mark "attempting out" messages as "unsent" on app launch.
// FREEBIE
7 years ago
Matthew Chen fcf1d7af97 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen 2b64d94bad Update SignalServiceKit pod.
// FREEBIE
7 years ago
Matthew Chen e798964308 Update SignalServiceKit pod.
// FREEBIE
8 years ago
Matthew Chen 06a775b41a Improve the call status messages in conversation view.
// FREEBIE
8 years ago
Michael Kirk 947d345837 SSK update to include latest master (which now includes CallKit)
// FREEBIE
8 years ago
Michael Kirk d3e6747499 Merge remote-tracking branch 'origin/master' into feature/webrtc 8 years ago
Michael Kirk 4e72ab92c8 Prevent session corruption by using a single serial queue for encrypt and decrypt
coordinate SignalProtocol encryption/decryption on a single serial
queue. Previously message sending encrypted on the sending thread, while
message receiving decrypted on the main thread.

// FREEBIE
8 years ago
Matthew Chen 4a65a88512 Rework new call view.
// FREEBIE
8 years ago
Matthew Chen 26a6e391b3 Fix pod.
// FREEBIE
8 years ago
Michael Kirk a17873291b Fix up tests
// FREEBIE
8 years ago
Michael Kirk 647b2b37e9 WIP: WebRTC calling
* Ensure NotificationsManager has dependencies
    Otherwise it's easy to mess up the order of the required dependencies.
* move AccountManager into Environment, it's heavy to construct

// FREEBIE
8 years ago
Matthew Chen 2dac6c888a Update SignalServiceKit pod.
* Fetch messages when app becomes active.
8 years ago
Michael Kirk ddba843d44 Censorship circumvention in Egypt and UAE
* domain fronting
* non-websocket message fetching

// FREEBIE
8 years ago
Michael Kirk c4baf5a625 [SSK] Avoid bricking signal if a key is temporarily unreadable
// FREEBIE
8 years ago
Michael Kirk 32a05dabce [SPK] Update SignalProtocolKit (AxolotlKit) (#1549)
// FREEBIE
8 years ago
Josh Schneier 896dd026d2 Remove DJWActionSheet 8 years ago
Michael Kirk 7120ca1192 Make sure we're laying out contact cell after assigning avatar
// FREEBIE
8 years ago
Michael Kirk 0aa226f3d1 [SSK] If a new message type is introduced, ignore it
rather than printing an empty bubble.

// FREEBIE
8 years ago
Michael Kirk de7752ab20 Revert 50abf4d02d
The real problem was addressed (or, worked around) here:
1eb234e8ba

// FREEBIE
8 years ago
Michael Kirk ee29fff0da [SSK] Default to blocking changed Safety Numbers
// FREEBIE
8 years ago
Michael Kirk 50abf4d02d [JSQMVC] Fix crash on delete when under load.
Hack to fix https://github.com/jessesquires/JSQMessagesViewController/issues/1885

This doesn't happen often, but is reproducible under simulated message
churn (~50 insert/update/deletes randomly spaced over 10 seconds).

During performBatchUpdates, the collectionViewLayout can call
layoutAttributesForElementsInRect which can reference the just-deleted
item's
view. (The view presumably hasn't been deleted yet, but will be by the
time
performBatchUpdates is complete).

It's opaque how layoutAttributesForElementsInRect get's it's list of
views. I
can only speculate how this works based on debugging, but it seems that
the
CollectionFlowLayout keeps an internal list of item frames, which when
crashing
still contain items corresponding to the to-be-deleted items.

In any case, it seems like a bug that JSQMVC would ever attempt to get
layoutAttributes for an item which doesn't exist in the datasource.
8 years ago
Michael Kirk 689df1be37 Handle key change in group send
// FREEBIE
8 years ago
Michael Kirk 33f6a95520 Explain send failures for text and media messages
fixes #1231

Motivation
----------
Previously when messages failed to send, there was no reason given.
Furthermore, when media messages failed to send there was no indication
that any attempt to send the message even occurred, nor a retry
dialog.

UX Changes
----------
- Show "uploading" status for media
- Show specific error message in retry-send dialog
- Only scroll to bottom when new message is inserted
- Show specific errors when group creation fails

Code Changes
-----------
- Updated incorrect references to TSMessageAdapters which were actually
  references to OWSMessageData
- MessageSender was extracted from SSK MessagesManager
- access MessagesManager as property
- idiomatic init/properties for Env
- log contact intersections
- Move scroll-to-bottom animation to main thread.

// FREEBIE
8 years ago
Michael Kirk 89ee74f134 Update SSL to 1.0.2j (#1409)
// FREEBIE
8 years ago
Michael Kirk 49de772997 Fix slow reloading conversation view. (#1397)
Fix animation memory leak exacerbated every time you reload a
conversation with expiration timers.

Stop animation on cells that aren't currently being displayed. This is
relatively minor compared to the above, but still, no reason to waste
cycles.

// FREEBIE
8 years ago
Michael Kirk 50ce283582 Fix empty bubble when setting disappearing message timer in a thread to
yourself.

fixes #1393

// FREEBIE
8 years ago