Commit Graph

31 Commits

Author SHA1 Message Date
Sasha Weiss
6ff76dd7e6
Do away with some ObjC test infra 2024-05-06 09:57:21 -07:00
Max Radermacher
5482e63c3f
Handle phone number visibility in addresses 2024-02-14 18:51:45 -06:00
Max Radermacher
7939dab86b
Drop ignoreCache SignalServiceAddress parameter 2024-02-09 12:08:46 -06:00
Max Radermacher
0935c7e70e
Add PNI column to SignalRecipient 2023-09-06 17:31:16 -05:00
Max Radermacher
7452ea0442
[ServiceId] Update RecipientMerger 2023-08-03 16:59:29 -05:00
Max Radermacher
9a9a88485e
Use ServiceId internally in SignalServiceAddress 2023-08-01 14:17:35 -05:00
Max Radermacher
17a2fb4093
Rename ServiceId -> UntypedServiceId 2023-07-26 16:56:19 -05:00
Max Radermacher
b593cba603
Adopt randomForTesting/constantForTesting 2023-07-26 16:29:14 -05:00
Max Radermacher
cd3147965b
Update SignalServiceAddress test parameters 2023-07-26 16:04:52 -05:00
Max Radermacher
94f96fcd8e
Migrate SignalRecipient to SDSCodableModel 2023-05-24 15:50:17 -07:00
Max Radermacher
1a2a3470c1 Improve performance of SignalServiceAddressCache 2023-04-06 13:08:51 -07:00
Max Radermacher
ebf6b8f5e7
Support PNIs in SignalServiceAddress 2023-03-23 12:43:01 -07:00
Max Radermacher
22d23b688a Refactor common logic in SignalServiceAddressTest 2023-03-15 17:10:10 -07:00
Max Radermacher
907b6cb02d Require transaction when updating address mappings 2023-01-10 16:31:31 -08:00
Evan Hahn
370ff654e7
Change license to AGPL
Change license to AGPL

This commit:

- Updates the `LICENSE` file

- Start every file with something like:

      // Copyright YEAR_FIRST_PUBLISHED Signal Messenger, LLC
      // SPDX-License-Identifier: AGPL-3.0-only

---

First, I removed existing license headers with this Ruby 3.1.2 script:

    require 'set'

    EXTENSIONS_TO_CHECK = Set['.h', '.hpp', '.cpp', '.m', '.mm', '.pch', '.swift']

    same = 0
    different = 0

    all_files = `git ls-files`.lines.map { |line| line.strip }
    all_files.each do |relative_path|
      if relative_path == 'Pods'
        next
      end

      unless EXTENSIONS_TO_CHECK.include? File.extname(relative_path)
        next
      end

      path = File.expand_path(relative_path)

      contents = File.read(path)
      new_contents = contents.sub(/\/\/\n\/\/  Copyright .*\n\/\/\n\n/, '')

      if contents == new_contents
        same += 1
      else
        different += 1
      end

      File.write(path, new_contents)
    end

    puts "updated #{different} file(s), left #{same} untouched"

I'm sure this script could be improved, but it worked well enough.

Then, I created `Scripts/lint/lint-license-headers` and ran it to auto-
fix a lot of files. This changed the mode of some files, but I think
that's actually desirable. For example,
`SignalServiceKit/src/Util/AppContext.m` previously had a mode of
`0755/-rwxr-xr-x`, and it's now `0644/-rw-r--r--`.

Then I fixed some stragglers and updated the precommit script.

See [a similar change in the Desktop app][0].

[0]: 8bfaf598af
2022-10-13 08:25:37 -05:00
Evan Hahn
a066511a62 Remove useless test setup/teardown
We had a lot of functions like this, which are useless:

    override func setUp() {
        super.setUp()
    }

This removes them.
2022-10-04 14:06:34 -07:00
Matthew Chen
fae75abb39 Fix address hash continuity. 2021-12-01 10:45:10 -08:00
Matthew Chen
512c403f11 Elaborate tests around address hash continuity. 2021-11-19 14:28:25 -03:00
Matthew Chen
07dc666382 Elaborate tests around address hash continuity. 2021-11-19 14:28:25 -03:00
Matthew Chen
5aa572fa50 Elaborate tests around address hash continuity. 2021-11-19 14:28:24 -03:00
Matthew Chen
22fd7cc1d1 Elaborate tests around signal service address cache. 2021-11-19 14:28:24 -03:00
Matthew Chen
39828dcdf9 Change phone number. 2021-11-19 14:28:22 -03:00
Matthew Chen
d0cbf8cfd0 Rework dependency access. 2021-03-25 09:24:27 -03:00
Matthew Chen
e2c2f37e60 Respond to CR. 2020-08-11 17:25:47 -03:00
Matthew Chen
b85cc48017 Add unit test around address mapping changes. 2020-08-11 16:44:32 -03:00
Nora Trapp
9696671f8a Add trustLevel to SignalServiceAddress 2020-08-05 14:36:43 -07:00
Nora Trapp
d536c8ded0 PR Feedback 2020-07-24 13:15:32 -07:00
Matthew Chen
1ae6012ecb Create and fetch groups v2; group update roundtrip. 2020-01-17 17:29:00 -03:00
Matthew Chen
72f912dce3 Versioned profile changes, etc. 2020-01-08 13:54:54 -03:00
Matthew Chen
29150102cb Revert group and profile changes. 2019-12-11 20:41:54 -08:00
Matthew Chen
3d88f68cfb Rework new group new creation & group updates. 2019-12-04 15:40:54 -03:00