Skip to content

Commit cff8df4

Browse files
committed
Merge branch 'release/0.1.4' into main
2 parents c7627ef + 571689c commit cff8df4

File tree

2,076 files changed

+8982
-4453
lines changed

Some content is hidden

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

2,076 files changed

+8982
-4453
lines changed

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<!-- Please read [CONTRIBUTING.md](https://github.com/vector-im/element-x-android/blob/develop/CONTRIBUTING.md) before submitting your pull request -->
2+
3+
## Type of change
4+
5+
- [ ] Feature
6+
- [ ] Bugfix
7+
- [ ] Technical
8+
- [ ] Other :
9+
10+
## Content
11+
12+
<!-- Describe shortly what has been changed -->
13+
14+
## Motivation and context
15+
16+
<!-- Provide link to the corresponding issue if applicable or explain the context -->
17+
18+
## Screenshots / GIFs
19+
20+
<!--
21+
We have screenshot tests in the project, so attaching screenshots to a PR is not mandatory, as far as there
22+
is a Composable Preview covering the changes. In this case, the change will appear in the file diff.
23+
Note that all the UI composables should be covered by a Composable Preview.
24+
25+
Providing a video of the change is still very useful for the reviewer and for the history of the project.
26+
27+
You can use a table like this to show screenshots comparison.
28+
Uncomment this markdown table below and edit the last line `|||`:
29+
|copy screenshot of before here|copy screenshot of after here|
30+
31+
|Before|After|
32+
|-|-|
33+
|||
34+
-->
35+
36+
## Tests
37+
38+
<!-- Explain how you tested your development -->
39+
40+
- Step 1
41+
- Step 2
42+
- Step ...
43+
44+
## Tested devices
45+
46+
- [ ] Physical
47+
- [ ] Emulator
48+
- OS version(s):
49+
50+
## Checklist
51+
52+
<!-- Depending on the Pull Request content, it can be acceptable if some of the following checkboxes stay unchecked. -->
53+
54+
- [ ] Changes have been tested on an Android device or Android emulator with API 23
55+
- [ ] UI change has been tested on both light and dark themes
56+
- [ ] Accessibility has been taken into account. See https://github.com/vector-im/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
57+
- [ ] Pull request is based on the develop branch
58+
- [ ] Pull request includes a new file under ./changelog.d. See https://github.com/vector-im/element-x-android/blob/develop/CONTRIBUTING.md#changelog
59+
- [ ] Pull request includes screenshots or videos if containing UI changes
60+
- [ ] Pull request includes a [sign off](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#sign-off)
61+
- [ ] You've made a self review of your PR

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
debug:
1717
name: Build APKs
1818
runs-on: ubuntu-latest
19-
# Skip for `main` and the merge queue if the branch is up to date with `develop`
20-
if: github.ref != 'refs/heads/main' && github.event.merge_group.base_ref != 'refs/heads/develop'
19+
# Skip for `main`
20+
if: github.ref != 'refs/heads/main'
2121
strategy:
2222
matrix:
2323
variant: [debug, release, nightly, samples]
@@ -38,7 +38,7 @@ jobs:
3838
distribution: 'temurin' # See 'Supported distributions' for available options
3939
java-version: '17'
4040
- name: Configure gradle
41-
uses: gradle/[email protected].0
41+
uses: gradle/[email protected].1
4242
with:
4343
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
4444
- name: Assemble debug APK

.github/workflows/danger.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on: [pull_request, merge_group]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
# Don't run in the merge queue again if the branch is up to date with `develop`
9-
if: github.event.merge_group.base_ref != 'refs/heads/develop'
108
name: Danger main check
119
steps:
1210
- uses: actions/checkout@v3

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
jobs:
99
validation:
1010
name: "Validation"
11-
# Don't run in the merge queue again if the branch is up to date with `develop`
12-
if: github.event.merge_group.base_ref != 'refs/heads/develop'
1311
runs-on: ubuntu-latest
1412
# No concurrency required, this is a prerequisite to other actions and should run every time.
1513
steps:

.github/workflows/nightlyReports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: ${{ github.repository == 'vector-im/element-x-android' }}
1919
steps:
2020
- name: ⏬ Checkout with LFS
21-
uses: nschloe/[email protected].1
21+
uses: nschloe/[email protected].2
2222

2323
- name: Use JDK 17
2424
uses: actions/setup-java@v3
@@ -62,7 +62,7 @@ jobs:
6262
distribution: 'temurin' # See 'Supported distributions' for available options
6363
java-version: '17'
6464
- name: Configure gradle
65-
uses: gradle/[email protected].0
65+
uses: gradle/[email protected].1
6666
with:
6767
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
6868
- name: Dependency analysis

.github/workflows/quality.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
checkScript:
1717
name: Search for forbidden patterns
1818
runs-on: ubuntu-latest
19-
# Don't run in the merge queue again if the branch is up to date with `develop`
20-
if: github.event.merge_group.base_ref != 'refs/heads/develop'
2119
steps:
2220
- uses: actions/checkout@v3
2321
- name: Run code quality check suite
@@ -26,8 +24,6 @@ jobs:
2624
check:
2725
name: Project Check Suite
2826
runs-on: ubuntu-latest
29-
# Don't run in the merge queue again if the branch is up to date with `develop`
30-
if: github.event.merge_group.base_ref != 'refs/heads/develop'
3127
# Allow all jobs on main and develop. Just one per PR.
3228
concurrency:
3329
group: ${{ github.ref == 'refs/heads/main' && format('check-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('check-develop-{0}', github.sha) || format('check-{0}', github.ref) }}
@@ -44,7 +40,7 @@ jobs:
4440
distribution: 'temurin' # See 'Supported distributions' for available options
4541
java-version: '17'
4642
- name: Configure gradle
47-
uses: gradle/[email protected].0
43+
uses: gradle/[email protected].1
4844
with:
4945
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
5046
- name: Run code quality check suite

.github/workflows/recordScreenshots.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: ⏬ Checkout with LFS
17-
uses: nschloe/[email protected].1
17+
uses: nschloe/[email protected].2
1818
with:
1919
persist-credentials: false
2020
- name: ☕️ Use JDK 17
@@ -24,7 +24,7 @@ jobs:
2424
java-version: '17'
2525
# Add gradle cache, this should speed up the process
2626
- name: Configure gradle
27-
uses: gradle/[email protected].0
27+
uses: gradle/[email protected].1
2828
with:
2929
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
3030
- name: Record screenshots

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
distribution: 'temurin' # See 'Supported distributions' for available options
2626
java-version: '17'
2727
- name: Configure gradle
28-
uses: gradle/[email protected].0
28+
uses: gradle/[email protected].1
2929
- name: Create app bundle
3030
env:
3131
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}

.github/workflows/sonar.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
sonar:
1717
name: Project Check Suite
1818
runs-on: ubuntu-latest
19-
# Don't run in the merge queue again if the branch is up to date with `develop`
20-
if: github.event.merge_group.base_ref != 'refs/heads/develop'
2119
# Allow all jobs on main and develop. Just one per PR.
2220
concurrency:
2321
group: ${{ github.ref == 'refs/heads/main' && format('sonar-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('sonar-develop-{0}', github.sha) || format('sonar-{0}', github.ref) }}
@@ -34,7 +32,7 @@ jobs:
3432
distribution: 'temurin' # See 'Supported distributions' for available options
3533
java-version: '17'
3634
- name: Configure gradle
37-
uses: gradle/[email protected].0
35+
uses: gradle/[email protected].1
3836
with:
3937
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
4038
- name: 🔊 Publish results to Sonar

.github/workflows/tests.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ jobs:
1616
tests:
1717
name: Runs unit tests
1818
runs-on: ubuntu-latest
19-
# Don't run in the merge queue again if the branch is up to date with `develop`
20-
if: github.event.merge_group.base_ref != 'refs/heads/develop'
2119

2220
# Allow all jobs on main and develop. Just one per PR.
2321
concurrency:
2422
group: ${{ github.ref == 'refs/heads/main' && format('unit-tests-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('unit-tests-develop-{0}', github.sha) || format('unit-tests-{0}', github.ref) }}
2523
cancel-in-progress: true
2624
steps:
2725
- name: ⏬ Checkout with LFS
28-
uses: nschloe/[email protected].1
26+
uses: nschloe/[email protected].2
2927
with:
3028
# Ensure we are building the branch and not the branch after being merged on develop
3129
# https://github.com/actions/checkout/issues/881
@@ -36,7 +34,7 @@ jobs:
3634
distribution: 'temurin' # See 'Supported distributions' for available options
3735
java-version: '17'
3836
- name: Configure gradle
39-
uses: gradle/[email protected].0
37+
uses: gradle/[email protected].1
4038
with:
4139
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
4240

@@ -57,22 +55,6 @@ jobs:
5755
path: |
5856
**/kover/merged/verification/errors.txt
5957
60-
- name: 📸 Upload Screenshot test report
61-
uses: actions/upload-artifact@v3
62-
if: always()
63-
with:
64-
name: reports
65-
path: tests/uitests/build/reports/tests/testDebugUnitTest/
66-
retention-days: 5
67-
68-
- name: 🚫 Upload Screenshot failure differences on error
69-
uses: actions/upload-artifact@v3
70-
if: failure()
71-
with:
72-
name: failures
73-
path: tests/uitests/out/failures/
74-
retention-days: 5
75-
7658
- name: ✅ Upload kover report (disabled)
7759
if: always()
7860
run: echo "This is now done only once a day, see nightlyReports.yml"
@@ -83,7 +65,7 @@ jobs:
8365
with:
8466
name: tests-and-screenshot-tests-results
8567
path: |
86-
**/out/failures/
68+
**/build/paparazzi/failures/
8769
**/build/reports/tests/*UnitTest/
8870
8971
# https://github.com/codecov/codecov-action

.github/workflows/validate-lfs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ on: [pull_request, merge_group]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
# Don't run in the merge queue again if the branch is up to date with `develop`
9-
if: github.event.merge_group.base_ref != 'refs/heads/develop'
108
name: Validate
119
steps:
12-
- uses: nschloe/[email protected].1
10+
- uses: nschloe/[email protected].2
1311

1412
- run: |
1513
./tools/git/validate_lfs.sh

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.maestro/allTests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
appId: ${APP_ID}
22
---
3+
## Check that all env variables required in the whole test suite are declared (to fail faster)
4+
- runScript: ./scripts/checkEnv.js
35
- runFlow: tests/init.yaml
46
- runFlow: tests/account/login.yaml
57
- runFlow: tests/settings/settings.yaml

.maestro/scripts/checkEnv.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This array contains all the required environment variable. When adding a variable, add it here also.
2+
// If a variable is missing, an error will occur.
3+
4+
if (APP_ID == null) throw "Fatal: missing env variable APP_ID"
5+
if (USERNAME == null) throw "Fatal: missing env variable USERNAME"
6+
if (PASSWORD == null) throw "Fatal: missing env variable PASSWORD"
7+
if (ROOM_NAME == null) throw "Fatal: missing env variable ROOM_NAME"
8+
if (INVITEE1_MXID == null) throw "Fatal: missing env variable INVITEE1_MXID"
9+
if (INVITEE2_MXID == null) throw "Fatal: missing env variable INVITEE2_MXID"

.maestro/tests/account/changeServer.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ appId: ${APP_ID}
99
- tapOn: "Other"
1010
- tapOn:
1111
id: "change_server-server"
12-
- inputText: "element"
12+
# Test server that does not support sliding sync.
13+
- inputText: "gnuradio"
1314
- hideKeyboard
14-
- tapOn: "element.io"
15+
- tapOn: "gnuradio.org"
16+
- extendedWaitUntil:
17+
visible: "This server currently doesn’t support sliding sync."
18+
timeout: 10_000
1519
- tapOn: "Cancel"
1620
- back
1721
- back

.maestro/tests/roomList/createAndDeleteRoom.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ appId: ${APP_ID}
1717
- takeScreenshot: build/maestro/320-createAndDeleteRoom
1818
- tapOn: "aRoomName"
1919
- tapOn: "Invite people"
20-
# assert there's 1 memeber and 1 invitee
20+
# assert there's 1 member and 1 invitee
2121
- tapOn: "Search for someone"
2222
- inputText: ${INVITEE2_MXID}
2323
- tapOn:
@@ -27,7 +27,7 @@ appId: ${APP_ID}
2727
- tapOn: "Back"
2828
- tapOn: "aRoomName"
2929
- tapOn: "People"
30-
# assert there's 1 memeber and 2 invitees
30+
# assert there's 1 member and 2 invitees
3131
- tapOn: "Back"
3232
- tapOn: "Leave room"
3333
- tapOn: "Leave"

.maestro/tests/roomList/searchRoomList.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ appId: ${APP_ID}
77
- tapOn: ${ROOM_NAME}
88
# Back from timeline
99
- back
10+
- assertVisible: "MyR"
1011
# Close keyboard
1112
- hideKeyboard
1213
# Back from search

0 commit comments

Comments
 (0)