Commit Graph

67 Commits

Author SHA1 Message Date
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
Max Radermacher
0a356fec11 Rotate APNS token when reregistering notifications 2022-10-07 13:59:25 -07:00
Evan Hahn
23f05f0681
Swiftify OWSDeviceProvisioningURLParserTest 2022-09-07 09:46:28 -07:00
Jordan Rose
8a29fdd71c Store the local PNI alongside the local ACI and phone number
Save the PNI after registration and when verifying or updating our
current phone number. (Also, show it in the Internal settings like the
phone number and ACI.)
2022-03-14 12:59:44 -07:00
Matthew Chen
fc749b4d72 Change phone number. 2021-11-19 14:28:18 -03:00
Nora Trapp
2814ab7629 Convert to new Promise library 2021-09-03 11:41:34 -07:00
Matthew Chen
5cfaed229b Fix tests. 2021-08-24 18:32:23 -03:00
Matthew Chen
550f58375c Refine error localizedDescription. 2021-08-18 15:01:04 -03:00
Matthew Chen
e13657952b Respond to CR; fix broken tests. 2021-08-18 14:26:20 -03:00
Matthew Chen
fcdca12cf5 Deprecate REST, Part 1
* Port socket manager to Swift.
* Clean up HTTP request success/failure state & errors.
* Rework network manager.
* Rework HTTP errors.
* Rework errors "properties": isRetryable, etc.
* Fix test breakage.
2021-08-18 14:25:36 -03:00
Matthew Chen
e9f8f8486f Fix broken and failing tests. 2021-06-07 11:41:52 -04:00
Matthew Chen
211b93581b Rework dependency access. 2021-03-25 09:24:27 -03:00
Matthew Chen
d0cbf8cfd0 Rework dependency access. 2021-03-25 09:24:27 -03:00
Matthew Chen
6b4f192b1b Remove usage of retainUntilComplete. 2020-05-22 09:51:12 -03:00
Nora Trapp
879fe738cf Fix tests 2020-05-18 20:48:08 -07:00
Nora Trapp
c7fdc330c4 Fix registration test 2020-04-03 11:17:01 -07:00
Michael Kirk
8d6ba881c7 fixup registration test 2020-02-14 12:17:50 -07:00
Michael Kirk
4c1afa18a6 secondary devices update capabilities w/ devices endpoint 2020-02-05 10:38:43 -07:00
Nora Trapp
fbdafc6bd5 Store KBS keys in the database instead of the keychain 2019-11-13 10:48:36 -03:00
Matthew Chen
70d4b3a2a0 Fix broken tests. 2019-11-07 17:22:08 -03:00
Michael Kirk
6fea78a6b3 Linking flow 2019-10-17 10:19:32 -06:00
Michael Kirk
64ce96e2c4 Remove redundant perf test 2019-09-16 07:51:36 -07:00
Matthew Chen
4455185f84 Remove YDB & primary storage usage. 2019-08-14 09:10:48 -03:00
Matthew Chen
77b9500154 Convert interactions to BaseModel. 2019-07-19 15:25:28 -03:00
Michael Kirk
a6ee117662 fixup account manager test 2019-07-03 15:36:35 -05:00
Michael Kirk
691209e25e Decrypt Messages with AnyTransaction
- Migrate protocol stores to KVStores
- Introduce AnyDatabaseQueue
- Move messaging pipeline to AnyTransactions
- Migrate specialized PushDecrypt job to generic JobQueue
2019-05-21 16:20:22 -04:00
Michael Kirk
a0770c14c5 baseline perf test for migration 2018-12-19 15:19:02 -07:00
Michael Kirk
3be8563898 fixup broken tests 2018-12-19 15:19:02 -07:00
Matthew Chen
48c4576c06 Fix failing test. 2018-10-15 15:51:43 -04:00
Matthew Chen
0b4ed1175d Create AppEnvironment. 2018-10-15 15:08:37 -04:00
Matthew Chen
d7e52367ff Create AppEnvironment. 2018-10-15 15:08:37 -04:00
Matthew Chen
df6fe05d0d Get tests running. 2018-10-15 13:39:45 -04:00
Matthew Chen
53466386fd Get tests running. 2018-10-15 12:59:28 -04:00
Matthew Chen
32cf68bece Get all tests building. 2018-10-15 12:50:07 -04:00
Michael Kirk
d6a6024f37 Update PromiseKit 2018-10-13 16:04:20 -06:00
Matthew Chen
0125535d4d Pull out SignalCoreKit. 2018-10-01 09:06:40 -04:00
Matthew Chen
e1db60c1c0 Rework creation of singletons. 2018-09-19 15:11:26 -04:00
Michael Kirk
170eb63772 update old non-existant API usage 2018-09-17 10:10:32 -06:00
Matthew Chen
3935b019f4 Add base class for tests. 2018-09-10 17:30:18 -05:00
Michael Kirk
82e559d11b Use swift macros for main thread assert 2018-08-23 10:29:49 -06:00
Matthew Chen
db3df249bf Merge NSData categories. 2018-08-09 13:50:55 -04:00
Michael Kirk
c19a8ce07e Fixup tests
// FREEBIE
2018-07-17 18:17:17 -06:00
Michael Kirk
a6200a5600 update layout tests 2018-06-11 09:58:36 -04:00
Matthew Chen
f7abcc9064 Respond to CR. 2018-05-30 15:28:03 -04:00
Matthew Chen
9085609087 Fix interaction initializers and tests. 2018-04-05 09:36:52 -04:00
Matthew Chen
4746948dfe Respond to CR. 2018-03-14 10:02:44 -03:00
Matthew Chen
76b4deffe4 Respond to CR. 2018-03-14 09:27:39 -03:00
Matthew Chen
d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 2018-03-06 17:12:13 -03:00
Matthew Chen
53f51bcd0b Clean up ahead of PR. 2017-12-06 10:36:12 -05:00
Matthew Chen
69e0bcd308 Fix tests. 2017-12-06 10:36:12 -05:00