Commit Graph

615 Commits

Author SHA1 Message Date
Matthew Chen
9963df1f23 Reduce statics. 2021-11-02 10:36:25 -03:00
Matthew Chen
8472571d0a Rename NSE. 2021-10-28 11:40:26 -03:00
Michelle Linington
98f9fcc9ad Fix emoji generator script to not re-add warnings 2021-10-21 21:30:56 -07:00
Michelle Linington
77b7ea5c40 Fix a whole bunch of warnings 2021-10-21 21:11:26 -07:00
Matthew Chen
a0efdc2e95 Respond to CR. 2021-10-21 09:21:33 -03:00
Matthew Chen
eca3fdf26f Respond to CR. 2021-10-21 09:21:33 -03:00
Matthew Chen
03abd1c398 Respond to CR. 2021-10-21 09:21:33 -03:00
Matthew Chen
91ad7d1df7 Respond to CR. 2021-10-21 09:21:31 -03:00
Matthew Chen
29cdf51db5 Add script to normalize includes and imports. 2021-10-21 09:21:12 -03:00
Matthew Chen
3d7e8a0ba4 Add script to normalize includes and imports. 2021-10-21 09:21:12 -03:00
Matthew Chen
cb90e10b52 Add script to normalize includes and imports. 2021-10-21 09:19:43 -03:00
Michelle Linington
29de85f0f7 Restore localizations removed after merging SUI 2021-10-19 18:38:53 -07:00
Matthew Chen
600f866c96 Update RI check. 2021-10-13 12:52:41 -03:00
Michelle Linington
6028212361 Re-add swiftlint --fix invocation 2021-10-12 11:46:44 -07:00
Michelle Linington
fa190b88cd Skip files where sourcekitd crashes 2021-10-12 11:46:44 -07:00
Michelle Linington
d2de17afb9 Fix lint script 2021-10-12 11:46:44 -07:00
Michelle Linington
ce8f0a8b0b Update emoji 2021-10-12 11:46:44 -07:00
Michelle Linington
13a2e75fb6 A couple small changes to improve visibility of build configuration 2021-10-05 20:43:42 -07:00
Ehren Kret
3d768ffe3d Update copyright dates in SDS codegen 2021-09-24 10:30:09 -03:00
Michelle Linington
44b38c27e8 Alert user if specified tag variant doesn't match the current build flag 2021-09-20 12:36:31 -07:00
Michelle Linington
88309e7cc1 Fix various issues with TESTABLE_RELEASE
While running some perf tests on database queries, I was building
against TESTABLE_RELEASE to have things built with optimizations.

I saw some weird behavior:
- Share extension would crash
- No logs would be recorded

I went through and cleaned up some things that appeared incorrect with
how we handled TESTABLE_RELEASE
2021-09-03 16:11:19 -07:00
Matthew Chen
c2171db12d Assert when we emit invalid e164 in a proto. 2021-09-01 16:33:16 -03:00
Matthew Chen
953fe32300 Never emit invalid e164 in storage service contact records; be robust to invalid e164 incoming protos. 2021-09-01 16:33:16 -03:00
Michelle Linington
c7444cb01d Remove isHidden column, use recordType instead 2021-08-26 20:57:06 -07:00
Michelle Linington
5b1b0d3bd0 Make hiddenUntilTimestamp a boolean column 2021-08-26 20:57:06 -07:00
Michelle Linington
4eeb4e34be Tests should be runnable in Profiling scheme 2021-08-26 20:57:06 -07:00
Michelle Linington
ba89d93ee4 Add new database column 2021-08-26 20:29:21 -07:00
Matthew Chen
647f723610 Add OWSStaticOutgoingMessage. 2021-08-25 22:43:42 -03:00
Matthew Chen
65a591c898 Revise app versioning scheme. 2021-08-23 18:24:40 -03:00
Matthew Chen
a41aec9305 Revise app versioning scheme. 2021-08-23 18:23:50 -03:00
Matthew Chen
dfb73669a5 Revise app versioning scheme. 2021-08-23 18:23:49 -03:00
Matthew Chen
3b18df6934 Revise app versioning scheme. 2021-08-23 18:23:49 -03:00
Matthew Chen
532da04e75 Revise app versioning scheme. 2021-08-23 18:23:49 -03:00
Matthew Chen
93d9c15073 Revise app versioning scheme. 2021-08-23 18:23:49 -03:00
Matthew Chen
2e495b4bc1 Revise app versioning scheme. 2021-08-23 18:23:49 -03:00
Nora Trapp
0dba0878a2 Adhere proto wrappers to NSSecureCoding 2021-08-17 13:42:07 -07:00
Nora Trapp
1cbe9c3ee7 PR Feedback 2021-08-16 13:28:08 -07:00
Nora Trapp
42b2575775 Add isHighPriority field and promise support to message sender job queue 2021-08-16 13:27:43 -07:00
Nora Trapp
fee1bbddad Add exclusiveProcessIdentifier to SSKJobRecord 2021-08-16 13:27:00 -07:00
Michelle Linington
c8c8575c5b PR Feedback
- Avoid accessing `build` in FeatureFlags.swift
- Make it private so others aren't tempted
- Now that build is private, drop the named build variants. It's cute,
  but ultimately not necessary
2021-08-06 10:08:26 -07:00
Michelle Linington
aa25a1e274 Extend error messaging to beta users 2021-08-06 10:08:26 -07:00
Michelle Linington
023b080dc3 PR Feedback: Remove leftover SDS definitions 2021-07-21 22:58:51 -07:00
Michelle Linington
2eb60643b7 Sender key decryption failure handling
Most of the work for message resend requests. Includes some rudimentary
failure UI.
2021-07-21 22:58:51 -07:00
Michelle Linington
59f2015fba Add OWSOutgoingSenderKeyDistributionMessage
When preparing to send a SenderKey message, we'll need to send out an
SKDM to participants. Although these can be tacked on to any message,
we'll need an outgoing message builder for these dedicated messages.
2021-07-21 22:58:50 -07:00
Nora Trapp
59ba9100c9 Sync translations 2021-07-07 15:10:07 -07:00
Nora Trapp
4ae8185b4a Add push fallback text 2021-07-07 13:46:23 -07:00
Nora Trapp
876808dc3d Add support for beta tags 2021-07-06 14:43:52 -07:00
Matthew Chen
e911639154 Remove contact avatar data from SignalAccount. 2021-06-30 15:23:49 -03:00
Matthew Chen
58e27fe782 Ignore avatar in incoming contact syncs. Use batching when processing incoming/outgoing contact syncs. 2021-06-30 15:23:49 -03:00
Nora Trapp
ba4ba30177 Codegen 2021-06-30 09:54:26 -07:00
Nora Trapp
e736f66490 RI script update 2021-06-18 12:24:55 -07:00
Nora Trapp
af22d36f43 Add nightly build tag variant 2021-06-14 16:03:19 -07:00
Nora Trapp
959b8ca1ae Don't error when FF is already set 2021-06-14 14:13:48 -07:00
Eugene Bistolas
1d451481a4 Review feedback, swift-lint 2021-06-02 14:17:21 -10:00
Eugene Bistolas
4c347e0488 Fix build performance for 12.5/Swift 5.4 2021-06-02 14:17:21 -10:00
Matthew Chen
f004267e7f Fix thread record property mapping. 2021-05-25 16:22:33 -03:00
Matthew Chen
2c7c7b3d1c Replace ConversationColors with "avatar colors". 2021-05-25 16:22:31 -03:00
Matthew Chen
7a4ad637f0 Replace ConversationColors with "avatar colors". 2021-05-25 16:22:31 -03:00
Matthew Chen
e06f7fb133 Tweak reverse_integration_check.py. 2021-05-17 23:39:39 -03:00
Nora Trapp
e439bb619e Move isArchived, isMarkedUnread, and mutedUntilDate off of TSThread 2021-05-13 12:54:33 -07:00
Michelle Linington
3df24ecd98 Allow translations script look for linter in path
My code directory looks a bit different so it doesn't always exist at
this path.
2021-05-07 19:10:46 -07:00
Matthew Chen
5a58216519 Update tags_to_ignore. 2021-05-05 15:24:18 -03:00
Matthew Chen
34d3aeb1c8 Merge branch 'release/5.11.1' 2021-05-03 15:36:47 -03:00
Matthew Chen
10778e915c Improve handling of db corruption. 2021-05-03 15:00:33 -03:00
Nora Trapp
2152a8b0b0 Fix release notes 2021-05-02 11:51:36 -07:00
Nora Trapp
028b682b2f Merge branch 'release/5.11.0' 2021-05-02 10:53:20 -07:00
Nora Trapp
a1b3f557b7 Fix release notes 2021-05-02 10:51:29 -07:00
Nora Trapp
a5fd2ad4bf Sync translations 2021-05-02 10:26:07 -07:00
Nora Trapp
db3e441727 Send viewed receipts for audio messages 2021-04-29 18:01:19 -07:00
Nora Trapp
f808813466 Manage app store metadata with transifex 2021-04-22 12:53:43 -07:00
Nora Trapp
aeba62018a Ignore more tags in RI 2021-04-15 10:59:27 -07:00
Nora Trapp
894841edde Fix private pods setup 2021-04-14 21:46:38 -07:00
Nora Trapp
99e2a739d1 add release lane to fastfile 2021-04-13 20:40:17 -07:00
Nora Trapp
bf660c85ce Add TSGroupMember table to allow performant querying of group membership 2021-04-08 13:44:00 -07:00
Matthew Chen
46c3408726 Update SDS to reflect payment columns. 2021-04-08 09:27:05 -03:00
Nora Trapp
73f4044ebf Fix db schema 2021-04-07 18:56:01 -07:00
Matthew Chen
cbfc7be372 Revisions to payments in SSK. 2021-04-06 13:57:07 -03:00
Matthew Chen
87ace3779d Respond to CR and proto schema/reconciliation review. 2021-04-06 13:57:06 -03:00
Matthew Chen
a00d14ddc4 Payments: Models 2021-04-06 13:57:06 -03:00
Matthew Chen
51e05cb6b7 Port feature flag scripts to Python. 2021-04-06 13:57:06 -03:00
Matthew Chen
3a8e4bcbc5 Payments: feature flags 2021-04-06 13:57:06 -03:00
Matthew Chen
2d0fdff372 Payments: Update proto schema. 2021-04-06 13:57:06 -03:00
Nora Trapp
63da30f617 Store mute as millisecond timestamp 2021-03-27 12:13:20 -07:00
Matthew Chen
86b8eb08b8 Remove YapDatabase.
Apply asset from design.

Fix rebase breakage.
2021-03-25 11:41:16 -03:00
Nora Trapp
da59806acf Update precommit.py for swiftlint 0.43.1 2021-03-17 13:15:51 -07:00
Nora Trapp
26253a0a27 Set the proto address during initialization 2021-02-16 13:05:13 -08:00
Matthew Chen
b890fdeed8 Fix build warnings. 2021-01-23 22:45:33 -03:00
Matthew Chen
d3eb77d6d3 Refine handling of unverified safety number changes. 2021-01-21 22:31:08 -03:00
Matthew Chen
3bb5f0777b Add profile bio fields to database schema. 2021-01-14 22:25:45 -03:00
Matthew Chen
111338b59d Rewrite conversation view. 2020-12-10 12:44:13 -03:00
Michelle Linington
f6a252d274 Send a group call update message when joining and leaving a group call 2020-11-19 16:02:22 -08:00
Nora Trapp
d8ca084b65 Tweak database fields and update RingRTC 2020-11-19 16:02:22 -08:00
Nora Trapp
b32c5bda4a Add scaffolding for Group Call messages 2020-11-19 16:02:22 -08:00
Jordan Rose
98884f9cba Proto wrappers: use structs when ObjC compatibility isn't needed
Shaves off about 20% of a deep serialization benchmark (that's
unfortunately using code that isn't checked in yet).

Also removes Equatable from oneof enums, which wasn't really doing the
right thing anyway when there were non-primitive payloads because the
proto classes didn't override isEqual.
2020-11-17 12:46:26 -08:00
Jordan Rose
a25f4b9e26 Proto builders: dramatically speed up add*() using in-place mutation
The Swift compiler ought to be smart enough to prove that
copy-out/mutate/copy-in is the same as mutate-in-place for structs,
but it currently isn't clever enough to do that.
(See https://bugs.swift.org/browse/SR-11895.)
2020-11-17 12:46:26 -08:00
Nora Trapp
21fcb5e763 Fix script to handle emoji with overlapping names 2020-11-05 13:18:39 -08:00
Matthew Chen
b13ff0c879 Respond to CR. 2020-10-08 17:31:29 -03:00
Matthew Chen
ce1dcbade5 Animated sticker support. 2020-09-02 13:44:15 -03:00
Nora Trapp
896b9f9902 Some small tweaks to emoji generation (determinate skin tone order, better 'couple' naming) 2020-08-24 15:12:24 -07:00
Nora Trapp
cfc6900440 Persist and render preferred skin tone permutations in reaction picker 2020-08-24 15:12:24 -07:00
Nora Trapp
f7dfcc3348 Generate skin tone information for Emoji 2020-08-24 15:12:24 -07:00
Nora Trapp
fc2d80335f codegen 2020-08-20 16:48:54 -07:00
Michelle Linington
7494eed9cc PR Feedback, update schema_dump to support sqlclient updates 2020-08-20 13:07:23 -07:00
Michelle Linington
c0dee48b37 IOS-784: Improvements to sqlclient script
This change makes the debug the sqlcipher database with command line
much easier. Leverages simctl to make simulator discovery and
introspection super straightforward
2020-08-20 13:07:23 -07:00
Matthew Chen
3942ff7fb2 Cautious proto address parsing. 2020-08-19 13:24:16 -03:00
Nora Trapp
f42c0a40dd Set expiry time in profiling builds 2020-08-17 08:59:04 -07:00
Nora Trapp
b035d35510 Add dedicated video call button 2020-08-14 20:44:03 -07:00
Nora Trapp
9696671f8a Add trustLevel to SignalServiceAddress 2020-08-05 14:36:43 -07:00
Nora Trapp
6f963c7ba5 Add mention notification settings 2020-08-04 14:09:06 -07:00
Nora Trapp
e8ec5330a0 Add mentions to the database 2020-08-04 14:08:29 -07:00
Nora Trapp
0878f9156e Add script to update the changelog 2020-07-22 17:46:43 -07:00
Nora Trapp
c5214e38b6 Add Codable adherance to proto wrappers 2020-07-22 14:34:24 -07:00
Nora Trapp
c4111f59d0 Generate interface for unknownFields 2020-07-22 14:34:24 -07:00
Nora Trapp
92fe7350f1 Fix linting for InfoPlist.strings 2020-07-08 11:40:47 -07:00
Matthew Chen
98f6bd43c6 Track last messaging date on user profile. 2020-07-08 11:10:37 -03:00
Matthew Chen
f3ff2dfda3 Track last fetch date on user profile. 2020-07-08 11:10:36 -03:00
Matthew Chen
3983974c53 Merge branch 'release/3.12.3' 2020-07-03 16:47:53 -03:00
Matthew Chen
68f1a71914 Add scripts to manipulate feature flags. 2020-06-25 21:06:35 -03:00
Matthew Chen
059909bd1b Address sticker perf hotspots. 2020-06-23 10:07:18 -03:00
Nora Trapp
d0534ea642 Preserve conversation scroll position 2020-06-18 16:25:04 -07:00
Matthew Chen
9bc526b6bb Respond to CR. 2020-06-18 12:49:35 -03:00
Matthew Chen
2a72d563ae Respond to CR. 2020-06-18 12:22:14 -03:00
Matthew Chen
a4ae58c0f6 Respond to CR. 2020-06-18 12:09:42 -03:00
Matthew Chen
c6d5a52f82 Rework SDS extensions to support deep copies and cache lifecycle. 2020-06-18 12:05:07 -03:00
Matthew Chen
b37c2bc713 Rework SDS extensions to support deep copies and cache lifecycle. 2020-06-18 12:05:07 -03:00
Matthew Chen
b1f0a869a7 Add a script to just parse & generate SSK Obj-c. 2020-06-11 17:45:39 -07:00
Matthew Chen
0891ce52e1 Copy model read cache values. Add deepCopy method to all models. 2020-06-11 13:22:16 -03:00
Nora Trapp
a9ab44741c Codegen 2020-06-07 09:35:02 -07:00
Matthew Chen
f2dec8a700 Update l10n strings. 2020-06-07 11:42:16 -03:00
Nora Trapp
0805ff8ca9 Refactor to use shortName as some emoji don't have a name defined 2020-06-01 12:52:58 -07:00
Nora Trapp
1f3a3764bc Merge smileys & people categories, ignore skin tones 2020-06-01 12:52:58 -07:00
Nora Trapp
150639080d Generate Emoji enum representing all available emoji 2020-06-01 12:52:58 -07:00
Nora Trapp
3d084f958d Mark as unread 2020-05-27 18:29:59 -07:00
Matthew Chen
2ce2504058 Merge remote-tracking branch 'private/release/3.8.0' 2020-04-28 16:01:52 -03:00
Matthew Chen
752bcdd6f9 Use blob protos for encrypted attributes. 2020-04-27 14:48:29 -03:00
Nora Trapp
3698125424 Track reaction read state 2020-04-20 10:25:31 -07:00
Matthew Chen
b2e90bf164 Merge remote-tracking branch 'private/release/3.8.0' 2020-04-20 11:52:54 -03:00
Matthew Chen
9b5004bc2a Fix reference to SCK in auto-genstrings. 2020-04-20 09:17:26 -03:00
Matthew Chen
d57cb36ace Merge remote-tracking branch 'private/release/3.8.0' 2020-04-15 10:08:56 -03:00
Ehren Kret
d0b7faeebc Update attachment model to hold cdn key and cdn number 2020-04-14 08:52:34 -07:00
Ehren Kret
5cd2bd0fe4 Update all sds python shebang lines to 2.7 2020-04-14 08:52:34 -07:00
Matthew Chen
6ee2ad097e Prepare for per-group queues in group message processing. 2020-04-13 17:36:36 -03:00
Nora Trapp
167f88bed6 Generated code 2020-04-13 12:49:27 -07:00
Ehren Kret
429aa7bf32 Update proto wrapper script for python3 2020-04-09 12:45:34 -07:00
Matthew Chen
2d41ad42b4 Fix build warnings around initializers. 2020-04-08 16:05:54 -03:00
Nora Trapp
aa1f0ab39c Fix precommit script for when PRs remove files 2020-04-03 11:17:01 -07:00
Matthew Chen
41267d9e54 Add upload timestamp to attachment models. 2020-04-02 13:39:40 -03:00
Matthew Chen
1d643bb61b Clean up code generation. 2020-04-02 13:31:14 -03:00
Matthew Chen
02f853a8dc Clean up code generation. 2020-04-02 13:31:14 -03:00
Ehren Kret
82f3f3ed01 Change shebang line for pre and post commit scripts
These scripts are written for Python 2.7 and fail if python executable
points to Python 3.
2020-04-01 18:09:57 -07:00
Nora Trapp
89450058b4 More proto changes: flatten and limit account to relevant data 2020-03-24 17:11:02 -07:00
Nora Trapp
45945a530c Add support for proto3 oneof and fix a few other proto3 paths 2020-03-24 17:11:01 -07:00
Nora Trapp
f05f2ff85f Add lint action 2020-03-14 15:40:02 -07:00
Michael Kirk
cc6aafb7e6 marking internal build tag as such 2020-03-09 17:12:11 -06:00
Matthew Chen
e4d181b91a Update version script to update NSE. 2020-02-20 12:17:10 -03:00
Nora Trapp
1cf95c620b Merge branch 'release/3.4.0' 2020-02-05 12:27:48 -08:00
Matthew Chen
8f00330ce8 Merge branch 'release/3.3.1' into release/3.4.0 2020-02-05 16:04:32 -03:00
Matthew Chen
6461ea372e Update RI check script. 2020-02-05 16:03:53 -03:00
Michael Kirk
9f4c8e22ed regen 2020-01-31 20:33:57 -07:00
Nora Trapp
99ce53a786 Fix column ordering 2020-01-30 20:11:08 -08:00
Michael Kirk
a55263c0e8 regen 2020-01-30 20:10:55 -08:00
Michael Kirk
83d26fe62e revamp group updates - show source, show changes, show icon 2020-01-30 20:10:55 -08:00
Michael Kirk
076780b4ab codegen handles "id" type 2020-01-30 20:10:55 -08:00
Nora Trapp
c59818467b Codegen 2020-01-30 20:10:35 -08:00
Matthew Chen
bc0359268e Rework outgoing messages; embed change protos in outgoing change messages for groups v2. 2020-01-27 11:47:44 -03:00
Nora Trapp
a1a54c4f78 Fix column ordering 2020-01-24 13:43:35 -08:00
Michael Kirk
1fb1af3c84 regen 2020-01-23 11:55:48 -07:00
Michael Kirk
61ec8612ee revamp group updates - show source, show changes, show icon 2020-01-23 11:55:48 -07:00
Michael Kirk
904b333924 codegen handles "id" type 2020-01-23 11:55:48 -07:00
Nora Trapp
a08a8cd8a7 Codegen 2020-01-23 08:59:22 -08:00
Matthew Chen
db0adf077a Respond to CR. 2020-01-23 12:00:42 -03:00
Matthew Chen
892ce5c135 Rework message processing to handle groups v2. 2020-01-17 17:34:37 -03:00
Nora Trapp
a68f5277bf Support profile given and family names 2020-01-09 13:17:09 -08:00
Nora Trapp
4d55468bd3 Merge branch 'release/3.2.0' 2020-01-02 16:50:14 -08:00
Orta Therox
469e169962 Convert to just using CocoaPods for dependencies 2020-01-02 12:03:57 -08:00
Michael Kirk
9d625c2823 ContactOffersInteractions should not be saved 2019-12-18 16:52:18 -08:00
Michael Kirk
16b9ca5d69 ignore reaction messages 2019-12-07 16:57:56 -07:00
Michael Kirk
f4dfd6973e ignore unmarked internal build 2019-12-05 16:39:45 -07:00
Nora Trapp
698989d8bb Ignore 2.46.0.26 2019-11-21 17:02:04 -08:00
Matthew Chen
3d5954dcf0 Update proto wrappers for group v2 protos (proto3, swift-only, free-standing enums, etc.) 2019-11-19 11:06:42 -03:00
Matthew Chen
6415eef120 Restore the group proto changes. 2019-11-19 11:06:42 -03:00
Nora Trapp
8f6ddb6d02 Merge branch 'release/3.0.0' 2019-11-15 19:09:21 -08:00
Nora Trapp
778885db9f Fix precommit, git-clang-format doesn't like spaces between extension type 2019-11-15 14:17:46 -08:00
Nora Trapp
14c8f4175e Add Reaction Model 2019-11-14 13:22:47 -08:00
Matthew Chen
9b015a57ff Combine row ids. 2019-11-12 15:24:02 -03:00
Michael Kirk
583077d94b skip formatting proto files 2019-11-06 21:24:53 -07:00
Matthew Chen
f5e9a83834 Revert "Merge branch 'charlesmchen/groupsProtos'"
This reverts commit ede6b98234, reversing
changes made to 35271c6d3e.
2019-11-06 17:48:52 -03:00
Matthew Chen
353fca396e Add Groups protos. 2019-11-06 17:34:56 -03:00
Matthew Chen
ed1fc257a5 Fix property ordering on SignalAccount. 2019-11-05 13:50:43 -03:00
Matthew Chen
5d787da830 Update code generation to ensure consistent property ordering. 2019-11-05 10:59:58 -03:00
Matthew Chen
179131c615 Update code generation to ensure consistent property ordering. 2019-11-05 10:45:16 -03:00
Matthew Chen
af1a74b01d Update code generation to ensure consistent property ordering. 2019-11-05 10:42:07 -03:00
Matthew Chen
471a54cc64 Update code generation to ensure consistent property ordering. 2019-11-05 10:15:07 -03:00
Michael Kirk
be0190f060 update templates 2019-11-04 14:06:54 -08:00
Michael Kirk
66bb6ed9da redump schema - Note, this was manually touched up to work around the dropped singal account indices 2019-11-04 14:06:54 -08:00
Michael Kirk
0fca274e62 Sync Groups and Contacts 2019-11-04 14:06:54 -08:00
Michael Kirk
d6353a99a7 rename OWSSyncGroupsRequestMessage -> OWSGroupInfoRequestMessage
It's not a sync message.
2019-11-04 14:05:59 -08:00
Michael Kirk
9b69b6bc0b disable debug logging in script 2019-10-24 13:11:21 -06:00
Nora Trapp
03f3f4aa9a Don't disable universal support in precommitt 2019-10-23 13:46:31 -07:00
Matthew Chen
64573a3e80 Fix RI check script. 2019-10-17 17:22:23 -03:00