diff --git a/library/attachment-viewer/build.gradle b/library/attachment-viewer/build.gradle index 812ea42f67..d581e97452 100644 --- a/library/attachment-viewer/build.gradle +++ b/library/attachment-viewer/build.gradle @@ -1,17 +1,8 @@ /* - * Copyright (c) 2020 New Vector Ltd + * Copyright 2020-2024 New Vector Ltd. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: AGPL-3.0-only + * Please see LICENSE in the repository root for full details. */ apply plugin: 'com.android.library' diff --git a/library/core-utils/build.gradle b/library/core-utils/build.gradle index cf9f5fbe37..9a9606f455 100644 --- a/library/core-utils/build.gradle +++ b/library/core-utils/build.gradle @@ -1,17 +1,8 @@ /* - * Copyright (c) 2021 New Vector Ltd + * Copyright 2021-2024 New Vector Ltd. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: AGPL-3.0-only + * Please see LICENSE in the repository root for full details. */ plugins { diff --git a/library/multipicker/build.gradle b/library/multipicker/build.gradle index b4d682ff7e..4d328828cc 100644 --- a/library/multipicker/build.gradle +++ b/library/multipicker/build.gradle @@ -1,17 +1,8 @@ /* - * Copyright (c) 2020 New Vector Ltd + * Copyright 2020-2024 New Vector Ltd. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: AGPL-3.0-only + * Please see LICENSE in the repository root for full details. */ apply plugin: 'com.android.library' diff --git a/library/ui-styles/build.gradle b/library/ui-styles/build.gradle index fde78695a9..fb2e72cb4d 100644 --- a/library/ui-styles/build.gradle +++ b/library/ui-styles/build.gradle @@ -1,17 +1,8 @@ /* - * Copyright (c) 2021 New Vector Ltd + * Copyright 2021-2024 New Vector Ltd. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: AGPL-3.0-only + * Please see LICENSE in the repository root for full details. */ plugins { diff --git a/tools/benchmark/benchmark.profile b/tools/benchmark/benchmark.profile index ae27dc9f59..1518ca7e13 100644 --- a/tools/benchmark/benchmark.profile +++ b/tools/benchmark/benchmark.profile @@ -1,18 +1,7 @@ +# Copyright 2021-2024 New Vector Ltd. # -# Copyright 2021 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. clean_assemble { tasks = ["clean", ":vector:assembleGPlayDebug"] diff --git a/tools/benchmark/run_benchmark.sh b/tools/benchmark/run_benchmark.sh index b6c81ee513..8f1b56fda9 100755 --- a/tools/benchmark/run_benchmark.sh +++ b/tools/benchmark/run_benchmark.sh @@ -1,20 +1,9 @@ #!/usr/bin/env bash +# Copyright 2021-2024 New Vector Ltd. # -# Copyright 2021 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. if ! command -v gradle-profiler &> /dev/null then diff --git a/tools/check/check_code_quality.sh b/tools/check/check_code_quality.sh index b9cbfa4cac..05ed264361 100755 --- a/tools/check/check_code_quality.sh +++ b/tools/check/check_code_quality.sh @@ -1,20 +1,9 @@ #!/usr/bin/env bash +# Copyright 2019-2024 New Vector Ltd. # -# Copyright 2019 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. ####################################################################################################################### # Check drawable quantity diff --git a/tools/check/forbidden_strings_in_code.txt b/tools/check/forbidden_strings_in_code.txt index b4d7ebae1f..b77420db09 100755 --- a/tools/check/forbidden_strings_in_code.txt +++ b/tools/check/forbidden_strings_in_code.txt @@ -1,18 +1,7 @@ +# Copyright 2018-2024 New Vector Ltd. # -# Copyright 2018 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. # This file list String which are not allowed in source code. # Use Perl regex to write forbidden strings diff --git a/tools/check/forbidden_strings_in_code_app.txt b/tools/check/forbidden_strings_in_code_app.txt index 0715030e8f..2d880f5c65 100644 --- a/tools/check/forbidden_strings_in_code_app.txt +++ b/tools/check/forbidden_strings_in_code_app.txt @@ -1,18 +1,7 @@ +# Copyright 2022-2024 New Vector Ltd. # -# Copyright 2022 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. ### You should not use code from the SDK package `org.matrix.android.sdk.internal`. Either move the code to the package `org.matrix.android.sdk.api`, or add a proper API to access this code, and add `internal` keyword SDK side. import org.matrix.android.sdk.internal diff --git a/tools/check/forbidden_strings_in_code_sdk.txt b/tools/check/forbidden_strings_in_code_sdk.txt index 270efef459..fffd1da72f 100644 --- a/tools/check/forbidden_strings_in_code_sdk.txt +++ b/tools/check/forbidden_strings_in_code_sdk.txt @@ -1,18 +1,7 @@ +# Copyright 2020-2024 New Vector Ltd. # -# Copyright 2020 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. # This file list String which are not allowed in source code. # Use Perl regex to write forbidden strings diff --git a/tools/check/forbidden_strings_in_layout.txt b/tools/check/forbidden_strings_in_layout.txt index e46aa3a0bb..a00ebc57b3 100755 --- a/tools/check/forbidden_strings_in_layout.txt +++ b/tools/check/forbidden_strings_in_layout.txt @@ -1,18 +1,7 @@ +# Copyright 2021-2024 New Vector Ltd. # -# Copyright 2021 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. # This file list String which are not allowed in source code. # Use Perl regex to write forbidden strings diff --git a/tools/check/forbidden_strings_in_resources.txt b/tools/check/forbidden_strings_in_resources.txt index 474fb03508..b282161863 100644 --- a/tools/check/forbidden_strings_in_resources.txt +++ b/tools/check/forbidden_strings_in_resources.txt @@ -1,18 +1,7 @@ +# Copyright 2018-2024 New Vector Ltd. # -# Copyright 2018 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. # This file list String which are not allowed in source code. # Use Perl regex to write forbidden strings diff --git a/tools/compressVideo.sh b/tools/compressVideo.sh index 5f9de9820b..bd45a12497 100755 --- a/tools/compressVideo.sh +++ b/tools/compressVideo.sh @@ -1,20 +1,9 @@ #!/usr/bin/env bash +# Copyright 2021-2024 New Vector Ltd. # -# Copyright (c) 2021 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. set -e echo "Converting file $1" diff --git a/tools/release/pushPlayStoreMetaData.sh b/tools/release/pushPlayStoreMetaData.sh index cc24786441..88ed015b20 100755 --- a/tools/release/pushPlayStoreMetaData.sh +++ b/tools/release/pushPlayStoreMetaData.sh @@ -1,20 +1,9 @@ #!/usr/bin/env bash +# Copyright 2021-2024 New Vector Ltd. # -# Copyright (c) 2021 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. set +e diff --git a/tools/release/releaseScript.sh b/tools/release/releaseScript.sh index 92ac7c1a7b..6bdf602c16 100755 --- a/tools/release/releaseScript.sh +++ b/tools/release/releaseScript.sh @@ -1,20 +1,9 @@ #!/usr/bin/env bash +# Copyright 2022-2024 New Vector Ltd. # -# Copyright (c) 2022 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. # Ignore any error to not stop the script set +e diff --git a/tools/templates/configure.sh b/tools/templates/configure.sh index 1b00cef927..943520f37f 100755 --- a/tools/templates/configure.sh +++ b/tools/templates/configure.sh @@ -1,20 +1,9 @@ #!/usr/bin/env bash +# Copyright 2020-2024 New Vector Ltd. # -# Copyright 2020 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. echo "Configure Element Template..." if [ -z ${ANDROID_STUDIO+x} ]; then ANDROID_STUDIO="/Applications/Android Studio.app/Contents"; fi diff --git a/tools/templates/unconfigure.sh b/tools/templates/unconfigure.sh index 36415c50e8..b3d4e9389c 100755 --- a/tools/templates/unconfigure.sh +++ b/tools/templates/unconfigure.sh @@ -1,20 +1,9 @@ #!/usr/bin/env bash +# Copyright 2020-2024 New Vector Ltd. # -# Copyright 2020 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. # Template prevent from upgrading Android Studio, so this script de configure the template echo "Un-configure Element Template..." diff --git a/tools/validate_lfs.sh b/tools/validate_lfs.sh index ce121057b6..b36077e8d4 100755 --- a/tools/validate_lfs.sh +++ b/tools/validate_lfs.sh @@ -1,19 +1,9 @@ #! /bin/bash +# Copyright 2022-2024 New Vector Ltd. # -# Copyright (c) 2022 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-License-Identifier: AGPL-3.0-only +# Please see LICENSE in the repository root for full details. # # Based on https://cashapp.github.io/paparazzi/#git-lfs