Skip to content

Commit 92dc7a3

Browse files
committed
Merge branch 'release/0.4.16' into main
2 parents e19c723 + b429adb commit 92dc7a3

File tree

3,323 files changed

+9308
-4672
lines changed

Some content is hidden

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

3,323 files changed

+9308
-4672
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Uncomment this markdown table below and edit the last line `|||`:
5555
- [ ] UI change has been tested on both light and dark themes
5656
- [ ] 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/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#changelog
58+
- [ ] Pull request title will be used in the release note, it clearly define what will change for the user
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/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
changelog:
2+
categories:
3+
- title: ✨ Features
4+
labels:
5+
- PR-Feature
6+
- title: 🙌 Improvements
7+
labels:
8+
- PR-Change
9+
- title: 🐛 Bugfixes
10+
labels:
11+
- PR-Bugfix
12+
- title: ⚠️ API Changes
13+
labels:
14+
- PR-Api
15+
- title: 🗣 Translations
16+
labels:
17+
- PR-i18n
18+
- title: 🧱 Build
19+
labels:
20+
- PR-Build
21+
- title: 📄 Documentation
22+
labels:
23+
- PR-Doc
24+
- title: 🚧 In development 🚧
25+
labels:
26+
- PR-Wip
27+
- title: Dependency upgrades
28+
labels:
29+
- PR-Dependencies
30+
31+
- title: Others
32+
labels:
33+
- PR-misc
34+
- "*"

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"config:base"
55
],
66
"labels" : [
7-
"dependencies"
7+
"PR-Dependencies"
88
],
99
"ignoreDeps" : [
1010
"string:app_name"

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
debug:
1717
name: Build APKs
1818
runs-on: ubuntu-latest
19-
# Skip for `main`
20-
if: github.ref != 'refs/heads/main'
2119
strategy:
2220
matrix:
2321
variant: [debug, release, nightly, samples]
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Enterprise APK Build
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
merge_group:
7+
push:
8+
branches: [ develop ]
9+
10+
# Enrich gradle.properties for CI/CD
11+
env:
12+
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx7g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseG1GC
13+
CI_GRADLE_ARG_PROPERTIES: --stacktrace -Dsonar.gradle.skipCompile=true
14+
15+
jobs:
16+
build:
17+
name: Build Enterprise APKs
18+
runs-on: ubuntu-latest
19+
# Skip in forks
20+
if: github.repository == 'element-hq/element-x-android'
21+
strategy:
22+
matrix:
23+
variant: [debug, release, nightly]
24+
fail-fast: false
25+
# Allow all jobs on develop. Just one per PR.
26+
concurrency:
27+
group: ${{ github.ref == 'refs/heads/develop' && format('build-develop-enterprise-{0}-{1}', matrix.variant, github.sha) || format('build-enterprise-{0}-{1}', matrix.variant, github.ref) }}
28+
cancel-in-progress: true
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
# Ensure we are building the branch and not the branch after being merged on develop
33+
# https://github.com/actions/checkout/issues/881
34+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
35+
- name: Add SSH private keys for submodule repositories
36+
uses: webfactory/[email protected]
37+
with:
38+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
39+
- name: Clone submodules
40+
run: git submodule update --init --recursive
41+
- name: Use JDK 17
42+
uses: actions/setup-java@v4
43+
with:
44+
distribution: 'temurin' # See 'Supported distributions' for available options
45+
java-version: '17'
46+
- name: Configure gradle
47+
uses: gradle/actions/setup-gradle@v3
48+
with:
49+
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
50+
- name: Assemble debug Gplay Enterprise APK
51+
if: ${{ matrix.variant == 'debug' }}
52+
env:
53+
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
54+
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
55+
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
56+
run: ./gradlew :app:assembleGplayDebug -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES
57+
- name: Upload debug Enterprise APKs
58+
if: ${{ matrix.variant == 'debug' }}
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: elementx-enterprise-debug
62+
path: |
63+
app/build/outputs/apk/gplay/debug/*-universal-debug.apk
64+
- name: Compile release sources
65+
if: ${{ matrix.variant == 'release' }}
66+
run: ./gradlew compileReleaseSources -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES
67+
- name: Compile nightly sources
68+
if: ${{ matrix.variant == 'nightly' }}
69+
run: ./gradlew compileGplayNightlySources -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES

.github/workflows/danger.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ jobs:
88
name: Danger main check
99
steps:
1010
- uses: actions/checkout@v4
11+
- name: Add SSH private keys for submodule repositories
12+
uses: webfactory/[email protected]
13+
with:
14+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
15+
- name: Clone submodules
16+
if: github.repository == 'element-hq/element-x-android'
17+
run: git submodule update --init --recursive
1118
- run: |
1219
npm install --save-dev @babel/plugin-transform-flow-strip-types
1320
- name: Danger
14-
uses: danger/[email protected].2
21+
uses: danger/[email protected].3
1522
with:
1623
args: "--dangerfile ./tools/danger/dangerfile.js"
1724
env:

.github/workflows/fork-pr-notice.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
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:
2626
2727
- Your branch should be based on \`origin/develop\`, at least when it was created.
28-
- 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 title of the PR will be used for release notes, so it needs to describe the change visible to the user.
2929
- The test pass locally running \`./gradlew test\`.
3030
- The code quality check suite pass locally running \`./gradlew runQualityChecks\`.
3131
- 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).`

.github/workflows/nightly.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ jobs:
2222
with:
2323
distribution: 'temurin' # See 'Supported distributions' for available options
2424
java-version: '17'
25-
- name: Install towncrier
26-
run: |
27-
python3 -m pip install towncrier
28-
- name: Prepare changelog file
29-
run: |
30-
mv towncrier.toml towncrier.toml.bak
31-
sed 's/CHANGES\.md/CHANGES_NIGHTLY\.md/' towncrier.toml.bak > towncrier.toml
32-
rm towncrier.toml.bak
33-
yes n | towncrier build --version nightly
3425
- name: Build and upload Nightly application
3526
run: |
3627
./gradlew assembleGplayNightly appDistributionUploadGplayNightly $CI_GRADLE_ARG_PROPERTIES
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and release Enterprise nightly application
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Every nights at 4
7+
- cron: "0 4 * * *"
8+
9+
env:
10+
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx6g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseG1GC
11+
CI_GRADLE_ARG_PROPERTIES: --stacktrace --no-daemon -Dsonar.gradle.skipCompile=true
12+
13+
jobs:
14+
nightly:
15+
name: Build and publish Enterprise nightly bundle to Firebase
16+
runs-on: ubuntu-latest
17+
if: ${{ github.repository == 'element-hq/element-x-android' }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Add SSH private keys for submodule repositories
21+
uses: webfactory/[email protected]
22+
with:
23+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
24+
- name: Clone submodules
25+
run: git submodule update --init --recursive
26+
- name: Use JDK 17
27+
uses: actions/setup-java@v4
28+
with:
29+
distribution: 'temurin' # See 'Supported distributions' for available options
30+
java-version: '17'
31+
- name: Build and upload Nightly application
32+
run: |
33+
./gradlew assembleGplayNightly appDistributionUploadGplayNightly $CI_GRADLE_ARG_PROPERTIES
34+
env:
35+
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
36+
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
37+
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
38+
ELEMENT_ANDROID_NIGHTLY_KEYID: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_KEYID }}
39+
ELEMENT_ANDROID_NIGHTLY_KEYPASSWORD: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_KEYPASSWORD }}
40+
ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD }}
41+
FIREBASE_TOKEN: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_FIREBASE_TOKEN }}
42+
- name: Additionally upload Nightly APK to browserstack for testing
43+
continue-on-error: true # don't block anything by this upload failing (for now)
44+
run: |
45+
curl -u "$BROWSERSTACK_USERNAME:$BROWSERSTACK_PASSWORD" -X POST "https://api-cloud.browserstack.com/app-automate/upload" -F "file=@app/build/outputs/apk/gplay/nightly/app-gplay-universal-nightly.apk" -F "custom_id=element-x-android-nightly"
46+
env:
47+
BROWSERSTACK_USERNAME: ${{ secrets.ELEMENT_ANDROID_BROWSERSTACK_USERNAME }}
48+
BROWSERSTACK_PASSWORD: ${{ secrets.ELEMENT_ANDROID_BROWSERSTACK_ACCESS_KEY }}

.github/workflows/quality.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21+
- name: Add SSH private keys for submodule repositories
22+
uses: webfactory/[email protected]
23+
with:
24+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
25+
- name: Clone submodules
26+
if: github.repository == 'element-hq/element-x-android'
27+
run: git submodule update --init --recursive
2128
- name: Run code quality check suite
2229
run: ./tools/check/check_code_quality.sh
2330

@@ -68,6 +75,13 @@ jobs:
6875
# Ensure we are building the branch and not the branch after being merged on develop
6976
# https://github.com/actions/checkout/issues/881
7077
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
78+
- name: Add SSH private keys for submodule repositories
79+
uses: webfactory/[email protected]
80+
with:
81+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
82+
- name: Clone submodules
83+
if: github.repository == 'element-hq/element-x-android'
84+
run: git submodule update --init --recursive
7185
- name: Use JDK 17
7286
uses: actions/setup-java@v4
7387
with:
@@ -100,6 +114,13 @@ jobs:
100114
# Ensure we are building the branch and not the branch after being merged on develop
101115
# https://github.com/actions/checkout/issues/881
102116
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
117+
- name: Add SSH private keys for submodule repositories
118+
uses: webfactory/[email protected]
119+
with:
120+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
121+
- name: Clone submodules
122+
if: github.repository == 'element-hq/element-x-android'
123+
run: git submodule update --init --recursive
103124
- name: Use JDK 17
104125
uses: actions/setup-java@v4
105126
with:
@@ -136,6 +157,13 @@ jobs:
136157
# Ensure we are building the branch and not the branch after being merged on develop
137158
# https://github.com/actions/checkout/issues/881
138159
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
160+
- name: Add SSH private keys for submodule repositories
161+
uses: webfactory/[email protected]
162+
with:
163+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
164+
- name: Clone submodules
165+
if: github.repository == 'element-hq/element-x-android'
166+
run: git submodule update --init --recursive
139167
- name: Use JDK 17
140168
uses: actions/setup-java@v4
141169
with:
@@ -168,6 +196,13 @@ jobs:
168196
# Ensure we are building the branch and not the branch after being merged on develop
169197
# https://github.com/actions/checkout/issues/881
170198
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
199+
- name: Add SSH private keys for submodule repositories
200+
uses: webfactory/[email protected]
201+
with:
202+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
203+
- name: Clone submodules
204+
if: github.repository == 'element-hq/element-x-android'
205+
run: git submodule update --init --recursive
171206
- name: Use JDK 17
172207
uses: actions/setup-java@v4
173208
with:
@@ -200,6 +235,13 @@ jobs:
200235
# Ensure we are building the branch and not the branch after being merged on develop
201236
# https://github.com/actions/checkout/issues/881
202237
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
238+
- name: Add SSH private keys for submodule repositories
239+
uses: webfactory/[email protected]
240+
with:
241+
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
242+
- name: Clone submodules
243+
if: github.repository == 'element-hq/element-x-android'
244+
run: git submodule update --init --recursive
203245
- name: Use JDK 17
204246
uses: actions/setup-java@v4
205247
with:
@@ -245,7 +287,7 @@ jobs:
245287
yarn add danger-plugin-lint-report --dev
246288
- name: Danger lint
247289
if: always()
248-
uses: danger/[email protected].2
290+
uses: danger/[email protected].3
249291
with:
250292
args: "--dangerfile ./tools/danger/dangerfile-lint.js"
251293
env:

0 commit comments

Comments
 (0)