Skip to content

Commit 4f3a66f

Browse files
committed
Merge branch 'release/0.4.12'
2 parents 0f08e80 + faca52d commit 4f3a66f

File tree

2,182 files changed

+16371
-8345
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,182 files changed

+16371
-8345
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99

1010
# Enrich gradle.properties for CI/CD
1111
env:
12-
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx8g -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseParallelGC
13-
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 8 --no-daemon
12+
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx7g -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseParallelGC
13+
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 8
1414

1515
jobs:
1616
debug:
@@ -41,21 +41,28 @@ jobs:
4141
uses: gradle/actions/setup-gradle@v3
4242
with:
4343
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
44-
- name: Assemble debug APK
44+
- name: Assemble debug Gplay APK
4545
if: ${{ matrix.variant == 'debug' }}
4646
env:
4747
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
4848
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
4949
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
50-
run: ./gradlew :app:assembleGplayDebug :app:assembleFDroidDebug -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES
51-
- name: Upload APK APKs
50+
run: ./gradlew :app:assembleGplayDebug -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES
51+
- name: Assemble debug Fdroid APK
52+
if: ${{ matrix.variant == 'debug' }}
53+
env:
54+
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
55+
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
56+
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
57+
run: ./gradlew app:assembleFDroidDebug -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES
58+
- name: Upload debug APKs
5259
if: ${{ matrix.variant == 'debug' }}
5360
uses: actions/upload-artifact@v4
5461
with:
5562
name: elementx-debug
5663
path: |
57-
app/build/outputs/apk/gplay/debug/*.apk
58-
app/build/outputs/apk/fdroid/debug/*.apk
64+
app/build/outputs/apk/gplay/debug/*-universal-debug.apk
65+
app/build/outputs/apk/fdroid/debug/*-universal-debug.apk
5966
- uses: rnkdsh/[email protected]
6067
id: diawi
6168
# Do not fail the whole build if Diawi upload fails

.github/workflows/danger.yml

Lines changed: 1 addition & 1 deletion
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/danger-js@11.3.1
14+
uses: danger/danger-js@12.2.0
1515
with:
1616
args: "--dangerfile ./tools/danger/dangerfile.js"
1717
env:

.github/workflows/generate_github_pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
uses: gradle/actions/setup-gradle@v3
2323
with:
2424
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
25-
- name: Set up Python 3.9
25+
- name: Set up Python 3.12
2626
uses: actions/setup-python@v5
2727
with:
28-
python-version: 3.9
28+
python-version: 3.12
2929
- name: Run World screenshots generation script
3030
run: |
3131
./tools/test/generateWorldScreenshots.py

.github/workflows/maestro.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ env:
1212
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 8 --no-daemon
1313

1414
jobs:
15-
maestro-cloud:
16-
name: Maestro test suite
15+
build-apk:
16+
name: Build APK
1717
runs-on: ubuntu-latest
1818
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Run-Maestro'
19-
strategy:
20-
fail-fast: false
2119
# Allow one per PR.
2220
concurrency:
2321
group: ${{ format('maestro-{0}', github.ref) }}
@@ -41,19 +39,49 @@ jobs:
4139
distribution: 'temurin' # See 'Supported distributions' for available options
4240
java-version: '17'
4341
- name: Assemble debug APK
44-
run: ./gradlew :app:assembleDebug $CI_GRADLE_ARG_PROPERTIES
42+
run: ./gradlew :app:assembleGplayDebug $CI_GRADLE_ARG_PROPERTIES
4543
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
4644
env:
4745
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
4846
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
4947
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
48+
- name: Upload APK as artifact
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: elementx-apk-maestro
52+
path: |
53+
app/build/outputs/apk/gplay/debug/app-gplay-x86_64-debug.apk
54+
retention-days: 5
55+
overwrite: true
56+
if-no-files-found: error
57+
58+
maestro-cloud:
59+
name: Maestro test suite
60+
runs-on: ubuntu-latest
61+
needs: build-apk
62+
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Run-Maestro'
63+
# Allow one per PR.
64+
concurrency:
65+
group: ${{ format('maestro-{0}', github.ref) }}
66+
cancel-in-progress: true
67+
steps:
68+
- uses: actions/checkout@v4
69+
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
70+
with:
71+
# Ensure we are building the branch and not the branch after being merged on develop
72+
# https://github.com/actions/checkout/issues/881
73+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
74+
- name: Download APK artifact from previous job
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: elementx-apk-maestro
5078
- uses: mobile-dev-inc/[email protected]
5179
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
5280
with:
5381
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }}
5482
# Doc says (https://github.com/mobile-dev-inc/action-maestro-cloud#android):
5583
# app-file should point to an x86 compatible APK file, so upload the x86_64 one (much smaller than the universal APK).
56-
app-file: app/build/outputs/apk/gplay/debug/app-gplay-x86_64-debug.apk
84+
app-file: app-gplay-x86_64-debug.apk
5785
env: |
5886
MAESTRO_USERNAME=maestroelement
5987
MAESTRO_PASSWORD=${{ secrets.MATRIX_MAESTRO_ACCOUNT_PASSWORD }}

.github/workflows/quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v4
29-
- name: Set up Python 3.9
29+
- name: Set up Python 3.12
3030
uses: actions/setup-python@v5
3131
with:
32-
python-version: 3.9
32+
python-version: 3.12
3333
- name: Search for invalid screenshot files
3434
run: ./tools/test/checkInvalidScreenshots.py
3535

@@ -72,7 +72,7 @@ jobs:
7272
yarn add danger-plugin-lint-report --dev
7373
- name: Danger lint
7474
if: always()
75-
uses: danger/danger-js@11.3.1
75+
uses: danger/danger-js@12.2.0
7676
with:
7777
args: "--dangerfile ./tools/danger/dangerfile-lint.js"
7878
env:

.github/workflows/sync-localazy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
uses: gradle/actions/setup-gradle@v3
2222
with:
2323
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
24-
- name: Set up Python 3.9
24+
- name: Set up Python 3.12
2525
uses: actions/setup-python@v5
2626
with:
27-
python-version: 3.9
27+
python-version: 3.12
2828
- name: Setup Localazy
2929
run: |
3030
curl -sS https://dist.localazy.com/debian/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/localazy.gpg
@@ -33,6 +33,7 @@ jobs:
3333
- name: Run Localazy script
3434
run: |
3535
./tools/localazy/downloadStrings.sh --all
36+
./tools/localazy/importSupportedLocalesFromLocalazy.py
3637
./tools/test/generateAllScreenshots.py
3738
- name: Create Pull Request for Strings
3839
uses: peter-evans/create-pull-request@v6

.github/workflows/sync-sas-strings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
# No concurrency required, runs every time on a schedule.
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up Python 3.9
16+
- name: Set up Python 3.12
1717
uses: actions/setup-python@v5
1818
with:
19-
python-version: 3.9
19+
python-version: 3.12
2020
- name: Install Prerequisite dependencies
2121
run: |
2222
pip install requests

.maestro/tests/roomList/createAndDeleteRoom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ appId: ${MAESTRO_APP_ID}
1616
- tapOn: "Create"
1717
- takeScreenshot: build/maestro/320-createAndDeleteRoom
1818
- tapOn: "aRoomName"
19-
- tapOn: "Invite people"
19+
- tapOn: "Invite"
2020
# assert there's 1 member and 1 invitee
2121
- tapOn: "Search for someone"
2222
- inputText: ${MAESTRO_INVITEE2_MXID}

0 commit comments

Comments
 (0)