diff --git a/.codecov.yaml b/.codecov.yaml index aec3fb4c7..97a56e363 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + coverage: status: project: diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index bc7a0c9b8..212139834 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: 🐛 Bug Report description: Report a bug to the product team labels: ["bug"] diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 3ba13e0ce..36449bf3b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index 51f47a898..2a5611f0e 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: 🛠️ Feature description: "Create an new issue for a new Feature in Famedly" labels: ["feature"] diff --git a/.github/ISSUE_TEMPLATE/improvement.yml b/.github/ISSUE_TEMPLATE/improvement.yml index a99644785..72ce645b7 100644 --- a/.github/ISSUE_TEMPLATE/improvement.yml +++ b/.github/ISSUE_TEMPLATE/improvement.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: 🛠️ Improvement description: "Create an new issue for an improvment in Famedly" labels: ["improvement"] diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a6466d72b..8ee914aac 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + version: 2 updates: - package-ecosystem: "pub" diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index 67b58f820..069507e33 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: Continuous Integration on: @@ -28,6 +32,14 @@ jobs: contents: read uses: famedly/frontend-ci-templates/.github/workflows/general.yml@main + reuse-compliance-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Check licenses + uses: fsfe/reuse-action@v5 + e2ee_test: runs-on: ubuntu-latest timeout-minutes: 30 diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index caffcb191..ff2af5afa 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: Add issues to Product Management Project. on: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c1a2dcf76..edbb168d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: Publish to pub.dev on: diff --git a/CHANGELOG.md b/CHANGELOG.md index 812d9956d..4dcea0f70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ + + ## [7.1.1] 12th May 2026 - fix: call delayed event canceller should not use application and actually remove it from local state on leave (td) - fix: Do not send dozens of key request to device messages on timeline export (krille-chan) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cf862c0b3..68dbf9e85 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,9 @@ + + # Contributing code to Famedly *See also: Code of Conduct* diff --git a/LICENSES/AGPL-3.0-or-later.txt b/LICENSES/AGPL-3.0-or-later.txt new file mode 100644 index 000000000..0c97efd25 --- /dev/null +++ b/LICENSES/AGPL-3.0-or-later.txt @@ -0,0 +1,235 @@ +GNU AFFERO GENERAL PUBLIC LICENSE +Version 3, 19 November 2007 + +Copyright (C) 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + + Preamble + +The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. + +A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. + +The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. + +An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. + +The precise terms and conditions for copying, distribution and modification follow. + + TERMS AND CONDITIONS + +0. Definitions. + +"This License" refers to version 3 of the GNU Affero General Public License. + +"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the Program. + +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. + +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those +subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. + +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. + +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. + +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. + +A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. + +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Remote Network Interaction; Use with the GNU General Public License. + +Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. + +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. + +14. Revised Versions of this License. + +The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. + +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . diff --git a/README.md b/README.md index 0f9511012..5e1c9663d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # Matrix SDK Matrix (matrix.org) SDK written in dart. diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 000000000..693df5303 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,15 @@ +version = 1 + +[[annotations]] +path = [ + ".github/CODEOWNERS", + ".github/workflows/versions.env", + ".gitignore", + ".metadata", + "test_driver/synapse/data/.gitignore", + "test_driver/synapse/data/localhost.log.config", + "web_test/.gitignore" +] +precedence = "aggregate" +SPDX-FileCopyrightText = "2019-Present Famedly GmbH" +SPDX-License-Identifier = "AGPL-3.0-or-later" diff --git a/analysis_options.yaml b/analysis_options.yaml index 1349c50d4..e7601f1e0 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + include: package:famedly_dart_lints/analysis_options.yaml linter: diff --git a/dart_dependency_validator.yaml b/dart_dependency_validator.yaml index ce5516c98..35a241a11 100644 --- a/dart_dependency_validator.yaml +++ b/dart_dependency_validator.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + exclude: - example/** ignore: diff --git a/dart_test.yaml b/dart_test.yaml index 23121f0f6..541342605 100644 --- a/dart_test.yaml +++ b/dart_test.yaml @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + tags: olm: \ No newline at end of file diff --git a/doc/commands.md b/doc/commands.md index 8c8f6a272..ca15d672c 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -1,3 +1,9 @@ + + ## Available Chat Commands The Matrix Dart SDK supports out of the box chat commands. Just use `Room.sendTextEvent("/command");`. If you do not desire to get chat commands parsed, you can disable them like this: `Room.sendTextEvent("/command", parseCommands: false);` diff --git a/doc/end-to-end-encryption.md b/doc/end-to-end-encryption.md index 4a7594cdf..01f620d49 100644 --- a/doc/end-to-end-encryption.md +++ b/doc/end-to-end-encryption.md @@ -1,3 +1,9 @@ + + To enable end to end encryption you need to setup [Vodozemac](https://pub.dev/packages/vodozemac). For this you need Rust installed locally: [rust-lang.org/tools/install](https://www.rust-lang.org/tools/install) For Flutter you can use [flutter_vodozemac](https://pub.dev/packages/flutter_vodozemac). diff --git a/doc/get-started.md b/doc/get-started.md index 38ffc5811..5d9fc672a 100644 --- a/doc/get-started.md +++ b/doc/get-started.md @@ -1,3 +1,9 @@ + + Follow these steps to get started with your first Matrix Client. ## Step 1: Add dependencies diff --git a/doc/oidc-login.md b/doc/oidc-login.md index 4ff22f30e..f03a9bedf 100644 --- a/doc/oidc-login.md +++ b/doc/oidc-login.md @@ -1,3 +1,9 @@ + + Follow these steps to login with Matrix native OIDC. Your app must be capable of opening a website (e.g. in an in-app-browser or for web clients in a new tab) and retrieve a redirect URI. We recommend investigating into a package diff --git a/example/main.dart b/example/main.dart index ced49395d..7722c63a5 100644 --- a/example/main.dart +++ b/example/main.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:flutter/material.dart'; import 'package:matrix/matrix.dart'; import 'package:path_provider/path_provider.dart'; diff --git a/lib/encryption.dart b/lib/encryption.dart index caaa9d413..7974b8794 100644 --- a/lib/encryption.dart +++ b/lib/encryption.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later /// Matrix SDK encryption specific extension library; diff --git a/lib/encryption/cross_signing.dart b/lib/encryption/cross_signing.dart index 5f8b04c5d..a917878e3 100644 --- a/lib/encryption/cross_signing.dart +++ b/lib/encryption/cross_signing.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/encryption/encryption.dart b/lib/encryption/encryption.dart index 090cfb63c..23aad756d 100644 --- a/lib/encryption/encryption.dart +++ b/lib/encryption/encryption.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/encryption/key_manager.dart b/lib/encryption/key_manager.dart index 052764a8a..8b1cf5d9c 100644 --- a/lib/encryption/key_manager.dart +++ b/lib/encryption/key_manager.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/encryption/key_verification_manager.dart b/lib/encryption/key_verification_manager.dart index 2ff1d91cf..30b498da9 100644 --- a/lib/encryption/key_verification_manager.dart +++ b/lib/encryption/key_verification_manager.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/encryption/encryption.dart'; import 'package:matrix/encryption/utils/key_verification.dart'; diff --git a/lib/encryption/olm_manager.dart b/lib/encryption/olm_manager.dart index 2176aee22..5f5189cf4 100644 --- a/lib/encryption/olm_manager.dart +++ b/lib/encryption/olm_manager.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/encryption/ssss.dart b/lib/encryption/ssss.dart index 44863eee1..1e622e74a 100644 --- a/lib/encryption/ssss.dart +++ b/lib/encryption/ssss.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/encryption/utils/base64_unpadded.dart b/lib/encryption/utils/base64_unpadded.dart index 43f4c7784..10e6dc9ce 100644 --- a/lib/encryption/utils/base64_unpadded.dart +++ b/lib/encryption/utils/base64_unpadded.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/encryption/utils/bootstrap.dart b/lib/encryption/utils/bootstrap.dart index 2783fc89f..75f38a155 100644 --- a/lib/encryption/utils/bootstrap.dart +++ b/lib/encryption/utils/bootstrap.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/encryption/utils/crypto_setup_extension.dart b/lib/encryption/utils/crypto_setup_extension.dart index c36737a51..89aabd123 100644 --- a/lib/encryption/utils/crypto_setup_extension.dart +++ b/lib/encryption/utils/crypto_setup_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:matrix/encryption/utils/bootstrap.dart'; diff --git a/lib/encryption/utils/json_signature_check_extension.dart b/lib/encryption/utils/json_signature_check_extension.dart index e0d0be37e..11d9ff2d2 100644 --- a/lib/encryption/utils/json_signature_check_extension.dart +++ b/lib/encryption/utils/json_signature_check_extension.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:canonical_json/canonical_json.dart'; import 'package:vodozemac/vodozemac.dart' as vod; diff --git a/lib/encryption/utils/key_verification.dart b/lib/encryption/utils/key_verification.dart index 9e694f9f6..5a77d0e56 100644 --- a/lib/encryption/utils/key_verification.dart +++ b/lib/encryption/utils/key_verification.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/encryption/utils/olm_session.dart b/lib/encryption/utils/olm_session.dart index 7be42ea2d..1779a3643 100644 --- a/lib/encryption/utils/olm_session.dart +++ b/lib/encryption/utils/olm_session.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/encryption/utils/outbound_group_session.dart b/lib/encryption/utils/outbound_group_session.dart index 94219026d..6c9d992b2 100644 --- a/lib/encryption/utils/outbound_group_session.dart +++ b/lib/encryption/utils/outbound_group_session.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/encryption/utils/pickle_key.dart b/lib/encryption/utils/pickle_key.dart index 6d85ac57e..1e8cc5c41 100644 --- a/lib/encryption/utils/pickle_key.dart +++ b/lib/encryption/utils/pickle_key.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:typed_data'; extension PickleKeyStringExtension on String { diff --git a/lib/encryption/utils/session_key.dart b/lib/encryption/utils/session_key.dart index 77d83fd85..5f2463d72 100644 --- a/lib/encryption/utils/session_key.dart +++ b/lib/encryption/utils/session_key.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/encryption/utils/ssss_cache.dart b/lib/encryption/utils/ssss_cache.dart index df22d870c..21c75f418 100644 --- a/lib/encryption/utils/ssss_cache.dart +++ b/lib/encryption/utils/ssss_cache.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later class SSSSCache { final String? type; diff --git a/lib/encryption/utils/stored_inbound_group_session.dart b/lib/encryption/utils/stored_inbound_group_session.dart index 8fb87e4bb..f86a23fc2 100644 --- a/lib/encryption/utils/stored_inbound_group_session.dart +++ b/lib/encryption/utils/stored_inbound_group_session.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later class StoredInboundGroupSession { final String roomId; diff --git a/lib/fake_matrix_api.dart b/lib/fake_matrix_api.dart index 0d4f85a1a..b6b24a1b5 100644 --- a/lib/fake_matrix_api.dart +++ b/lib/fake_matrix_api.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/matrix.dart b/lib/matrix.dart index cca0e0272..02844a4e6 100644 --- a/lib/matrix.dart +++ b/lib/matrix.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later /// Matrix SDK written in pure Dart. library; diff --git a/lib/matrix_api_lite.dart b/lib/matrix_api_lite.dart index 22ea3ea31..2e1f2a564 100644 --- a/lib/matrix_api_lite.dart +++ b/lib/matrix_api_lite.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later /// Lightweight wrapper around the raw matrix API. library; diff --git a/lib/matrix_api_lite/README.md b/lib/matrix_api_lite/README.md index 263accf3f..8d12bca76 100644 --- a/lib/matrix_api_lite/README.md +++ b/lib/matrix_api_lite/README.md @@ -1,3 +1,9 @@ + + # Matrix API Lite This package is a dead simple data model over the client-server specification of https://matrix.org and is mostly used as a base for a more complete Matrix SDK. diff --git a/lib/matrix_api_lite/generated/api.dart b/lib/matrix_api_lite/generated/api.dart index 61699c064..33e9a7478 100644 --- a/lib/matrix_api_lite/generated/api.dart +++ b/lib/matrix_api_lite/generated/api.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/matrix_api_lite/generated/fixed_model.dart b/lib/matrix_api_lite/generated/fixed_model.dart index 22c27070f..25faec5ac 100644 --- a/lib/matrix_api_lite/generated/fixed_model.dart +++ b/lib/matrix_api_lite/generated/fixed_model.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:typed_data'; class FileResponse { diff --git a/lib/matrix_api_lite/generated/internal.dart b/lib/matrix_api_lite/generated/internal.dart index 9a15e6352..e16b92541 100644 --- a/lib/matrix_api_lite/generated/internal.dart +++ b/lib/matrix_api_lite/generated/internal.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix_api_lite/generated/fixed_model.dart'; void ignore(Object? input) {} diff --git a/lib/matrix_api_lite/generated/model.dart b/lib/matrix_api_lite/generated/model.dart index 47a50b4fa..2b8ddd127 100644 --- a/lib/matrix_api_lite/generated/model.dart +++ b/lib/matrix_api_lite/generated/model.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:core' as dart; import 'dart:core'; diff --git a/lib/matrix_api_lite/generated/model.g.dart b/lib/matrix_api_lite/generated/model.g.dart index 4b17c9eac..ecf94fb87 100644 --- a/lib/matrix_api_lite/generated/model.g.dart +++ b/lib/matrix_api_lite/generated/model.g.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'model.dart'; diff --git a/lib/matrix_api_lite/matrix_api.dart b/lib/matrix_api_lite/matrix_api.dart index 645ee3892..d878f1b7d 100644 --- a/lib/matrix_api_lite/matrix_api.dart +++ b/lib/matrix_api_lite/matrix_api.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/matrix_api_lite/model/algorithm_types.dart b/lib/matrix_api_lite/model/algorithm_types.dart index e4f8548bd..e3f038d41 100644 --- a/lib/matrix_api_lite/model/algorithm_types.dart +++ b/lib/matrix_api_lite/model/algorithm_types.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later abstract class AlgorithmTypes { static const String olmV1Curve25519AesSha2 = 'm.olm.v1.curve25519-aes-sha2'; diff --git a/lib/matrix_api_lite/model/auth/authentication_data.dart b/lib/matrix_api_lite/model/auth/authentication_data.dart index 9d3be4cc3..f8f7c0775 100644 --- a/lib/matrix_api_lite/model/auth/authentication_data.dart +++ b/lib/matrix_api_lite/model/auth/authentication_data.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later class AuthenticationData { // Should be non-nullable according to the spec but this leads to this problem diff --git a/lib/matrix_api_lite/model/auth/authentication_identifier.dart b/lib/matrix_api_lite/model/auth/authentication_identifier.dart index 974438a7c..db09df01f 100644 --- a/lib/matrix_api_lite/model/auth/authentication_identifier.dart +++ b/lib/matrix_api_lite/model/auth/authentication_identifier.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_phone_identifier.dart'; import 'package:matrix/matrix_api_lite/model/auth/authentication_third_party_identifier.dart'; diff --git a/lib/matrix_api_lite/model/auth/authentication_password.dart b/lib/matrix_api_lite/model/auth/authentication_password.dart index f6f4636f8..c1f4ccab5 100644 --- a/lib/matrix_api_lite/model/auth/authentication_password.dart +++ b/lib/matrix_api_lite/model/auth/authentication_password.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_data.dart'; import 'package:matrix/matrix_api_lite/model/auth/authentication_identifier.dart'; diff --git a/lib/matrix_api_lite/model/auth/authentication_phone_identifier.dart b/lib/matrix_api_lite/model/auth/authentication_phone_identifier.dart index fd8c5caa5..4c8503226 100644 --- a/lib/matrix_api_lite/model/auth/authentication_phone_identifier.dart +++ b/lib/matrix_api_lite/model/auth/authentication_phone_identifier.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_identifier.dart'; import 'package:matrix/matrix_api_lite/model/auth/authentication_types.dart'; diff --git a/lib/matrix_api_lite/model/auth/authentication_recaptcha.dart b/lib/matrix_api_lite/model/auth/authentication_recaptcha.dart index e5d8f415e..33f447e68 100644 --- a/lib/matrix_api_lite/model/auth/authentication_recaptcha.dart +++ b/lib/matrix_api_lite/model/auth/authentication_recaptcha.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_data.dart'; import 'package:matrix/matrix_api_lite/model/auth/authentication_types.dart'; diff --git a/lib/matrix_api_lite/model/auth/authentication_third_party_identifier.dart b/lib/matrix_api_lite/model/auth/authentication_third_party_identifier.dart index 975ea3842..0d337d6d5 100644 --- a/lib/matrix_api_lite/model/auth/authentication_third_party_identifier.dart +++ b/lib/matrix_api_lite/model/auth/authentication_third_party_identifier.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_identifier.dart'; import 'package:matrix/matrix_api_lite/model/auth/authentication_types.dart'; diff --git a/lib/matrix_api_lite/model/auth/authentication_three_pid_creds.dart b/lib/matrix_api_lite/model/auth/authentication_three_pid_creds.dart index 46b6ef509..c27cb04a7 100644 --- a/lib/matrix_api_lite/model/auth/authentication_three_pid_creds.dart +++ b/lib/matrix_api_lite/model/auth/authentication_three_pid_creds.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_data.dart'; diff --git a/lib/matrix_api_lite/model/auth/authentication_token.dart b/lib/matrix_api_lite/model/auth/authentication_token.dart index 6bf4bda61..0c3c6ddfb 100644 --- a/lib/matrix_api_lite/model/auth/authentication_token.dart +++ b/lib/matrix_api_lite/model/auth/authentication_token.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_data.dart'; import 'package:matrix/matrix_api_lite/model/auth/authentication_types.dart'; diff --git a/lib/matrix_api_lite/model/auth/authentication_types.dart b/lib/matrix_api_lite/model/auth/authentication_types.dart index ea181e407..d639e2b3b 100644 --- a/lib/matrix_api_lite/model/auth/authentication_types.dart +++ b/lib/matrix_api_lite/model/auth/authentication_types.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later abstract class AuthenticationTypes { static const String password = 'm.login.password'; diff --git a/lib/matrix_api_lite/model/auth/authentication_user_identifier.dart b/lib/matrix_api_lite/model/auth/authentication_user_identifier.dart index 1653bfa0b..321bdad80 100644 --- a/lib/matrix_api_lite/model/auth/authentication_user_identifier.dart +++ b/lib/matrix_api_lite/model/auth/authentication_user_identifier.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/auth/authentication_identifier.dart'; import 'package:matrix/matrix_api_lite/model/auth/authentication_types.dart'; diff --git a/lib/matrix_api_lite/model/basic_event.dart b/lib/matrix_api_lite/model/basic_event.dart index 6fd1c5c4a..f1b0b51af 100644 --- a/lib/matrix_api_lite/model/basic_event.dart +++ b/lib/matrix_api_lite/model/basic_event.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/utils/map_copy_extension.dart'; diff --git a/lib/matrix_api_lite/model/basic_event_with_sender.dart b/lib/matrix_api_lite/model/basic_event_with_sender.dart index 294e72b41..de73b0610 100644 --- a/lib/matrix_api_lite/model/basic_event_with_sender.dart +++ b/lib/matrix_api_lite/model/basic_event_with_sender.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; diff --git a/lib/matrix_api_lite/model/children_state.dart b/lib/matrix_api_lite/model/children_state.dart index a82bc5c97..3b3c146f3 100644 --- a/lib/matrix_api_lite/model/children_state.dart +++ b/lib/matrix_api_lite/model/children_state.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2022 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present, 2022 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/stripped_state_event.dart'; diff --git a/lib/matrix_api_lite/model/event_types.dart b/lib/matrix_api_lite/model/event_types.dart index cd4957327..4631362fb 100644 --- a/lib/matrix_api_lite/model/event_types.dart +++ b/lib/matrix_api_lite/model/event_types.dart @@ -1,27 +1,8 @@ // ignore_for_file: constant_identifier_names -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later abstract class EventTypes { // Room timeline and state event types diff --git a/lib/matrix_api_lite/model/events/forwarded_room_key_content.dart b/lib/matrix_api_lite/model/events/forwarded_room_key_content.dart index 3d2961c42..d29ee7da5 100644 --- a/lib/matrix_api_lite/model/events/forwarded_room_key_content.dart +++ b/lib/matrix_api_lite/model/events/forwarded_room_key_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/model/events/room_key_content.dart'; diff --git a/lib/matrix_api_lite/model/events/image_pack_content.dart b/lib/matrix_api_lite/model/events/image_pack_content.dart index b4e5e30bc..83a2b133f 100644 --- a/lib/matrix_api_lite/model/events/image_pack_content.dart +++ b/lib/matrix_api_lite/model/events/image_pack_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/utils/filter_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/events/olm_plaintext_payload.dart b/lib/matrix_api_lite/model/events/olm_plaintext_payload.dart index ef4f2acf9..22ec462f1 100644 --- a/lib/matrix_api_lite/model/events/olm_plaintext_payload.dart +++ b/lib/matrix_api_lite/model/events/olm_plaintext_payload.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/utils/try_get_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/events/room_encrypted_content.dart b/lib/matrix_api_lite/model/events/room_encrypted_content.dart index 904767c6b..44022704d 100644 --- a/lib/matrix_api_lite/model/events/room_encrypted_content.dart +++ b/lib/matrix_api_lite/model/events/room_encrypted_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/matrix_api_lite/model/events/room_encryption_content.dart b/lib/matrix_api_lite/model/events/room_encryption_content.dart index d66bf9cf2..b4eca823c 100644 --- a/lib/matrix_api_lite/model/events/room_encryption_content.dart +++ b/lib/matrix_api_lite/model/events/room_encryption_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/utils/try_get_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/events/room_key_content.dart b/lib/matrix_api_lite/model/events/room_key_content.dart index 3a893dfba..1cc91b7dc 100644 --- a/lib/matrix_api_lite/model/events/room_key_content.dart +++ b/lib/matrix_api_lite/model/events/room_key_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/utils/try_get_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/events/room_key_request_content.dart b/lib/matrix_api_lite/model/events/room_key_request_content.dart index 6f2ca80f2..40085dd7d 100644 --- a/lib/matrix_api_lite/model/events/room_key_request_content.dart +++ b/lib/matrix_api_lite/model/events/room_key_request_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/utils/try_get_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/events/secret_storage_default_key_content.dart b/lib/matrix_api_lite/model/events/secret_storage_default_key_content.dart index 117bac3d0..9896bc782 100644 --- a/lib/matrix_api_lite/model/events/secret_storage_default_key_content.dart +++ b/lib/matrix_api_lite/model/events/secret_storage_default_key_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/utils/try_get_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/events/secret_storage_key_content.dart b/lib/matrix_api_lite/model/events/secret_storage_key_content.dart index 5e89dd63a..7461056f0 100644 --- a/lib/matrix_api_lite/model/events/secret_storage_key_content.dart +++ b/lib/matrix_api_lite/model/events/secret_storage_key_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/utils/try_get_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/events/tombstone_content.dart b/lib/matrix_api_lite/model/events/tombstone_content.dart index d5e9e946e..948c73c4f 100644 --- a/lib/matrix_api_lite/model/events/tombstone_content.dart +++ b/lib/matrix_api_lite/model/events/tombstone_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event.dart'; import 'package:matrix/matrix_api_lite/utils/try_get_map_extension.dart'; diff --git a/lib/matrix_api_lite/model/matrix_event.dart b/lib/matrix_api_lite/model/matrix_event.dart index ea6a555a8..d8607d4a5 100644 --- a/lib/matrix_api_lite/model/matrix_event.dart +++ b/lib/matrix_api_lite/model/matrix_event.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/stripped_state_event.dart'; import 'package:matrix/matrix_api_lite/utils/map_copy_extension.dart'; diff --git a/lib/matrix_api_lite/model/matrix_exception.dart b/lib/matrix_api_lite/model/matrix_exception.dart index e55fb652f..f35ca9b2c 100644 --- a/lib/matrix_api_lite/model/matrix_exception.dart +++ b/lib/matrix_api_lite/model/matrix_exception.dart @@ -1,27 +1,8 @@ // ignore_for_file: constant_identifier_names -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/matrix_api_lite/model/matrix_keys.dart b/lib/matrix_api_lite/model/matrix_keys.dart index a3a53121f..5003be637 100644 --- a/lib/matrix_api_lite/model/matrix_keys.dart +++ b/lib/matrix_api_lite/model/matrix_keys.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/matrix_api_lite/model/message_types.dart b/lib/matrix_api_lite/model/message_types.dart index 3903c41a1..6ad869050 100644 --- a/lib/matrix_api_lite/model/message_types.dart +++ b/lib/matrix_api_lite/model/message_types.dart @@ -1,27 +1,8 @@ // ignore_for_file: constant_identifier_names -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later abstract class MessageTypes { static const String Text = 'm.text'; diff --git a/lib/matrix_api_lite/model/presence.dart b/lib/matrix_api_lite/model/presence.dart index 86c6f9b2c..ddfb1f4f3 100644 --- a/lib/matrix_api_lite/model/presence.dart +++ b/lib/matrix_api_lite/model/presence.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/model/basic_event_with_sender.dart'; import 'package:matrix/matrix_api_lite/model/presence_content.dart'; diff --git a/lib/matrix_api_lite/model/presence_content.dart b/lib/matrix_api_lite/model/presence_content.dart index ad56f1ff9..64151e95b 100644 --- a/lib/matrix_api_lite/model/presence_content.dart +++ b/lib/matrix_api_lite/model/presence_content.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/matrix_api_lite/model/room_creation_types.dart b/lib/matrix_api_lite/model/room_creation_types.dart index 703f0ce11..bf517e853 100644 --- a/lib/matrix_api_lite/model/room_creation_types.dart +++ b/lib/matrix_api_lite/model/room_creation_types.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + abstract class RoomCreationTypes { static const String mSpace = 'm.space'; } diff --git a/lib/matrix_api_lite/model/room_summary.dart b/lib/matrix_api_lite/model/room_summary.dart index d0300b89a..b424c6df2 100644 --- a/lib/matrix_api_lite/model/room_summary.dart +++ b/lib/matrix_api_lite/model/room_summary.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later class RoomSummary { List? mHeroes; diff --git a/lib/matrix_api_lite/model/stripped_state_event.dart b/lib/matrix_api_lite/model/stripped_state_event.dart index 27f832994..921e2536b 100644 --- a/lib/matrix_api_lite/model/stripped_state_event.dart +++ b/lib/matrix_api_lite/model/stripped_state_event.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/matrix_api_lite/model/sync_update.dart b/lib/matrix_api_lite/model/sync_update.dart index d318ce1e5..72da1b7a6 100644 --- a/lib/matrix_api_lite/model/sync_update.dart +++ b/lib/matrix_api_lite/model/sync_update.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/matrix_api_lite/utils/filter_map_extension.dart b/lib/matrix_api_lite/utils/filter_map_extension.dart index ceaad3366..906939beb 100644 --- a/lib/matrix_api_lite/utils/filter_map_extension.dart +++ b/lib/matrix_api_lite/utils/filter_map_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + extension FilterMap on Map { Map filterMap(MapEntry? Function(K, V) f) => Map.fromEntries( diff --git a/lib/matrix_api_lite/utils/logs.dart b/lib/matrix_api_lite/utils/logs.dart index 1cde56dcb..36dc93bdf 100644 --- a/lib/matrix_api_lite/utils/logs.dart +++ b/lib/matrix_api_lite/utils/logs.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite/utils/print_logs_native.dart' if (dart.library.js_interop) 'print_logs_web.dart'; diff --git a/lib/matrix_api_lite/utils/map_copy_extension.dart b/lib/matrix_api_lite/utils/map_copy_extension.dart index 6ece67d32..d1584f702 100644 --- a/lib/matrix_api_lite/utils/map_copy_extension.dart +++ b/lib/matrix_api_lite/utils/map_copy_extension.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later extension MapCopyExtension on Map { dynamic _copyValue(dynamic value) { diff --git a/lib/matrix_api_lite/utils/print_logs_native.dart b/lib/matrix_api_lite/utils/print_logs_native.dart index 68482032e..07b09458a 100644 --- a/lib/matrix_api_lite/utils/print_logs_native.dart +++ b/lib/matrix_api_lite/utils/print_logs_native.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix_api_lite.dart'; extension PrintLogs on LogEvent { diff --git a/lib/matrix_api_lite/utils/print_logs_web.dart b/lib/matrix_api_lite/utils/print_logs_web.dart index acbb03548..14ea1bac4 100644 --- a/lib/matrix_api_lite/utils/print_logs_web.dart +++ b/lib/matrix_api_lite/utils/print_logs_web.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:js_interop'; import 'package:web/web.dart'; diff --git a/lib/matrix_api_lite/utils/try_get_map_extension.dart b/lib/matrix_api_lite/utils/try_get_map_extension.dart index 96640d5b9..b44ccc263 100644 --- a/lib/matrix_api_lite/utils/try_get_map_extension.dart +++ b/lib/matrix_api_lite/utils/try_get_map_extension.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:core'; diff --git a/lib/matrix_api_lite/values.dart b/lib/matrix_api_lite/values.dart index c3580eec1..8c508af32 100644 --- a/lib/matrix_api_lite/values.dart +++ b/lib/matrix_api_lite/values.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // OpenAPI only supports real enums (modeled as enum in generated/model.dart). // In this file, possible values are defined manually, diff --git a/lib/msc_extensions/README.md b/lib/msc_extensions/README.md index 5e7a31944..7e5e86056 100644 --- a/lib/msc_extensions/README.md +++ b/lib/msc_extensions/README.md @@ -1,3 +1,9 @@ + + # MSC extensions This folder contains non-spec feature implementations, usually proposed in Matrix Specification Changes (MSCs). diff --git a/lib/msc_extensions/extension_audio_events/audio_events.dart b/lib/msc_extensions/extension_audio_events/audio_events.dart index f93ef5ec9..2f990f49b 100644 --- a/lib/msc_extensions/extension_audio_events/audio_events.dart +++ b/lib/msc_extensions/extension_audio_events/audio_events.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; extension AudioEventRoomExtension on Room { diff --git a/lib/msc_extensions/extension_recent_emoji/recent_emoji.dart b/lib/msc_extensions/extension_recent_emoji/recent_emoji.dart index 0cc441ad4..1e4e1342a 100644 --- a/lib/msc_extensions/extension_recent_emoji/recent_emoji.dart +++ b/lib/msc_extensions/extension_recent_emoji/recent_emoji.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// Extension to synchronize the recently used widgets with Element clients library; diff --git a/lib/msc_extensions/extension_timeline_export/timeline_export.dart b/lib/msc_extensions/extension_timeline_export/timeline_export.dart index 99e4c9c2e..d42b36eb6 100644 --- a/lib/msc_extensions/extension_timeline_export/timeline_export.dart +++ b/lib/msc_extensions/extension_timeline_export/timeline_export.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/msc_extensions/msc_1236_widgets/msc_1236_widgets.dart b/lib/msc_extensions/msc_1236_widgets/msc_1236_widgets.dart index be0510da9..548d5e50f 100644 --- a/lib/msc_extensions/msc_1236_widgets/msc_1236_widgets.dart +++ b/lib/msc_extensions/msc_1236_widgets/msc_1236_widgets.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// Extensions related to widgets in a room. Widgets are not part of the Matrix specification yet. library; diff --git a/lib/msc_extensions/msc_1236_widgets/src/widget.dart b/lib/msc_extensions/msc_1236_widgets/src/widget.dart index a0d9cd34f..5b07a9b68 100644 --- a/lib/msc_extensions/msc_1236_widgets/src/widget.dart +++ b/lib/msc_extensions/msc_1236_widgets/src/widget.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/src/room.dart'; class MatrixWidget { diff --git a/lib/msc_extensions/msc_2835_uia_login/msc_2835_uia_login.dart b/lib/msc_extensions/msc_2835_uia_login/msc_2835_uia_login.dart index 0a65d2b40..203fa15ef 100644 --- a/lib/msc_extensions/msc_2835_uia_login/msc_2835_uia_login.dart +++ b/lib/msc_extensions/msc_2835_uia_login/msc_2835_uia_login.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// Experimental login method using User Interactive Authentication library; diff --git a/lib/msc_extensions/msc_2964_oidc_login_flow/msc_2964_oidc_login_flow.dart b/lib/msc_extensions/msc_2964_oidc_login_flow/msc_2964_oidc_login_flow.dart index c313540ab..cc402f5de 100644 --- a/lib/msc_extensions/msc_2964_oidc_login_flow/msc_2964_oidc_login_flow.dart +++ b/lib/msc_extensions/msc_2964_oidc_login_flow/msc_2964_oidc_login_flow.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'dart:math'; diff --git a/lib/msc_extensions/msc_2966_oidc_dynamic_client_registration/msc_2966_oidc_dynamic_client_registration.dart b/lib/msc_extensions/msc_2966_oidc_dynamic_client_registration/msc_2966_oidc_dynamic_client_registration.dart index cd82a27ca..d13cb16d8 100644 --- a/lib/msc_extensions/msc_2966_oidc_dynamic_client_registration/msc_2966_oidc_dynamic_client_registration.dart +++ b/lib/msc_extensions/msc_2966_oidc_dynamic_client_registration/msc_2966_oidc_dynamic_client_registration.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'package:matrix/matrix.dart'; diff --git a/lib/msc_extensions/msc_3381_polls/README.md b/lib/msc_extensions/msc_3381_polls/README.md index 4a3b1bf12..bcaba9f88 100644 --- a/lib/msc_extensions/msc_3381_polls/README.md +++ b/lib/msc_extensions/msc_3381_polls/README.md @@ -1,3 +1,9 @@ + + # Polls Implementation of [MSC-3381](https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/3381-polls.md). diff --git a/lib/msc_extensions/msc_3381_polls/models/poll_event_content.dart b/lib/msc_extensions/msc_3381_polls/models/poll_event_content.dart index 9ad9cdd4e..fd6c0cda9 100644 --- a/lib/msc_extensions/msc_3381_polls/models/poll_event_content.dart +++ b/lib/msc_extensions/msc_3381_polls/models/poll_event_content.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:collection/collection.dart'; class PollEventContent { diff --git a/lib/msc_extensions/msc_3381_polls/poll_event_extension.dart b/lib/msc_extensions/msc_3381_polls/poll_event_extension.dart index 58f053cc0..af0cc44ce 100644 --- a/lib/msc_extensions/msc_3381_polls/poll_event_extension.dart +++ b/lib/msc_extensions/msc_3381_polls/poll_event_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:collection/collection.dart'; import 'package:matrix/matrix.dart'; diff --git a/lib/msc_extensions/msc_3381_polls/poll_room_extension.dart b/lib/msc_extensions/msc_3381_polls/poll_room_extension.dart index 069b05213..3a4c57933 100644 --- a/lib/msc_extensions/msc_3381_polls/poll_room_extension.dart +++ b/lib/msc_extensions/msc_3381_polls/poll_room_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; extension PollRoomExtension on Room { diff --git a/lib/msc_extensions/msc_3814_dehydrated_devices/api.dart b/lib/msc_extensions/msc_3814_dehydrated_devices/api.dart index e4cbea912..4567807bb 100644 --- a/lib/msc_extensions/msc_3814_dehydrated_devices/api.dart +++ b/lib/msc_extensions/msc_3814_dehydrated_devices/api.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021, 2022 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; import 'package:matrix/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device.dart'; diff --git a/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device.dart b/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device.dart index dc27df77e..f30f8e2ad 100644 --- a/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device.dart +++ b/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021, 2022 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device_events.dart b/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device_events.dart index 3dfacb26f..d4eaa7e95 100644 --- a/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device_events.dart +++ b/lib/msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device_events.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021, 2022 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/msc_extensions/msc_3814_dehydrated_devices/msc_3814_dehydrated_devices.dart b/lib/msc_extensions/msc_3814_dehydrated_devices/msc_3814_dehydrated_devices.dart index 8dcb0bfba..5ea006c41 100644 --- a/lib/msc_extensions/msc_3814_dehydrated_devices/msc_3814_dehydrated_devices.dart +++ b/lib/msc_extensions/msc_3814_dehydrated_devices/msc_3814_dehydrated_devices.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// Extensions for the experimental dehydrated devices MSC, which allows /// receiving encrypted messages while you have no devices signed in. library; diff --git a/lib/msc_extensions/msc_3935_cute_events/msc_3935_cute_events.dart b/lib/msc_extensions/msc_3935_cute_events/msc_3935_cute_events.dart index ae7bb0214..af4f8071a 100644 --- a/lib/msc_extensions/msc_3935_cute_events/msc_3935_cute_events.dart +++ b/lib/msc_extensions/msc_3935_cute_events/msc_3935_cute_events.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + abstract class CuteEventContent { static const String eventType = 'im.fluffychat.cute_event'; diff --git a/lib/msc_extensions/msc_4075_rtc_notification/api.dart b/lib/msc_extensions/msc_4075_rtc_notification/api.dart index 061dfce6d..dba7bab10 100644 --- a/lib/msc_extensions/msc_4075_rtc_notification/api.dart +++ b/lib/msc_extensions/msc_4075_rtc_notification/api.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// MSC4075: MatrixRTC Notification Event (https://github.com/matrix-org/matrix-spec-proposals/pull/4075) /// /// Provides support for MatrixRTC notification events which allow clients diff --git a/lib/msc_extensions/msc_4075_rtc_notification/models/rtc_notification_content.dart b/lib/msc_extensions/msc_4075_rtc_notification/models/rtc_notification_content.dart index 8839ce0a4..b1a5f5fc1 100644 --- a/lib/msc_extensions/msc_4075_rtc_notification/models/rtc_notification_content.dart +++ b/lib/msc_extensions/msc_4075_rtc_notification/models/rtc_notification_content.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// MSC4075: MatrixRTC Notification Event (https://github.com/matrix-org/matrix-spec-proposals/pull/4075) library; diff --git a/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_event_extension.dart b/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_event_extension.dart index 46f56b5f0..e85ef10dd 100644 --- a/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_event_extension.dart +++ b/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_event_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// MSC4075: MatrixRTC Notification Event (https://github.com/matrix-org/matrix-spec-proposals/pull/4075) library; diff --git a/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_room_extension.dart b/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_room_extension.dart index 4d442a11b..2529584e9 100644 --- a/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_room_extension.dart +++ b/lib/msc_extensions/msc_4075_rtc_notification/rtc_notification_room_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// MSC4075: MatrixRTC Notification Event (https://github.com/matrix-org/matrix-spec-proposals/pull/4075) library; diff --git a/lib/msc_extensions/msc_4140_delayed_events/api.dart b/lib/msc_extensions/msc_4140_delayed_events/api.dart index 1f0934a46..a5cc77bf0 100644 --- a/lib/msc_extensions/msc_4140_delayed_events/api.dart +++ b/lib/msc_extensions/msc_4140_delayed_events/api.dart @@ -1,2 +1,6 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + export 'msc_4140_delayed_events.dart'; export 'models.dart'; diff --git a/lib/msc_extensions/msc_4140_delayed_events/models.dart b/lib/msc_extensions/msc_4140_delayed_events/models.dart index 374b6babe..b5c2d6cf9 100644 --- a/lib/msc_extensions/msc_4140_delayed_events/models.dart +++ b/lib/msc_extensions/msc_4140_delayed_events/models.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + class ScheduledDelayedEventsResponse { final List scheduledEvents; final String? nextBatch; diff --git a/lib/msc_extensions/msc_4140_delayed_events/msc_4140_delayed_events.dart b/lib/msc_extensions/msc_4140_delayed_events/msc_4140_delayed_events.dart index a924555ae..f16a7bd60 100644 --- a/lib/msc_extensions/msc_4140_delayed_events/msc_4140_delayed_events.dart +++ b/lib/msc_extensions/msc_4140_delayed_events/msc_4140_delayed_events.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'package:http/http.dart' as http; diff --git a/lib/msc_extensions/msc_unpublished_custom_refresh_token_lifetime/msc_unpublished_custom_refresh_token_lifetime.dart b/lib/msc_extensions/msc_unpublished_custom_refresh_token_lifetime/msc_unpublished_custom_refresh_token_lifetime.dart index fd6436ff7..dff91d531 100644 --- a/lib/msc_extensions/msc_unpublished_custom_refresh_token_lifetime/msc_unpublished_custom_refresh_token_lifetime.dart +++ b/lib/msc_extensions/msc_unpublished_custom_refresh_token_lifetime/msc_unpublished_custom_refresh_token_lifetime.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'package:http/http.dart'; diff --git a/lib/src/client.dart b/lib/src/client.dart index 912cafc89..ef7d300ba 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/database/database_api.dart b/lib/src/database/database_api.dart index 208bd351f..83482d005 100644 --- a/lib/src/database/database_api.dart +++ b/lib/src/database/database_api.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:typed_data'; diff --git a/lib/src/database/database_file_storage_io.dart b/lib/src/database/database_file_storage_io.dart index c2427cf15..4ae4cd7a7 100644 --- a/lib/src/database/database_file_storage_io.dart +++ b/lib/src/database/database_file_storage_io.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:io'; import 'dart:typed_data'; diff --git a/lib/src/database/database_file_storage_stub.dart b/lib/src/database/database_file_storage_stub.dart index 3384c3323..6e466716c 100644 --- a/lib/src/database/database_file_storage_stub.dart +++ b/lib/src/database/database_file_storage_stub.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:typed_data'; mixin DatabaseFileStorage { diff --git a/lib/src/database/indexeddb_box.dart b/lib/src/database/indexeddb_box.dart index afce0eeae..a182b58e0 100644 --- a/lib/src/database/indexeddb_box.dart +++ b/lib/src/database/indexeddb_box.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:js_interop'; diff --git a/lib/src/database/matrix_sdk_database.dart b/lib/src/database/matrix_sdk_database.dart index 5c1d4d7eb..d091269ae 100644 --- a/lib/src/database/matrix_sdk_database.dart +++ b/lib/src/database/matrix_sdk_database.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/database/sqflite_box.dart b/lib/src/database/sqflite_box.dart index a0b564fab..89aa56f02 100644 --- a/lib/src/database/sqflite_box.dart +++ b/lib/src/database/sqflite_box.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/database/sqflite_encryption_helper.dart b/lib/src/database/sqflite_encryption_helper.dart index 2269009e6..1f40999d2 100644 --- a/lib/src/database/sqflite_encryption_helper.dart +++ b/lib/src/database/sqflite_encryption_helper.dart @@ -1,2 +1,6 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + export 'sqflite_encryption_helper/stub.dart' if (dart.library.io) 'sqflite_encryption_helper/io.dart'; diff --git a/lib/src/database/sqflite_encryption_helper/io.dart b/lib/src/database/sqflite_encryption_helper/io.dart index 84c80dd78..4e7da66ed 100644 --- a/lib/src/database/sqflite_encryption_helper/io.dart +++ b/lib/src/database/sqflite_encryption_helper/io.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:ffi'; import 'dart:io'; import 'dart:math' show max; diff --git a/lib/src/database/sqflite_encryption_helper/stub.dart b/lib/src/database/sqflite_encryption_helper/stub.dart index f7b481934..f520893c0 100644 --- a/lib/src/database/sqflite_encryption_helper/stub.dart +++ b/lib/src/database/sqflite_encryption_helper/stub.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:sqflite_common/sqlite_api.dart'; /// A helper utility for SQfLite related encryption operations diff --git a/lib/src/database/zone_transaction_mixin.dart b/lib/src/database/zone_transaction_mixin.dart index 4c38f39d1..615f18b06 100644 --- a/lib/src/database/zone_transaction_mixin.dart +++ b/lib/src/database/zone_transaction_mixin.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; // we want transactions to lock, however NOT if transactoins are run inside of each other. diff --git a/lib/src/event.dart b/lib/src/event.dart index a81188940..6199e9142 100644 --- a/lib/src/event.dart +++ b/lib/src/event.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/event_status.dart b/lib/src/event_status.dart index ab06400bf..9bfffa7dc 100644 --- a/lib/src/event_status.dart +++ b/lib/src/event_status.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// Defines event status: /// - removed /// - error: (http request failed) diff --git a/lib/src/models/login_type.dart b/lib/src/models/login_type.dart index be2dfd7f4..72928abdc 100644 --- a/lib/src/models/login_type.dart +++ b/lib/src/models/login_type.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + abstract class LoginType { static const mLoginPassword = 'm.login.password'; static const mLoginToken = 'm.login.token'; diff --git a/lib/src/models/power_level.dart b/lib/src/models/power_level.dart index b794ce7d3..4d9001b1c 100644 --- a/lib/src/models/power_level.dart +++ b/lib/src/models/power_level.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + extension type PowerLevel(int level) { /// 2^53 - 1 from https://spec.matrix.org/v1.15/appendices/#canonical-json static const int ownerPowerLevel = 9007199254740991; diff --git a/lib/src/models/receipts.dart b/lib/src/models/receipts.dart index 01de3b0e1..a30831d42 100644 --- a/lib/src/models/receipts.dart +++ b/lib/src/models/receipts.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021, 2023 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021, 2023 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/models/timeline_chunk.dart b/lib/src/models/timeline_chunk.dart index 7cdaef10f..ee247fa2d 100644 --- a/lib/src/models/timeline_chunk.dart +++ b/lib/src/models/timeline_chunk.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; class TimelineChunk { diff --git a/lib/src/presence.dart b/lib/src/presence.dart index 6d83f705a..ce67b904c 100644 --- a/lib/src/presence.dart +++ b/lib/src/presence.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/room.dart b/lib/src/room.dart index 4a1e8d071..bc353fce2 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/timeline.dart b/lib/src/timeline.dart index 14d97d7e3..c9f4ea600 100644 --- a/lib/src/timeline.dart +++ b/lib/src/timeline.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/user.dart b/lib/src/user.dart index 692a980d5..aeb972c64 100644 --- a/lib/src/user.dart +++ b/lib/src/user.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/cached_profile_information.dart b/lib/src/utils/cached_profile_information.dart index 175dcf2da..f0ce4c139 100644 --- a/lib/src/utils/cached_profile_information.dart +++ b/lib/src/utils/cached_profile_information.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix_api_lite.dart'; class CachedProfileInformation extends ProfileInformation { diff --git a/lib/src/utils/cached_stream_controller.dart b/lib/src/utils/cached_stream_controller.dart index 3c8984095..5031e90e7 100644 --- a/lib/src/utils/cached_stream_controller.dart +++ b/lib/src/utils/cached_stream_controller.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; class CachedStreamController { diff --git a/lib/src/utils/client_init_exception.dart b/lib/src/utils/client_init_exception.dart index da2e90e6f..4ed0ee84e 100644 --- a/lib/src/utils/client_init_exception.dart +++ b/lib/src/utils/client_init_exception.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// Exception thrown on Client initialization. This object might contain /// enough information to restore the session or to decide if you need to /// logout the session or clear the database. diff --git a/lib/src/utils/commands_extension.dart b/lib/src/utils/commands_extension.dart index fb3015477..4a93bc7ea 100644 --- a/lib/src/utils/commands_extension.dart +++ b/lib/src/utils/commands_extension.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/utils/compute_callback.dart b/lib/src/utils/compute_callback.dart index 50495e9be..e845494a2 100644 --- a/lib/src/utils/compute_callback.dart +++ b/lib/src/utils/compute_callback.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; typedef ComputeCallback = Future Function( diff --git a/lib/src/utils/copy_map.dart b/lib/src/utils/copy_map.dart index 51a935a67..7facd4612 100644 --- a/lib/src/utils/copy_map.dart +++ b/lib/src/utils/copy_map.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /// The database always gives back an `_InternalLinkedHasMap`. /// This creates a deep copy of the json and makes sure that the format is /// always `Map`. diff --git a/lib/src/utils/crypto/crypto.dart b/lib/src/utils/crypto/crypto.dart index 9f400c233..9121f40b8 100644 --- a/lib/src/utils/crypto/crypto.dart +++ b/lib/src/utils/crypto/crypto.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:math'; import 'dart:typed_data'; diff --git a/lib/src/utils/crypto/encrypted_file.dart b/lib/src/utils/crypto/encrypted_file.dart index 1f639541e..811284a3c 100644 --- a/lib/src/utils/crypto/encrypted_file.dart +++ b/lib/src/utils/crypto/encrypted_file.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/src/utils/device_keys_list.dart b/lib/src/utils/device_keys_list.dart index f6d09b607..e92ee2aa5 100644 --- a/lib/src/utils/device_keys_list.dart +++ b/lib/src/utils/device_keys_list.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/src/utils/event_localizations.dart b/lib/src/utils/event_localizations.dart index 07ab25ab1..85376ece0 100644 --- a/lib/src/utils/event_localizations.dart +++ b/lib/src/utils/event_localizations.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:collection/collection.dart'; diff --git a/lib/src/utils/event_update.dart b/lib/src/utils/event_update.dart index f410b33a6..4cd50c835 100644 --- a/lib/src/utils/event_update.dart +++ b/lib/src/utils/event_update.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later enum EventUpdateType { /// Newly received events from /sync diff --git a/lib/src/utils/file_send_request_credentials.dart b/lib/src/utils/file_send_request_credentials.dart index 9ac0ed746..f665c8fb6 100644 --- a/lib/src/utils/file_send_request_credentials.dart +++ b/lib/src/utils/file_send_request_credentials.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later class FileSendRequestCredentials { final String? inReplyTo; diff --git a/lib/src/utils/html_to_text.dart b/lib/src/utils/html_to_text.dart index 665a1b097..685145ac6 100644 --- a/lib/src/utils/html_to_text.dart +++ b/lib/src/utils/html_to_text.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:collection/collection.dart'; import 'package:html/dom.dart'; diff --git a/lib/src/utils/http_timeout.dart b/lib/src/utils/http_timeout.dart index ee284502b..3b09d37f2 100644 --- a/lib/src/utils/http_timeout.dart +++ b/lib/src/utils/http_timeout.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; diff --git a/lib/src/utils/image_pack_extension.dart b/lib/src/utils/image_pack_extension.dart index 3873a532d..78fd3ad87 100644 --- a/lib/src/utils/image_pack_extension.dart +++ b/lib/src/utils/image_pack_extension.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:slugify/slugify.dart'; diff --git a/lib/src/utils/markdown.dart b/lib/src/utils/markdown.dart index 40c157197..6ab0546f3 100644 --- a/lib/src/utils/markdown.dart +++ b/lib/src/utils/markdown.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/src/utils/marked_unread.dart b/lib/src/utils/marked_unread.dart index 83fc9f4ed..6ed40ee9c 100644 --- a/lib/src/utils/marked_unread.dart +++ b/lib/src/utils/marked_unread.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/src/utils/matrix_default_localizations.dart b/lib/src/utils/matrix_default_localizations.dart index 93ed4e577..a633ace05 100644 --- a/lib/src/utils/matrix_default_localizations.dart +++ b/lib/src/utils/matrix_default_localizations.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/matrix_file.dart b/lib/src/utils/matrix_file.dart index cce8e82f0..01de697ae 100644 --- a/lib/src/utils/matrix_file.dart +++ b/lib/src/utils/matrix_file.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later /// Workaround until [File] in dart:io and dart:html is unified library; diff --git a/lib/src/utils/matrix_id_string_extension.dart b/lib/src/utils/matrix_id_string_extension.dart index c3f3dac66..91b975803 100644 --- a/lib/src/utils/matrix_id_string_extension.dart +++ b/lib/src/utils/matrix_id_string_extension.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later const Set validSigils = {'@', '!', '#', '\$', '+'}; diff --git a/lib/src/utils/matrix_localizations.dart b/lib/src/utils/matrix_localizations.dart index 4173aad6f..972226982 100644 --- a/lib/src/utils/matrix_localizations.dart +++ b/lib/src/utils/matrix_localizations.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/multilock.dart b/lib/src/utils/multilock.dart index d96551a0a..7f0ec5d3c 100644 --- a/lib/src/utils/multilock.dart +++ b/lib/src/utils/multilock.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; diff --git a/lib/src/utils/multipart_request_progress.dart b/lib/src/utils/multipart_request_progress.dart index 0b05a2300..36a7e00cb 100644 --- a/lib/src/utils/multipart_request_progress.dart +++ b/lib/src/utils/multipart_request_progress.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/src/utils/native_implementations.dart b/lib/src/utils/native_implementations.dart index ba0163e1b..17aa927d0 100644 --- a/lib/src/utils/native_implementations.dart +++ b/lib/src/utils/native_implementations.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:typed_data'; diff --git a/lib/src/utils/push_notification.dart b/lib/src/utils/push_notification.dart index 42e29e0d2..65abd2a34 100644 --- a/lib/src/utils/push_notification.dart +++ b/lib/src/utils/push_notification.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; /// Push Notification object from https://spec.matrix.org/v1.2/push-gateway-api/ diff --git a/lib/src/utils/pushrule_evaluator.dart b/lib/src/utils/pushrule_evaluator.dart index 24313c61a..81a6882e4 100644 --- a/lib/src/utils/pushrule_evaluator.dart +++ b/lib/src/utils/pushrule_evaluator.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later // Helper for fast evaluation of push conditions on a bunch of events diff --git a/lib/src/utils/queued_to_device_event.dart b/lib/src/utils/queued_to_device_event.dart index 71657aec6..5efbe6c73 100644 --- a/lib/src/utils/queued_to_device_event.dart +++ b/lib/src/utils/queued_to_device_event.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/src/utils/request_and_cache.dart b/lib/src/utils/request_and_cache.dart index bcf7621b7..bd312a3ef 100644 --- a/lib/src/utils/request_and_cache.dart +++ b/lib/src/utils/request_and_cache.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart' hide Result; extension RequestAndCache on Client { diff --git a/lib/src/utils/room_enums.dart b/lib/src/utils/room_enums.dart index a38b8fad8..c2e0e8c34 100644 --- a/lib/src/utils/room_enums.dart +++ b/lib/src/utils/room_enums.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + enum PushRuleState { notify, mentionsOnly, diff --git a/lib/src/utils/room_member_change_type.dart b/lib/src/utils/room_member_change_type.dart index 4af4cd109..2864cf22f 100644 --- a/lib/src/utils/room_member_change_type.dart +++ b/lib/src/utils/room_member_change_type.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; /// The kind of what has changed with this m.room.member event to have a diff --git a/lib/src/utils/run_benchmarked.dart b/lib/src/utils/run_benchmarked.dart index 98a696fea..0fa053e1d 100644 --- a/lib/src/utils/run_benchmarked.dart +++ b/lib/src/utils/run_benchmarked.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/run_in_root.dart b/lib/src/utils/run_in_root.dart index c19eb6695..c3abb217b 100644 --- a/lib/src/utils/run_in_root.dart +++ b/lib/src/utils/run_in_root.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; diff --git a/lib/src/utils/space_child.dart b/lib/src/utils/space_child.dart index a4bd62400..ae4c3918d 100644 --- a/lib/src/utils/space_child.dart +++ b/lib/src/utils/space_child.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix_api_lite.dart'; diff --git a/lib/src/utils/sync_update_extension.dart b/lib/src/utils/sync_update_extension.dart index c330697a9..23304f879 100644 --- a/lib/src/utils/sync_update_extension.dart +++ b/lib/src/utils/sync_update_extension.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/sync_update_item_count.dart b/lib/src/utils/sync_update_item_count.dart index d4da939f1..cb9dd0373 100644 --- a/lib/src/utils/sync_update_item_count.dart +++ b/lib/src/utils/sync_update_item_count.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; extension SyncUpdateItemCount on SyncUpdate { diff --git a/lib/src/utils/to_device_event.dart b/lib/src/utils/to_device_event.dart index aa8b65dc1..4452f0de8 100644 --- a/lib/src/utils/to_device_event.dart +++ b/lib/src/utils/to_device_event.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/try_get_push_rule.dart b/lib/src/utils/try_get_push_rule.dart index 23b4fa688..270bd2ab9 100644 --- a/lib/src/utils/try_get_push_rule.dart +++ b/lib/src/utils/try_get_push_rule.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; extension TryGetPushRule on PushRuleSet { diff --git a/lib/src/utils/uia_request.dart b/lib/src/utils/uia_request.dart index 018ed400b..e4160f90f 100644 --- a/lib/src/utils/uia_request.dart +++ b/lib/src/utils/uia_request.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/uri_extension.dart b/lib/src/utils/uri_extension.dart index 95b9fa601..d1cfc309c 100644 --- a/lib/src/utils/uri_extension.dart +++ b/lib/src/utils/uri_extension.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:core'; diff --git a/lib/src/utils/versions_comparator.dart b/lib/src/utils/versions_comparator.dart index cd7511f19..788b9bd8a 100644 --- a/lib/src/utils/versions_comparator.dart +++ b/lib/src/utils/versions_comparator.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix_api_lite/utils/logs.dart'; bool isVersionGreaterThanOrEqualTo(String version, String target) { diff --git a/lib/src/utils/web_worker/native_implementations_web_worker.dart b/lib/src/utils/web_worker/native_implementations_web_worker.dart index 4c490abe8..f2d394eb7 100644 --- a/lib/src/utils/web_worker/native_implementations_web_worker.dart +++ b/lib/src/utils/web_worker/native_implementations_web_worker.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:collection'; import 'dart:js_interop'; diff --git a/lib/src/utils/web_worker/native_implementations_web_worker_stub.dart b/lib/src/utils/web_worker/native_implementations_web_worker_stub.dart index 2fb87c1af..0049b7407 100644 --- a/lib/src/utils/web_worker/native_implementations_web_worker_stub.dart +++ b/lib/src/utils/web_worker/native_implementations_web_worker_stub.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:matrix/matrix.dart'; diff --git a/lib/src/utils/web_worker/web_worker.dart b/lib/src/utils/web_worker/web_worker.dart index 9188dfdd5..fb5d92694 100644 --- a/lib/src/utils/web_worker/web_worker.dart +++ b/lib/src/utils/web_worker/web_worker.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // ignore_for_file: avoid_print import 'dart:async'; diff --git a/lib/src/utils/web_worker/web_worker_stub.dart b/lib/src/utils/web_worker/web_worker_stub.dart index ad7c3af18..684fe8ff6 100644 --- a/lib/src/utils/web_worker/web_worker_stub.dart +++ b/lib/src/utils/web_worker/web_worker_stub.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; /// diff --git a/lib/src/voip/README.md b/lib/src/voip/README.md index fd2eb358b..a8f9126be 100644 --- a/lib/src/voip/README.md +++ b/lib/src/voip/README.md @@ -1,3 +1,9 @@ + + # Famedly Calls Supports diff --git a/lib/src/voip/backend/call_backend_model.dart b/lib/src/voip/backend/call_backend_model.dart index b7457198f..70f553326 100644 --- a/lib/src/voip/backend/call_backend_model.dart +++ b/lib/src/voip/backend/call_backend_model.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:matrix/matrix.dart'; diff --git a/lib/src/voip/backend/livekit_backend.dart b/lib/src/voip/backend/livekit_backend.dart index b4ccc5a55..df01b5861 100644 --- a/lib/src/voip/backend/livekit_backend.dart +++ b/lib/src/voip/backend/livekit_backend.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/src/voip/backend/mesh_backend.dart b/lib/src/voip/backend/mesh_backend.dart index 6bac2da46..c601b39e7 100644 --- a/lib/src/voip/backend/mesh_backend.dart +++ b/lib/src/voip/backend/mesh_backend.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:collection/collection.dart'; diff --git a/lib/src/voip/call_session.dart b/lib/src/voip/call_session.dart index becb7b721..17243a156 100644 --- a/lib/src/voip/call_session.dart +++ b/lib/src/voip/call_session.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:core'; diff --git a/lib/src/voip/group_call_session.dart b/lib/src/voip/group_call_session.dart index 4669a598d..86efbb7a5 100644 --- a/lib/src/voip/group_call_session.dart +++ b/lib/src/voip/group_call_session.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General License for more details. - * - * You should have received a copy of the GNU Affero General License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:core'; diff --git a/lib/src/voip/images/famedly-1v1-call.drawio.png.license b/lib/src/voip/images/famedly-1v1-call.drawio.png.license new file mode 100644 index 000000000..42590f5f0 --- /dev/null +++ b/lib/src/voip/images/famedly-1v1-call.drawio.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2019-Present Famedly GmbH + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/lib/src/voip/models/call_events.dart b/lib/src/voip/models/call_events.dart index ffa298c9e..8f12b5cf6 100644 --- a/lib/src/voip/models/call_events.dart +++ b/lib/src/voip/models/call_events.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later class CallReplacesTarget { String? id; diff --git a/lib/src/voip/models/call_membership.dart b/lib/src/voip/models/call_membership.dart index 515c17121..2ca39b37b 100644 --- a/lib/src/voip/models/call_membership.dart +++ b/lib/src/voip/models/call_membership.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; class FamedlyCallMemberEvent { diff --git a/lib/src/voip/models/call_options.dart b/lib/src/voip/models/call_options.dart index a2a59edde..d17291b0e 100644 --- a/lib/src/voip/models/call_options.dart +++ b/lib/src/voip/models/call_options.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; /// Initialization parameters of the call session. diff --git a/lib/src/voip/models/call_participant.dart b/lib/src/voip/models/call_participant.dart index c7e17f5fa..dd1537899 100644 --- a/lib/src/voip/models/call_participant.dart +++ b/lib/src/voip/models/call_participant.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; class CallParticipant { diff --git a/lib/src/voip/models/call_reaction_payload.dart b/lib/src/voip/models/call_reaction_payload.dart index 2c8a6def7..c71053fcf 100644 --- a/lib/src/voip/models/call_reaction_payload.dart +++ b/lib/src/voip/models/call_reaction_payload.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + final class ReactionPayload { final String key; final bool isEphemeral; diff --git a/lib/src/voip/models/delayed_event_canceller.dart b/lib/src/voip/models/delayed_event_canceller.dart index e09e7293f..d045f14d7 100644 --- a/lib/src/voip/models/delayed_event_canceller.dart +++ b/lib/src/voip/models/delayed_event_canceller.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // A model which holds the delayed event and it's timer import 'dart:async'; diff --git a/lib/src/voip/models/key_provider.dart b/lib/src/voip/models/key_provider.dart index 4b40b875e..3e749d80a 100644 --- a/lib/src/voip/models/key_provider.dart +++ b/lib/src/voip/models/key_provider.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:typed_data'; import 'package:matrix/matrix.dart'; diff --git a/lib/src/voip/models/matrixrtc_call_event.dart b/lib/src/voip/models/matrixrtc_call_event.dart index 527c27795..4ae32676a 100644 --- a/lib/src/voip/models/matrixrtc_call_event.dart +++ b/lib/src/voip/models/matrixrtc_call_event.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; /// UNSTABLE API WARNING diff --git a/lib/src/voip/models/voip_id.dart b/lib/src/voip/models/voip_id.dart index 4fa661db7..ba228988c 100644 --- a/lib/src/voip/models/voip_id.dart +++ b/lib/src/voip/models/voip_id.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + class VoipId { final String roomId; final String callId; diff --git a/lib/src/voip/models/webrtc_delegate.dart b/lib/src/voip/models/webrtc_delegate.dart index 9add8292c..e96bb7662 100644 --- a/lib/src/voip/models/webrtc_delegate.dart +++ b/lib/src/voip/models/webrtc_delegate.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:webrtc_interface/webrtc_interface.dart'; import 'package:matrix/matrix.dart'; diff --git a/lib/src/voip/utils/conn_tester.dart b/lib/src/voip/utils/conn_tester.dart index 97a1ec613..8deaa18f6 100644 --- a/lib/src/voip/utils/conn_tester.dart +++ b/lib/src/voip/utils/conn_tester.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:webrtc_interface/webrtc_interface.dart'; diff --git a/lib/src/voip/utils/famedly_call_extension.dart b/lib/src/voip/utils/famedly_call_extension.dart index 49e94f580..bf68addec 100644 --- a/lib/src/voip/utils/famedly_call_extension.dart +++ b/lib/src/voip/utils/famedly_call_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:collection/collection.dart'; diff --git a/lib/src/voip/utils/rtc_candidate_extension.dart b/lib/src/voip/utils/rtc_candidate_extension.dart index 8c62c8c84..739d0ce08 100644 --- a/lib/src/voip/utils/rtc_candidate_extension.dart +++ b/lib/src/voip/utils/rtc_candidate_extension.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:webrtc_interface/webrtc_interface.dart'; extension RTCIceCandidateExt on RTCIceCandidate { diff --git a/lib/src/voip/utils/stream_helper.dart b/lib/src/voip/utils/stream_helper.dart index 7f16907b1..826370182 100644 --- a/lib/src/voip/utils/stream_helper.dart +++ b/lib/src/voip/utils/stream_helper.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:collection/collection.dart'; import 'package:random_string/random_string.dart'; import 'package:webrtc_interface/webrtc_interface.dart'; diff --git a/lib/src/voip/utils/types.dart b/lib/src/voip/utils/types.dart index f12ff6578..30372d000 100644 --- a/lib/src/voip/utils/types.dart +++ b/lib/src/voip/utils/types.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // ignore_for_file: constant_identifier_names enum EncryptionKeyTypes { remote, local } diff --git a/lib/src/voip/utils/user_media_constraints.dart b/lib/src/voip/utils/user_media_constraints.dart index 1d58144ca..60e4a6bb4 100644 --- a/lib/src/voip/utils/user_media_constraints.dart +++ b/lib/src/voip/utils/user_media_constraints.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + class UserMediaConstraints { static const Map micMediaConstraints = { 'echoCancellation': true, diff --git a/lib/src/voip/utils/voip_constants.dart b/lib/src/voip/utils/voip_constants.dart index 0fc881e0e..a94185104 100644 --- a/lib/src/voip/utils/voip_constants.dart +++ b/lib/src/voip/utils/voip_constants.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; /// https://github.com/matrix-org/matrix-doc/pull/2746 diff --git a/lib/src/voip/utils/wrapped_media_stream.dart b/lib/src/voip/utils/wrapped_media_stream.dart index 836cb6903..ecef57e42 100644 --- a/lib/src/voip/utils/wrapped_media_stream.dart +++ b/lib/src/voip/utils/wrapped_media_stream.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:webrtc_interface/webrtc_interface.dart'; import 'package:matrix/matrix.dart'; diff --git a/lib/src/voip/voip.dart b/lib/src/voip/voip.dart index 19187f0a1..cf03900c3 100644 --- a/lib/src/voip/voip.dart +++ b/lib/src/voip/voip.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:convert'; import 'dart:core'; diff --git a/pubspec.yaml b/pubspec.yaml index 5c113ae83..a74e4c33e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: matrix description: Matrix Dart SDK version: 7.1.1 diff --git a/scripts/add_license_headers.sh b/scripts/add_license_headers.sh new file mode 100755 index 000000000..cb37b5753 --- /dev/null +++ b/scripts/add_license_headers.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +find ./ \( -name "*.dart" -o -name "*.sh" -o -name "*.yaml" -o -name "*.yml" -o -name "*.md" -o -name "*.png" \) -not -path "lib/matrix_api_lite/generated/*" -exec reuse annotate \ + --copyright="Famedly GmbH" \ + --license="AGPL-3.0-or-later" \ + --year="2019-Present" \ + --merge-copyrights \ + {} + \ No newline at end of file diff --git a/scripts/extract_changelog.sh b/scripts/extract_changelog.sh index f73f9bd0d..e20b75ccc 100755 --- a/scripts/extract_changelog.sh +++ b/scripts/extract_changelog.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + echo "$(awk -v ver=$1 ' /^(##|###) \[?[0-9]+.[0-9]+.[0-9]+/ { if (p) { exit }; diff --git a/scripts/integration-create-environment-variables.sh b/scripts/integration-create-environment-variables.sh index e9ca0d3ad..7d4057da1 100755 --- a/scripts/integration-create-environment-variables.sh +++ b/scripts/integration-create-environment-variables.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + export USER1_NAME="alice" export USER1_PW="AliceInWonderland" export USER2_NAME="bob" diff --git a/scripts/integration-prepare-homeserver.sh b/scripts/integration-prepare-homeserver.sh index d0e75cd58..10e4b9f39 100755 --- a/scripts/integration-prepare-homeserver.sh +++ b/scripts/integration-prepare-homeserver.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + if [ -z $HOMESERVER ]; then echo "Please ensure HOMESERVER environment variable is set to the IP or hostname of the homeserver." exit 1 diff --git a/scripts/integration-server-conduit.sh b/scripts/integration-server-conduit.sh index 846adafcd..7a32896e4 100755 --- a/scripts/integration-server-conduit.sh +++ b/scripts/integration-server-conduit.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + docker run -d --rm \ -e CONDUIT_CONFIG="" \ -e CONDUIT_SERVER_NAME="famedlysdk.test" \ diff --git a/scripts/integration-server-dendrite.sh b/scripts/integration-server-dendrite.sh index 58282968a..1c93be3bd 100755 --- a/scripts/integration-server-dendrite.sh +++ b/scripts/integration-server-dendrite.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # creating integration test SSL certificates docker run --rm --entrypoint="" \ --volume="$(pwd)/test_driver/dendrite/data":/etc/dendrite:rw \ diff --git a/scripts/integration-server-synapse.sh b/scripts/integration-server-synapse.sh index ce8839514..5ea7bdecc 100755 --- a/scripts/integration-server-synapse.sh +++ b/scripts/integration-server-synapse.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + sudo chown -R 991:991 test_driver/synapse/data docker run -d --name synapse \ diff --git a/scripts/prepare_vodozemac.sh b/scripts/prepare_vodozemac.sh index 00bc4df05..065e0bc66 100755 --- a/scripts/prepare_vodozemac.sh +++ b/scripts/prepare_vodozemac.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + rm -rf rust version=$(yq ".dependencies.vodozemac" < pubspec.yaml) version=$(expr "$version" : '\^*\(.*\)') diff --git a/scripts/test.sh b/scripts/test.sh index 84207a80d..fd8b12fdf 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,5 +1,9 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + thread_count=$(getconf _NPROCESSORS_ONLN) if [ -n "$NO_OLM" ]; then diff --git a/test/box_test.dart b/test/box_test.dart index 87d78a1d1..e9af3c866 100644 --- a/test/box_test.dart +++ b/test/box_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:sqflite_common_ffi/sqflite_ffi.dart'; import 'package:test/test.dart'; diff --git a/test/calls_test.dart b/test/calls_test.dart index 7e692b53d..330842010 100644 --- a/test/calls_test.dart +++ b/test/calls_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:test/test.dart'; diff --git a/test/canonical_json_test.dart b/test/canonical_json_test.dart index f8efb1513..bcfa7b387 100644 --- a/test/canonical_json_test.dart +++ b/test/canonical_json_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:canonical_json/canonical_json.dart'; import 'package:test/test.dart'; diff --git a/test/client_test.dart b/test/client_test.dart index 5586b7a40..93fbb11fb 100644 --- a/test/client_test.dart +++ b/test/client_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/test/commands_test.dart b/test/commands_test.dart index 6efc34e6a..2f8d02d3b 100644 --- a/test/commands_test.dart +++ b/test/commands_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:typed_data'; diff --git a/test/database_api_test.dart b/test/database_api_test.dart index 7615782e1..e8c7038f2 100644 --- a/test/database_api_test.dart +++ b/test/database_api_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/test/device_keys_list_test.dart b/test/device_keys_list_test.dart index b00cf0cbd..ef0f71084 100644 --- a/test/device_keys_list_test.dart +++ b/test/device_keys_list_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/test/encryption/bootstrap_test.dart b/test/encryption/bootstrap_test.dart index cd1005f56..370cda356 100644 --- a/test/encryption/bootstrap_test.dart +++ b/test/encryption/bootstrap_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/test/encryption/cross_signing_test.dart b/test/encryption/cross_signing_test.dart index dc78db98a..a14b28b59 100644 --- a/test/encryption/cross_signing_test.dart +++ b/test/encryption/cross_signing_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/test/encryption/crypto_setup_test.dart b/test/encryption/crypto_setup_test.dart index 535e02b6b..2868654e8 100644 --- a/test/encryption/crypto_setup_test.dart +++ b/test/encryption/crypto_setup_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; import 'package:vodozemac/vodozemac.dart' as vod; diff --git a/test/encryption/encrypt_decrypt_room_message_test.dart b/test/encryption/encrypt_decrypt_room_message_test.dart index 97272fab3..a0c04de54 100644 --- a/test/encryption/encrypt_decrypt_room_message_test.dart +++ b/test/encryption/encrypt_decrypt_room_message_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; import 'package:vodozemac/vodozemac.dart' as vod; diff --git a/test/encryption/encrypt_decrypt_to_device_test.dart b/test/encryption/encrypt_decrypt_to_device_test.dart index 67a215338..971a4e350 100644 --- a/test/encryption/encrypt_decrypt_to_device_test.dart +++ b/test/encryption/encrypt_decrypt_to_device_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; import 'package:vodozemac/vodozemac.dart' as vod; diff --git a/test/encryption/key_manager_test.dart b/test/encryption/key_manager_test.dart index e1067e9ba..979404dd7 100644 --- a/test/encryption/key_manager_test.dart +++ b/test/encryption/key_manager_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/test/encryption/key_request_test.dart b/test/encryption/key_request_test.dart index ff6dc43e4..cf4e53dbc 100644 --- a/test/encryption/key_request_test.dart +++ b/test/encryption/key_request_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/test/encryption/key_verification_test.dart b/test/encryption/key_verification_test.dart index 67f86f5fa..e26849793 100644 --- a/test/encryption/key_verification_test.dart +++ b/test/encryption/key_verification_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/test/encryption/olm_manager_test.dart b/test/encryption/olm_manager_test.dart index 9981f8c7c..52eea83dc 100644 --- a/test/encryption/olm_manager_test.dart +++ b/test/encryption/olm_manager_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/test/encryption/online_key_backup_test.dart b/test/encryption/online_key_backup_test.dart index c8f8f560f..e5fe3c129 100644 --- a/test/encryption/online_key_backup_test.dart +++ b/test/encryption/online_key_backup_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/test/encryption/qr_verification_self_test.dart b/test/encryption/qr_verification_self_test.dart index e441ec892..49dcc6b82 100644 --- a/test/encryption/qr_verification_self_test.dart +++ b/test/encryption/qr_verification_self_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:typed_data'; diff --git a/test/encryption/ssss_test.dart b/test/encryption/ssss_test.dart index f493ce046..b0c89df25 100644 --- a/test/encryption/ssss_test.dart +++ b/test/encryption/ssss_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:math'; diff --git a/test/encryption/utils_test.dart b/test/encryption/utils_test.dart index 44f7f0327..e9966188e 100644 --- a/test/encryption/utils_test.dart +++ b/test/encryption/utils_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2022 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2022 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:typed_data'; diff --git a/test/event_test.dart b/test/event_test.dart index 197b4e458..90a1096b2 100644 --- a/test/event_test.dart +++ b/test/event_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:typed_data'; diff --git a/test/event_timeout_test.dart b/test/event_timeout_test.dart index 629d210b9..7fee1f27f 100644 --- a/test/event_timeout_test.dart +++ b/test/event_timeout_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'dart:io'; diff --git a/test/fake_client.dart b/test/fake_client.dart index b7a942776..0c334896c 100644 --- a/test/fake_client.dart +++ b/test/fake_client.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:vodozemac/vodozemac.dart' as vod; diff --git a/test/fake_database.dart b/test/fake_database.dart index 474847913..15024b3d1 100644 --- a/test/fake_database.dart +++ b/test/fake_database.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:io'; diff --git a/test/html_to_text_test.dart b/test/html_to_text_test.dart index 886c85755..6be9acc0e 100644 --- a/test/html_to_text_test.dart +++ b/test/html_to_text_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/image_pack_test.dart b/test/image_pack_test.dart index 08a2d2167..83079cbc3 100644 --- a/test/image_pack_test.dart +++ b/test/image_pack_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/markdown_test.dart b/test/markdown_test.dart index fd8829e18..80759562e 100644 --- a/test/markdown_test.dart +++ b/test/markdown_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/matrix_api/map_copy_extension_test.dart b/test/matrix_api/map_copy_extension_test.dart index 19876db93..318a6b782 100644 --- a/test/matrix_api/map_copy_extension_test.dart +++ b/test/matrix_api/map_copy_extension_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/matrix_api/try_get_map_extension_test.dart b/test/matrix_api/try_get_map_extension_test.dart index 0c2cd7e63..2ad724f11 100644 --- a/test/matrix_api/try_get_map_extension_test.dart +++ b/test/matrix_api/try_get_map_extension_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/matrix_database_test.dart b/test/matrix_database_test.dart index 49b966f9e..8093c889f 100644 --- a/test/matrix_database_test.dart +++ b/test/matrix_database_test.dart @@ -1,21 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/matrix_exception_test.dart b/test/matrix_exception_test.dart index b094b288c..952cdfb38 100644 --- a/test/matrix_exception_test.dart +++ b/test/matrix_exception_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:http/http.dart'; import 'package:test/test.dart'; diff --git a/test/matrix_file_test.dart b/test/matrix_file_test.dart index 3ea86f23d..85ff0a813 100644 --- a/test/matrix_file_test.dart +++ b/test/matrix_file_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:typed_data'; diff --git a/test/matrix_id_string_extension_test.dart b/test/matrix_id_string_extension_test.dart index 67f6801f8..c4e51a0fa 100644 --- a/test/matrix_id_string_extension_test.dart +++ b/test/matrix_id_string_extension_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/matrix_localizations_test.dart b/test/matrix_localizations_test.dart index 9a0049803..b28b22c2d 100644 --- a/test/matrix_localizations_test.dart +++ b/test/matrix_localizations_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/matrixrtc_event_stream_test.dart b/test/matrixrtc_event_stream_test.dart index ca9ed69e9..bea465892 100644 --- a/test/matrixrtc_event_stream_test.dart +++ b/test/matrixrtc_event_stream_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:test/test.dart'; diff --git a/test/msc_extensions/msc_3814_dehydrated_devices_test.dart b/test/msc_extensions/msc_3814_dehydrated_devices_test.dart index a13049559..90bff3b1c 100644 --- a/test/msc_extensions/msc_3814_dehydrated_devices_test.dart +++ b/test/msc_extensions/msc_3814_dehydrated_devices_test.dart @@ -1,25 +1,6 @@ -/* MIT License -* -* Copyright (C) 2019, 2020, 2021, 2022 Famedly GmbH -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in all -* copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/msc_extensions/msc_3881_polls_test.dart b/test/msc_extensions/msc_3881_polls_test.dart index 370ed8d8d..1f79e438c 100644 --- a/test/msc_extensions/msc_3881_polls_test.dart +++ b/test/msc_extensions/msc_3881_polls_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:test/test.dart'; diff --git a/test/msc_extensions/msc_4075_rtc_notification_test.dart b/test/msc_extensions/msc_4075_rtc_notification_test.dart index fcbdcba0e..dba24e220 100644 --- a/test/msc_extensions/msc_4075_rtc_notification_test.dart +++ b/test/msc_extensions/msc_4075_rtc_notification_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'package:test/test.dart'; diff --git a/test/msc_extensions/mxc_3861_oidc_test.dart b/test/msc_extensions/mxc_3861_oidc_test.dart index f72e92fad..701241aa3 100644 --- a/test/msc_extensions/mxc_3861_oidc_test.dart +++ b/test/msc_extensions/mxc_3861_oidc_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:test/test.dart'; import 'package:vodozemac/vodozemac.dart' as vod; diff --git a/test/msc_extensions/timeline_export_test.dart b/test/msc_extensions/timeline_export_test.dart index b3acb9f06..53a805714 100644 --- a/test/msc_extensions/timeline_export_test.dart +++ b/test/msc_extensions/timeline_export_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:test/test.dart'; import 'package:matrix/matrix.dart'; diff --git a/test/multilock_test.dart b/test/multilock_test.dart index d973e87ff..ffdb0d962 100644 --- a/test/multilock_test.dart +++ b/test/multilock_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2021 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/mxc_uri_extension_test.dart b/test/mxc_uri_extension_test.dart index 8609c22e0..b7f2db99c 100644 --- a/test/mxc_uri_extension_test.dart +++ b/test/mxc_uri_extension_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/push_notification.dart b/test/push_notification.dart index d13b28991..7097b1ad4 100644 --- a/test/push_notification.dart +++ b/test/push_notification.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:convert'; import 'package:test/test.dart'; diff --git a/test/pushevaluator_test.dart b/test/pushevaluator_test.dart index f465a148d..7caa0fa25 100644 --- a/test/pushevaluator_test.dart +++ b/test/pushevaluator_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/test/room_archived_test.dart b/test/room_archived_test.dart index 8fb10a0f4..1e173ed9c 100644 --- a/test/room_archived_test.dart +++ b/test/room_archived_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2022 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2022 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; diff --git a/test/room_test.dart b/test/room_test.dart index c2a38e32e..3c43459d0 100644 --- a/test/room_test.dart +++ b/test/room_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/test/sync_filter_test.dart b/test/sync_filter_test.dart index a2faea49a..30f95a141 100644 --- a/test/sync_filter_test.dart +++ b/test/sync_filter_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; diff --git a/test/timeline_context_test.dart b/test/timeline_context_test.dart index 19a5a4c57..9293bb7e2 100644 --- a/test/timeline_context_test.dart +++ b/test/timeline_context_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; diff --git a/test/timeline_test.dart b/test/timeline_test.dart index 328f32041..1f4787fef 100644 --- a/test/timeline_test.dart +++ b/test/timeline_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:math'; diff --git a/test/uia_test.dart b/test/uia_test.dart index fd733419d..2fbd07211 100644 --- a/test/uia_test.dart +++ b/test/uia_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; diff --git a/test/unexpected_response_test.dart b/test/unexpected_response_test.dart index 573e8d0b1..2e8b6d9ac 100644 --- a/test/unexpected_response_test.dart +++ b/test/unexpected_response_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019-2026 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-2026, 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'dart:typed_data'; diff --git a/test/user_test.dart b/test/user_test.dart index 72a98d75f..3b29364d3 100644 --- a/test/user_test.dart +++ b/test/user_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019, 2020 Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:test/test.dart'; import 'package:vodozemac/vodozemac.dart' as vod; diff --git a/test/voip_reactions_test.dart b/test/voip_reactions_test.dart index bc7a38d2b..ee1df085e 100644 --- a/test/voip_reactions_test.dart +++ b/test/voip_reactions_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:async'; import 'package:test/test.dart'; diff --git a/test/webrtc_stub.dart b/test/webrtc_stub.dart index 0744d6147..734351d9e 100644 --- a/test/webrtc_stub.dart +++ b/test/webrtc_stub.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'dart:typed_data'; import 'package:webrtc_interface/webrtc_interface.dart'; diff --git a/test_driver/dendrite/data/dendrite.yaml b/test_driver/dendrite/data/dendrite.yaml index 06722f3c0..9aadd7305 100644 --- a/test_driver/dendrite/data/dendrite.yaml +++ b/test_driver/dendrite/data/dendrite.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # This is the Dendrite configuration file. # # The configuration is split up into sections - each Dendrite component has a diff --git a/test_driver/matrixsdk_test.dart b/test_driver/matrixsdk_test.dart index 17888554e..9fd61d705 100644 --- a/test_driver/matrixsdk_test.dart +++ b/test_driver/matrixsdk_test.dart @@ -1,20 +1,6 @@ -/* - * Famedly Matrix SDK - * Copyright (C) 2019, 2020, 2021 Famedly GmbH - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:io'; diff --git a/test_driver/synapse/data/homeserver.yaml b/test_driver/synapse/data/homeserver.yaml index bfd34b8a1..ff38471e5 100755 --- a/test_driver/synapse/data/homeserver.yaml +++ b/test_driver/synapse/data/homeserver.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # Configuration file for Synapse. # # This is a YAML file: see [1] for a quick introduction. Note in particular diff --git a/test_driver/test_config.dart b/test_driver/test_config.dart index 21ace7274..36be4151a 100644 --- a/test_driver/test_config.dart +++ b/test_driver/test_config.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + abstract class Users { const Users._(); diff --git a/web_test/README.md b/web_test/README.md index c1528cc7a..10e9470fe 100644 --- a/web_test/README.md +++ b/web_test/README.md @@ -1 +1,7 @@ + + This is a bare-bone sample project in order to ensure webdev can compile the SDK. \ No newline at end of file diff --git a/web_test/pubspec.yaml b/web_test/pubspec.yaml index af7b30908..f75e4cc25 100644 --- a/web_test/pubspec.yaml +++ b/web_test/pubspec.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-Present Famedly GmbH +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: web_test description: A test project for the webdev compiler. version: 1.0.0 diff --git a/web_test/web/main.dart b/web_test/web/main.dart index d4ed65e07..e6beff712 100644 --- a/web_test/web/main.dart +++ b/web_test/web/main.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019-Present Famedly GmbH +// +// SPDX-License-Identifier: AGPL-3.0-or-later + import 'package:matrix/matrix.dart'; Future main() async {