Commit Graph

14 Commits

Author SHA1 Message Date
Max Radermacher
8e901365ea
Remove some extra spaces from protobuf files 2024-05-01 13:29:47 -05:00
Harry
d01be5e3f7
Add master key field to provisioning proto 2023-11-06 21:35:06 -08:00
Harry
c5d92b039d
Atomic device linking 2023-08-10 15:21:35 -07: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
Jordan Rose
1c252fd6f6 Add PNI-related fields to the ProvisioningMessage proto
This allows linked devices to receive the PNI identity key as part of
provisioning.
2022-03-18 13:03:55 -07:00
Nora Trapp
d9a5500cbc Android also doesn't require readReceipts 2019-11-08 12:35:16 -08:00
Nora Trapp
426c95d40d User-agent should not be required, android doesn't provide it. 2019-11-08 12:35:16 -08:00
Nora Trapp
235b1aa377 Update protos 2019-11-04 13:01:20 -08:00
Michael Kirk
3546766125 fixup spurious newline 2019-10-28 12:14:55 -06:00
Michael Kirk
6fea78a6b3 Linking flow 2019-10-17 10:19:32 -06:00
Nora Trapp
5b0f57a1c0 Add UUID to provisioning proto 2019-08-15 19:29:59 -07:00
Matthew Chen
28acea3cf0 Respond to CR. 2018-08-03 14:03:02 -04:00
Matthew Chen
b164ce9403 Code generate Swift wrappers for protocol buffers. 2018-08-02 14:27:05 -04:00
Michael Kirk
9299c5e573 CR: tweak proto class name, include yet-to-be-used protos
// FREEBIE
2018-07-25 13:48:52 -06:00