Skip to content

Commit 48d53d7

Browse files
committed
Merge branch 'release/0.4.0'
2 parents 1952bfc + 0577476 commit 48d53d7

File tree

2,419 files changed

+26677
-14792
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,419 files changed

+26677
-14792
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
**/snapshots/**/*.png filter=lfs diff=lfs merge=lfs -text
22
**/docs/images-lfs/*.png filter=lfs diff=lfs merge=lfs -text
3+
libraries/mediaupload/impl/src/test/assets/* filter=lfs diff=lfs merge=lfs -text

.github/ISSUE_TEMPLATE/bug.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Bug report for the Element X Android app
2-
description: Report any issues that you have found with the Element X app. Please [check open issues](https://github.com/vector-im/element-x-android/issues) first, in case it has already been reported.
2+
description: Report any issues that you have found with the Element X app. Please [check open issues](https://github.com/element-hq/element-x-android/issues) first, in case it has already been reported.
33
labels: [T-Defect]
44
body:
55
- type: markdown

.github/ISSUE_TEMPLATE/enhancement.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: |
8-
Thank you for taking the time to propose an enhancement to an existing feature. If you would like to propose a new feature or a major cross-platform change, please [start a discussion here](https://github.com/vector-im/element-meta/discussions/new?category=ideas).
8+
Thank you for taking the time to propose an enhancement to an existing feature. If you would like to propose a new feature or a major cross-platform change, please [start a discussion here](https://github.com/element-hq/element-meta/discussions/new?category=ideas).
99
- type: textarea
1010
id: usecase
1111
attributes:

.github/dependabot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ updates:
1313
ignore:
1414
- dependency-name: "*"
1515
reviewers:
16-
- "vector-im/element-x-android-reviewers"
16+
- "element-hq/element-x-android-reviewers"
1717
# Updates for Gradle dependencies used in the app
1818
- package-ecosystem: "gradle"
1919
directory: "/"
@@ -23,4 +23,4 @@ updates:
2323
ignore:
2424
- dependency-name: "*"
2525
reviewers:
26-
- "vector-im/element-x-android-reviewers"
26+
- "element-hq/element-x-android-reviewers"

.github/pull_request_template.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Please read [CONTRIBUTING.md](https://github.com/vector-im/element-x-android/blob/develop/CONTRIBUTING.md) before submitting your pull request -->
1+
<!-- Please read [CONTRIBUTING.md](https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md) before submitting your pull request -->
22

33
## Type of change
44

@@ -53,9 +53,9 @@ Uncomment this markdown table below and edit the last line `|||`:
5353

5454
- [ ] Changes have been tested on an Android device or Android emulator with API 23
5555
- [ ] 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
56+
- [ ] Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
5757
- [ ] 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
58+
- [ ] Pull request includes a new file under ./changelog.d. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#changelog
5959
- [ ] Pull request includes screenshots or videos if containing UI changes
6060
- [ ] Pull request includes a [sign off](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#sign-off)
6161
- [ ] You've made a self review of your PR

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
# https://github.com/actions/checkout/issues/881
3434
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
3535
- name: Use JDK 17
36-
uses: actions/setup-java@v3
36+
uses: actions/setup-java@v4
3737
with:
3838
distribution: 'temurin' # See 'Supported distributions' for available options
3939
java-version: '17'
4040
- name: Configure gradle
41-
uses: gradle/gradle-build-action@v2.9.0
41+
uses: gradle/gradle-build-action@v2.11.1
4242
with:
4343
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
4444
- name: Assemble debug APK
@@ -50,7 +50,7 @@ jobs:
5050
run: ./gradlew :app:assembleDebug -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES
5151
- name: Upload APK APKs
5252
if: ${{ matrix.variant == 'debug' }}
53-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: elementx-debug
5656
path: |

.github/workflows/danger.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- run: |
1212
npm install --save-dev @babel/plugin-transform-flow-strip-types
1313
- name: Danger
14-
uses: danger/[email protected].0
14+
uses: danger/[email protected].1
1515
with:
1616
args: "--dangerfile ./tools/danger/dangerfile.js"
1717
env:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Update Gradle Wrapper
1313
uses: gradle-update/update-gradle-wrapper-action@v1
1414
# Skip in forks
15-
if: github.repository == 'vector-im/element-x-android'
15+
if: github.repository == 'element-hq/element-x-android'
1616
with:
1717
repo-token: ${{ secrets.GITHUB_TOKEN }}
1818
target-branch: develop

.github/workflows/maestro.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: Maestro
22

3-
# Run this flow only on pull request, and only when the pull request has been approved, to limit our usage of maestro cloud.
4-
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-when-a-pull-request-is-approved
3+
# Run this flow only on pull request, and only when the pull request has the Run-Maestro label, to limit our usage of maestro cloud.
54
on:
65
workflow_dispatch:
7-
pull_request_review:
8-
types: [submitted]
6+
pull_request:
7+
types: [labeled]
98

109
# Enrich gradle.properties for CI/CD
1110
env:
@@ -16,20 +15,25 @@ jobs:
1615
maestro-cloud:
1716
name: Maestro test suite
1817
runs-on: ubuntu-latest
19-
if: github.event.review.state == 'approved' || github.event_name == 'workflow_dispatch'
18+
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Run-Maestro'
2019
strategy:
2120
fail-fast: false
2221
# Allow one per PR.
2322
concurrency:
2423
group: ${{ format('maestro-{0}', github.ref) }}
2524
cancel-in-progress: true
2625
steps:
26+
- name: Remove Run-Maestro label
27+
if: ${{ github.event.label.name == 'Run-Maestro' }}
28+
uses: actions-ecosystem/action-remove-labels@v1
29+
with:
30+
labels: Run-Maestro
2731
- uses: actions/checkout@v4
2832
with:
2933
# Ensure we are building the branch and not the branch after being merged on develop
3034
# https://github.com/actions/checkout/issues/881
3135
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
32-
- uses: actions/setup-java@v3
36+
- uses: actions/setup-java@v4
3337
name: Use JDK 17
3438
with:
3539
distribution: 'temurin' # See 'Supported distributions' for available options

.github/workflows/nightly.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
nightly:
1515
name: Build and publish nightly bundle to Firebase
1616
runs-on: ubuntu-latest
17-
if: ${{ github.repository == 'vector-im/element-x-android' }}
17+
if: ${{ github.repository == 'element-hq/element-x-android' }}
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Use JDK 17
21-
uses: actions/setup-java@v3
21+
uses: actions/setup-java@v4
2222
with:
2323
distribution: 'temurin' # See 'Supported distributions' for available options
2424
java-version: '17'

.github/workflows/nightlyReports.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
nightlyReports:
1616
name: Create kover report artifact and upload sonar result.
1717
runs-on: ubuntu-latest
18-
if: ${{ github.repository == 'vector-im/element-x-android' }}
18+
if: ${{ github.repository == 'element-hq/element-x-android' }}
1919
steps:
2020
- name: ⏬ Checkout with LFS
2121
uses: nschloe/[email protected]
2222

2323
- name: Use JDK 17
24-
uses: actions/setup-java@v3
24+
uses: actions/setup-java@v4
2525
with:
2626
distribution: 'temurin' # See 'Supported distributions' for available options
2727
java-version: '17'
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: ✅ Upload kover report
3939
if: always()
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: kover-results
4343
path: |
@@ -57,19 +57,19 @@ jobs:
5757
steps:
5858
- uses: actions/checkout@v4
5959
- name: Use JDK 17
60-
uses: actions/setup-java@v3
60+
uses: actions/setup-java@v4
6161
with:
6262
distribution: 'temurin' # See 'Supported distributions' for available options
6363
java-version: '17'
6464
- name: Configure gradle
65-
uses: gradle/gradle-build-action@v2.9.0
65+
uses: gradle/gradle-build-action@v2.11.1
6666
with:
6767
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
6868
- name: Dependency analysis
6969
run: ./gradlew dependencyCheckAnalyze $CI_GRADLE_ARG_PROPERTIES
7070
- name: Upload dependency analysis
7171
if: always()
72-
uses: actions/upload-artifact@v3
72+
uses: actions/upload-artifact@v4
7373
with:
7474
name: dependency-analysis
7575
path: build/reports/dependency-check-report.html

.github/workflows/quality.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
# https://github.com/actions/checkout/issues/881
3636
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
3737
- name: Use JDK 17
38-
uses: actions/setup-java@v3
38+
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'temurin' # See 'Supported distributions' for available options
4141
java-version: '17'
4242
- name: Configure gradle
43-
uses: gradle/gradle-build-action@v2.9.0
43+
uses: gradle/gradle-build-action@v2.11.1
4444
with:
4545
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
4646
- name: Run code quality check suite
4747
run: ./gradlew runQualityChecks $CI_GRADLE_ARG_PROPERTIES
4848
- name: Upload reports
4949
if: always()
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: linting-report
5353
path: |
@@ -60,7 +60,7 @@ jobs:
6060
yarn add danger-plugin-lint-report --dev
6161
- name: Danger lint
6262
if: always()
63-
uses: danger/[email protected].0
63+
uses: danger/[email protected].1
6464
with:
6565
args: "--dangerfile ./tools/danger/dangerfile-lint.js"
6666
env:

.github/workflows/recordScreenshots.yml

+20-5
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,48 @@ name: Record screenshots
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
types: [ labeled ]
57

68
# Enrich gradle.properties for CI/CD
79
env:
810
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3584m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseParallelGC
911

1012
jobs:
1113
record:
12-
name: Record screenshots on branch ${{ github.ref_name }}
14+
name: Record screenshots on branch ${{ github.event.pull_request.head.ref || github.ref_name }}
1315
runs-on: ubuntu-latest
16+
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Record-Screenshots'
1417

1518
steps:
16-
- name: ⏬ Checkout with LFS
19+
- name: Remove Record-Screenshots label
20+
if: github.event.label.name == 'Record-Screenshots'
21+
uses: actions-ecosystem/action-remove-labels@v1
22+
with:
23+
labels: Record-Screenshots
24+
- name: ⏬ Checkout with LFS (PR)
25+
if: github.event.label.name == 'Record-Screenshots'
26+
uses: nschloe/[email protected]
27+
with:
28+
persist-credentials: false
29+
ref: ${{ github.event.pull_request.head.ref }}
30+
- name: ⏬ Checkout with LFS (Branch)
31+
if: github.event_name == 'workflow_dispatch'
1732
uses: nschloe/[email protected]
1833
with:
1934
persist-credentials: false
2035
- name: ☕️ Use JDK 17
21-
uses: actions/setup-java@v3
36+
uses: actions/setup-java@v4
2237
with:
2338
distribution: 'temurin' # See 'Supported distributions' for available options
2439
java-version: '17'
2540
# Add gradle cache, this should speed up the process
2641
- name: Configure gradle
27-
uses: gradle/gradle-build-action@v2.9.0
42+
uses: gradle/gradle-build-action@v2.11.1
2843
with:
2944
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
3045
- name: Record screenshots
31-
run: "./.github/workflows/scripts/recordScreenshots.sh"
46+
run: ./.github/workflows/scripts/recordScreenshots.sh
3247
env:
3348
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
3449
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Use JDK 17
23-
uses: actions/setup-java@v3
23+
uses: actions/setup-java@v4
2424
with:
2525
distribution: 'temurin' # See 'Supported distributions' for available options
2626
java-version: '17'
2727
- name: Configure gradle
28-
uses: gradle/gradle-build-action@v2.9.0
28+
uses: gradle/gradle-build-action@v2.11.1
2929
- name: Create app bundle
3030
env:
3131
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
3232
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
3333
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
3434
run: ./gradlew bundleRelease $CI_GRADLE_ARG_PROPERTIES
3535
- name: Upload bundle as artifact
36-
uses: actions/upload-artifact@v3
36+
uses: actions/upload-artifact@v4
3737
with:
3838
name: elementx-app-bundle-unsigned
3939
path: |

.github/workflows/scripts/recordScreenshots.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ do
4848
esac
4949
done
5050

51+
BRANCH=$(git rev-parse --abbrev-ref HEAD)
52+
echo Branch used: $BRANCH
53+
5154
if [[ -z ${TOKEN} ]]; then
5255
echo "No token specified, either set the env var GITHUB_TOKEN or use the --token option"
5356
exit 1
@@ -70,8 +73,6 @@ git config user.email "[email protected]"
7073
git add -A
7174
git commit -m "Update screenshots"
7275

73-
BRANCH=$(git rev-parse --abbrev-ref HEAD)
74-
7576
echo "Pushing changes"
76-
git push "https://$TOKEN@github.com/$REPO.git" $BRANCH:refs/heads/$BRANCH
77+
git push "https://$TOKEN@github.com/$REPO.git" $BRANCH
7778
echo "Done!"

.github/workflows/sonar.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
# https://github.com/actions/checkout/issues/881
2828
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
2929
- name: Use JDK 17
30-
uses: actions/setup-java@v3
30+
uses: actions/setup-java@v4
3131
with:
3232
distribution: 'temurin' # See 'Supported distributions' for available options
3333
java-version: '17'
3434
- name: Configure gradle
35-
uses: gradle/gradle-build-action@v2.9.0
35+
uses: gradle/gradle-build-action@v2.11.1
3636
with:
3737
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
3838
- name: 🔊 Publish results to Sonar

.github/workflows/sync-localazy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
sync-localazy:
1010
runs-on: ubuntu-latest
1111
# Skip in forks
12-
if: github.repository == 'vector-im/element-x-android'
12+
if: github.repository == 'element-hq/element-x-android'
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Set up Python 3.9
16-
uses: actions/setup-python@v4
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: 3.9
1919
- name: Setup Localazy
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Sync SAS strings
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# At 00:00 on every Monday UTC
6+
- cron: '0 0 * * 1'
7+
8+
jobs:
9+
sync-sas-strings:
10+
runs-on: ubuntu-latest
11+
# Skip in forks
12+
if: github.repository == 'element-hq/element-x-android'
13+
# No concurrency required, runs every time on a schedule.
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python 3.8
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: 3.9
20+
- name: Install Prerequisite dependencies
21+
run: |
22+
pip install requests
23+
- name: Run SAS String script
24+
run: ./tools/sas/import_sas_strings.py
25+
- name: Create Pull Request for SAS Strings
26+
uses: peter-evans/create-pull-request@v5
27+
with:
28+
commit-message: Sync SAS Strings
29+
title: Sync SAS Strings
30+
body: |
31+
- Update SAS Strings from matrix-doc.
32+
branch: sync-sas-strings
33+
base: develop
34+
35+

0 commit comments

Comments
 (0)