diff --git a/.editorconfig b/.editorconfig index 4ef29a4e27130f872cebea5f1365a4b075c5f7ca..56b592ba81558793917eb79a97a57be312f1008d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,7 +7,9 @@ indent_style = space insert_final_newline = true [*.{kt,kts}] -ij_kotlin_imports_layout = *,^* +ij_kotlin_imports_layout = *,^ +ij_kotlin_allow_trailing_comma = true +ij_kotlin_allow_trailing_comma_on_call_site = true -[*.{yml,yaml}] +[*.{yml,yaml,json,toml}] indent_size = 2 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 143e5414ce9a4de38c40df3299680f854a4efa40..130810bbd94b2bb57f495a12c0b97c3615efdfe1 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -3,23 +3,21 @@ If the app is not behaving like it should, it's not necessarily a bug. Please consult the following resources before submitting a new issue. -* [User Manual](https://docs.k9mail.app/) -* [Frequently Asked Questions](https://forum.k9mail.app/c/faq) -* [Support Forum](https://forum.k9mail.app/) +- [User Manual](https://docs.k9mail.app/) +- [Frequently Asked Questions](https://forum.k9mail.app/c/faq) +- [Support Forum](https://forum.k9mail.app/) ### Bug report guidelines -* The issue tracker is solely for bug reports and feature/enhancement requests. If you have a question of any kind, -please use the [support forum](https://forum.k9mail.app/c/support) instead. -* Search the [existing issues](https://github.com/thundernest/k-9/issues?q=) first to make sure your issue hasn't been -reported before. - +- The issue tracker is solely for bug reports and feature/enhancement requests. If you have a question of any kind, + please use the [support forum](https://forum.k9mail.app/c/support) instead. +- Search the [existing issues](https://github.com/thundernest/k-9/issues?q=) first to make sure your issue hasn't been + reported before. ## Translations We're using [Transifex](https://www.transifex.com/k-9/k9mail/) to manage translations. - ## Contributing code We love [pull requests](https://github.com/thundernest/k-9/pulls) from everyone! diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4bd7a7ac8535b6db6e83667453d5855007c0dbca..2a7da388ea8671ae4b4c5066fe23b4dcadf327c6 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,12 +1,12 @@ Please ensure that your pull request meets the following requirements - thanks! -* Does not contain merge commits. Rebase instead. -* Contains commits with descriptive titles. -* New code is written in Kotlin whenever possible. -* Follows our existing codestyle (`gradlew ktlintCheck`; will be checked by CI). -* Does not break any unit tests (`gradlew testDebugUnitTest`; will be checked by CI). -* Uses a descriptive title; don't put issue numbers in there. -* Contains a reference to the issue that it fixes (e.g. *Closes #XXX* or *Fixes #XXX*) in the body text. -* For cosmetic changes add one or multiple images, if possible. +- Does not contain merge commits. Rebase instead. +- Contains commits with descriptive titles. +- New code is written in Kotlin whenever possible. +- Follows our existing codestyle (`gradlew spotlessCheck` to check and `gradlew spotlessFormat` to format your source code; will be checked by CI). +- Does not break any unit tests (`gradlew testDebugUnitTest`; will be checked by CI). +- Uses a descriptive title; don't put issue numbers in there. +- Contains a reference to the issue that it fixes (e.g. _Closes #XXX_ or _Fixes #XXX_) in the body text. +- For cosmetic changes add one or multiple images, if possible. Finally, please replace this template text with a description of the change and additional context if necessary. diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 9121b5b7c6dcbc68f26c2dc3f5749dc5ce2a5def..6c060792b2e9bc4f7d85a2a12b1a20f1ee6a2ad3 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: 'zulu' + distribution: temurin java-version: 17 - uses: gradle/gradle-build-action@v2 - - run: ./gradlew assembleDebug ktlintCheck testsOnCi + - run: ./gradlew assembleDebug detekt spotlessCheck testsOnCi diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000000000000000000000000000000000000..f9f570c0c3b16ca01c5b754ba8302ea4a81ce268 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL - Code scanning + +on: + schedule: + - cron: '0 10 * * 1' + +jobs: + codeql-scan: + + strategy: + fail-fast: false + + runs-on: ubuntu-latest + + permissions: + security-events: write + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + + - uses: gradle/gradle-build-action@v2 + + - uses: github/codeql-action/init@v2 + with: + languages: java + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + diff --git a/.github/workflows/gradle-cache.yml b/.github/workflows/gradle-cache.yml index 6c264d90b3d04037f2de3c8ac70054f582513088..0e4b6f3d72691bcf1a25afa65a46eea4ba840673 100644 --- a/.github/workflows/gradle-cache.yml +++ b/.github/workflows/gradle-cache.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: 'zulu' + distribution: temurin java-version: 17 - uses: gradle/gradle-build-action@v2 with: diff --git a/.gitignore b/.gitignore index 0b518e45b4460e898a0859f203bba2b8a23a0945..a0a1a437ab2f1a497a10b0cb4f66568076fbb3a1 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ build.xml proguard-project.txt .idea/ *.iml +user-manual/screenshots +user-manual/output diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 134558af0fbc030a05682f152c94cf83320ae9e2..d5dbce9e163640e1364ff954126869aa3e22e8e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest" +image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:1263-Add_java_17_support" stages: - update-from-upstream diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 0d89c0e5ba40f7ffc5c9460e13091b848e6430ce..cf554d3866682b76afe250feee828cd50404752c 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -31,6 +31,9 @@ +