Skip to content

Commit f49fcb8

Browse files
Merge branch 'main' into fixSlowNoteCreating
2 parents 7bde151 + 9e35dc9 commit f49fcb8

File tree

164 files changed

+22653
-19074
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+22653
-19074
lines changed

.editorconfig

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# .editorconfig
2+
3+
# see http://EditorConfig.org
4+
5+
# SPDX-FileCopyrightText: 2018-2025 Nextcloud GmbH and Nextcloud contributors
6+
# SPDX-License-Identifier: AGPL-3.0-or-later
7+
8+
# This is the file in the root of the project.
9+
# For sub folders you can have other files that override only some settings.
10+
# For these, this settings should be false.
11+
root=true
12+
13+
[*]
14+
max_line_length=120
15+
# use spaces, not tabs.
16+
indent_style=space
17+
indent_size=4
18+
19+
[*.yml]
20+
max_line_length=150
21+
22+
charset=utf-8
23+
24+
# Trimming is good for consistency
25+
trim_trailing_whitespace=true
26+
# I've seen cases where a missing new_line was ignored on *nix systems.
27+
# Never again with this setting!
28+
insert_final_newline=true
29+
30+
[*.properties]
31+
# Exception for Java properties files should be encoded latin1 (aka iso8859-1)
32+
charset=latin1
33+
34+
[*.{cmd,bat}]
35+
# batch files on Windows should stay with CRLF
36+
end_of_line=crlf
37+
38+
[*.md]
39+
trim_trailing_whitespace=false
40+
41+
[.drone.yml]
42+
indent_size=2
43+
44+
[*.{kt,kts}]
45+
ktlint_code_style = android_studio
46+
# IDE does not follow this Ktlint rule strictly, but the default ordering is pretty good anyway, so let's ditch it
47+
ktlint_standard_import-ordering = disabled
48+
ktlint_standard_no-consecutive-comments = disabled
49+
ktlint_function_naming_ignore_when_annotated_with = Composable
50+
ij_kotlin_allow_trailing_comma = false
51+
ij_kotlin_allow_trailing_comma_on_call_site = false

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### 🖼️ Screenshots
2+
3+
🏚️ Before | 🏡 After
4+
---|---
5+
B | A
6+
7+
### 🏁 Checklist
8+
9+
- [ ] 🧪 Tests written, or not not needed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
2+
SPDX-License-Identifier: GPL-3.0-or-later
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
2-
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
2+
SPDX-License-Identifier: AGPL-3.0-or-later

.github/workflows/analysis.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,29 +51,26 @@ jobs:
5151
echo "repo=${{ github.event.pull_request.head.repo.full_name }}"
5252
} >> "$GITHUB_OUTPUT"
5353
fi
54-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
54+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5555
with:
5656
persist-credentials: false
5757
repository: ${{ steps.get-vars.outputs.repo }}
5858
ref: ${{ steps.get-vars.outputs.branch }}
59-
- name: Set up JDK 17
60-
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
59+
- name: Set up JDK 21
60+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6161
with:
6262
distribution: "temurin"
63-
java-version: 17
63+
java-version: 21
6464
- name: Install dependencies
6565
run: |
6666
sudo apt install python3-defusedxml
6767
- name: Run analysis wrapper
6868
env:
6969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
71-
# Memory that is set in jvmargs must be wisely chosen.
72-
# E.g. with -Xmx5g and -Xmx1g android talk builds always failed with "The operation was canceled". -Xmx3g seems to work so far.
7370
run: |
7471
mkdir -p "$HOME/.gradle"
7572
{
76-
echo "org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g"
73+
echo "org.gradle.jvmargs=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
7774
echo "org.gradle.configureondemand=true"
7875
echo "kapt.incremental.apt=true"
7976
} > "$HOME/.gradle/gradle.properties"

.github/workflows/android.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23-
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
2424
with:
2525
distribution: 'temurin'
2626
java-version: '17'
@@ -34,8 +34,8 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
38-
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
3939
with:
4040
distribution: 'temurin'
4141
java-version: '17'
@@ -49,8 +49,8 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: Checkout
52-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
53-
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
52+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
53+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
5454
with:
5555
distribution: 'temurin'
5656
java-version: '17'
@@ -64,8 +64,8 @@ jobs:
6464
runs-on: ubuntu-latest
6565
steps:
6666
- name: Checkout
67-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
68-
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
67+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
68+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6969
with:
7070
distribution: 'temurin'
7171
java-version: '17'
@@ -74,7 +74,7 @@ jobs:
7474
- name: Build debug APK
7575
run: bash ./gradlew assembleDev --stacktrace --no-configuration-cache
7676
- name: Upload APK
77-
uses: actions/upload-artifact@v5
77+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7878
with:
7979
name: app-dev-debug
8080
path: app/build/outputs/apk/dev/debug/app-dev-debug.apk

.github/workflows/codeql.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
language: [ 'java' ]
3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3838
with:
3939
persist-credentials: false
4040
- name: Set Swap Space
@@ -43,18 +43,18 @@ jobs:
4343
with:
4444
swap-size-gb: 10
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
46+
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
4747
with:
4848
languages: ${{ matrix.language }}
49-
- name: Set up JDK 17
50-
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
49+
- name: Set up JDK 21
50+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
5151
with:
5252
distribution: "temurin"
53-
java-version: 17
53+
java-version: 21
5454
- name: Assemble
5555
run: |
5656
mkdir -p "$HOME/.gradle"
57-
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
58-
./gradlew assembleDebug
57+
echo "org.gradle.jvmargs=-Xmx3g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
58+
./gradlew --no-daemon assembleDebug
5959
- name: Perform CodeQL Analysis
60-
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
60+
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0

.github/workflows/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
44
# SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
5-
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
5+
# SPDX-License-Identifier: AGPL-3.0-or-later
66
#
77

88
## This file is intended to be sourced by other scripts

.github/workflows/lib.sh.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
SPDX-FileCopyrightText: 2019-2025 Nextcloud GmbH and Nextcloud contributors
2-
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
2+
SPDX-License-Identifier: AGPL-3.0-or-later

.github/workflows/pr-feedback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
3737
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
3838
39-
- uses: nextcloud/pr-feedback-action@e397f3c7e655092b746e3610d121545530c6a90e # main
39+
- uses: nextcloud/pr-feedback-action@5227c55be184087d0aef6338bee210d8620b6297 # main
4040
with:
4141
feedback-message: |
4242
Hello there,

0 commit comments

Comments
 (0)