Skip to content

Commit 3f0a42b

Browse files
committed
Merge branch 'release/0.4.1' into main
2 parents 48d53d7 + 24bcb35 commit 3f0a42b

File tree

1,786 files changed

+7330
-4249
lines changed

Some content is hidden

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

1,786 files changed

+7330
-4249
lines changed

.editorconfig

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@ ij_smart_tabs = false
1414
ij_visual_guides = none
1515
ij_wrap_on_typing = false
1616

17-
# Ktlint rule, for more information see https://pinterest.github.io/ktlint/faq/#why-is-editorconfig-property-disabled_rules-deprecated-and-how-do-i-resolve-this
17+
# Ktlint rule, for more information see https://pinterest.github.io/ktlint/1.1.1/faq/#how-do-i-enable-or-disable-a-rule
1818
ktlint_standard_wrapping = disabled
1919
ktlint_standard_trailing-comma-on-call-site = disabled
20-
20+
ktlint_standard_trailing-comma-on-declaration-site = disabled
21+
ktlint_standard_multiline-expression-wrapping = disabled
22+
ktlint_standard_string-template-indent = disabled
23+
ktlint_standard_spacing-between-declarations-with-annotations = disabled
24+
ktlint_standard_function-signature = disabled
25+
ktlint_standard_annotation = disabled
26+
ktlint_standard_parameter-list-wrapping = disabled
27+
ktlint_standard_indent = disabled
28+
ktlint_standard_blank-line-before-declaration = disabled
29+
ktlint_function_naming_ignore_when_annotated_with=Composable
2130

2231
[*.java]
2332
ij_java_align_consecutive_assignments = false

.github/renovate.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
],
1919
"groupName" : "kotlin"
2020
},
21-
{
22-
"matchPackageNames" : [
23-
"org.jetbrains.kotlinx.kover"
24-
],
25-
"enabled" : false
26-
},
2721
{
2822
"matchPackagePatterns" : [
2923
"^org.maplibre"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Community PR notice
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- reopened
9+
10+
jobs:
11+
welcome:
12+
runs-on: ubuntu-latest
13+
name: Welcome comment
14+
if: github.event.pull_request.fork != null
15+
steps:
16+
- name: Add auto-generated commit warning
17+
uses: actions/github-script@v7
18+
with:
19+
script: |
20+
github.rest.issues.createComment({
21+
issue_number: context.issue.number,
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
body: `Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
25+
26+
- Your branch should be based on \`origin/develop\`, at least when it was created.
27+
- There is a changelog entry in the \`changelog.d\` folder with [the Towncrier format](https://towncrier.readthedocs.io/en/latest/tutorial.html#creating-news-fragments).
28+
- The test pass locally running \`./gradlew test\`.
29+
- The code quality check suite pass locally running \`./gradlew runQualityChecks\`.
30+
- If you modified anything related to the UI, including previews, you'll have to run the \`Record screenshots\` GH action in your forked repo: that will generate compatible new screenshots. However, given Github Actions limitations, **it will prevent the CI from running temporarily**, until you upload a new commit after that one. To do so, just pull the latest changes and push [an empty commit](https://coderwall.com/p/vkdekq/git-commit-allow-empty).`
31+
})

.github/workflows/maestro.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,31 @@ jobs:
2424
cancel-in-progress: true
2525
steps:
2626
- name: Remove Run-Maestro label
27-
if: ${{ github.event.label.name == 'Run-Maestro' }}
27+
if: ${{ github.event_name == 'pull_request' && github.event.label.name == 'Run-Maestro' }}
2828
uses: actions-ecosystem/action-remove-labels@v1
2929
with:
3030
labels: Run-Maestro
3131
- uses: actions/checkout@v4
32+
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
3233
with:
3334
# Ensure we are building the branch and not the branch after being merged on develop
3435
# https://github.com/actions/checkout/issues/881
3536
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
3637
- uses: actions/setup-java@v4
3738
name: Use JDK 17
39+
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
3840
with:
3941
distribution: 'temurin' # See 'Supported distributions' for available options
4042
java-version: '17'
4143
- name: Assemble debug APK
4244
run: ./gradlew :app:assembleDebug $CI_GRADLE_ARG_PROPERTIES
45+
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
4346
env:
4447
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
4548
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
4649
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
4750
- uses: mobile-dev-inc/[email protected]
51+
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
4852
with:
4953
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }}
5054
# Doc says (https://github.com/mobile-dev-inc/action-maestro-cloud#android):

.github/workflows/nightlyReports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ jobs:
3333
run: ./gradlew verifyPaparazziDebug $CI_GRADLE_ARG_PROPERTIES
3434

3535
- name: 📈 Generate kover report and verify coverage
36-
run: ./gradlew koverMergedReport koverMergedVerify $CI_GRADLE_ARG_PROPERTIES -Pci-build=true
36+
run: ./gradlew :app:koverHtmlReport :app:koverXmlReport :app:koverVerify $CI_GRADLE_ARG_PROPERTIES -Pci-build=true
3737

3838
- name: ✅ Upload kover report
3939
if: always()
4040
uses: actions/upload-artifact@v4
4141
with:
4242
name: kover-results
4343
path: |
44-
**/build/reports/kover/merged
44+
**/build/reports/kover
4545
4646
- name: 🔊 Publish results to Sonar
4747
env:

.github/workflows/recordScreenshots.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: nschloe/[email protected]
2727
with:
2828
persist-credentials: false
29-
ref: ${{ github.event.pull_request.head.ref }}
29+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
3030
- name: ⏬ Checkout with LFS (Branch)
3131
if: github.event_name == 'workflow_dispatch'
3232
uses: nschloe/[email protected]
@@ -43,8 +43,8 @@ jobs:
4343
with:
4444
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
4545
- name: Record screenshots
46+
id: record
4647
run: ./.github/workflows/scripts/recordScreenshots.sh
4748
env:
48-
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
49+
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN || secrets.GITHUB_TOKEN }}
4950
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
50-

.github/workflows/scripts/recordScreenshots.sh

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,27 @@ echo "Record screenshots"
6868
./gradlew recordPaparazziDebug --stacktrace -PpreDexEnable=false --max-workers 4 --warn
6969

7070
echo "Committing changes"
71-
git config user.name "ElementBot"
72-
git config user.email "[email protected]"
71+
git config http.sslVerify false
72+
73+
if [[ -z ${INPUT_AUTHOR_NAME} ]]; then
74+
git config user.name "ElementBot"
75+
else
76+
git config --local user.name "${INPUT_AUTHOR_NAME}"
77+
fi
78+
79+
if [[ -z ${INPUT_AUTHOR_EMAIL} ]]; then
80+
git config user.email "[email protected]"
81+
else
82+
git config --local user.name "${INPUT_AUTHOR_EMAIL}"
83+
fi
7384
git add -A
7485
git commit -m "Update screenshots"
7586

87+
GITHUB_REPO="https://$GITHUB_ACTOR:$TOKEN@github.com/$REPO.git"
7688
echo "Pushing changes"
77-
git push "https://$TOKEN@github.com/$REPO.git" $BRANCH
89+
if [[ -z ${GITHUB_ACTOR} ]]; then
90+
echo "No GITHUB_ACTOR env var"
91+
GITHUB_REPO="https://$TOKEN@github.com/$REPO.git"
92+
fi
93+
git push $GITHUB_REPO "$BRANCH"
7894
echo "Done!"

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ jobs:
5555
run: ./gradlew verifyPaparazziDebug $CI_GRADLE_ARG_PROPERTIES
5656

5757
- name: 📈Generate kover report and verify coverage
58-
run: ./gradlew koverMergedReport koverMergedVerify $CI_GRADLE_ARG_PROPERTIES -Pci-build=true
58+
run: ./gradlew :app:koverHtmlReport :app:koverXmlReport :app:koverVerify $CI_GRADLE_ARG_PROPERTIES -Pci-build=true
5959

6060
- name: 🚫 Upload kover failed coverage reports
6161
if: failure()
6262
uses: actions/upload-artifact@v4
6363
with:
6464
name: kover-error-report
6565
path: |
66-
**/kover/merged/verification/errors.txt
66+
app/build/reports/kover/verify.err
6767
6868
- name: ✅ Upload kover report (disabled)
6969
if: always()
@@ -83,4 +83,4 @@ jobs:
8383
if: always()
8484
uses: codecov/codecov-action@v3
8585
# with:
86-
# files: build/reports/kover/merged/xml/report.xml
86+
# files: build/reports/kover/xml/report.xml

.maestro/tests/account/logout.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ appId: ${APP_ID}
66
- takeScreenshot: build/maestro/900-SignOutScreen
77
- back
88
- tapOn: "Sign out"
9-
- tapOn:
10-
id: "sign-out-submit"
119
# Ensure cancel cancels
12-
- tapOn: "Cancel"
1310
- tapOn:
14-
id: "sign-out-submit"
11+
id: "dialog-negative"
12+
- tapOn: "Sign out"
1513
- tapOn:
1614
id: "dialog-positive"
1715
- runFlow: ../assertions/assertInitDisplayed.yaml

.maestro/tests/roomList/createAndDeleteDM.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ appId: ${APP_ID}
99
index: 1
1010
- takeScreenshot: build/maestro/330-createAndDeleteDM
1111
- tapOn: "maestroelement2"
12-
- tapOn: "Leave room"
12+
- tapOn: "Leave conversation"
1313
- tapOn: "Leave"

0 commit comments

Comments
 (0)