-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.4.16' into main
- Loading branch information
Showing
3,323 changed files
with
9,308 additions
and
4,672 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
changelog: | ||
categories: | ||
- title: ✨ Features | ||
labels: | ||
- PR-Feature | ||
- title: 🙌 Improvements | ||
labels: | ||
- PR-Change | ||
- title: 🐛 Bugfixes | ||
labels: | ||
- PR-Bugfix | ||
- title: ⚠️ API Changes | ||
labels: | ||
- PR-Api | ||
- title: 🗣 Translations | ||
labels: | ||
- PR-i18n | ||
- title: 🧱 Build | ||
labels: | ||
- PR-Build | ||
- title: 📄 Documentation | ||
labels: | ||
- PR-Doc | ||
- title: 🚧 In development 🚧 | ||
labels: | ||
- PR-Wip | ||
- title: Dependency upgrades | ||
labels: | ||
- PR-Dependencies | ||
|
||
- title: Others | ||
labels: | ||
- PR-misc | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"config:base" | ||
], | ||
"labels" : [ | ||
"dependencies" | ||
"PR-Dependencies" | ||
], | ||
"ignoreDeps" : [ | ||
"string:app_name" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Enterprise APK Build | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
merge_group: | ||
push: | ||
branches: [ develop ] | ||
|
||
# Enrich gradle.properties for CI/CD | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx7g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseG1GC | ||
CI_GRADLE_ARG_PROPERTIES: --stacktrace -Dsonar.gradle.skipCompile=true | ||
|
||
jobs: | ||
build: | ||
name: Build Enterprise APKs | ||
runs-on: ubuntu-latest | ||
# Skip in forks | ||
if: github.repository == 'element-hq/element-x-android' | ||
strategy: | ||
matrix: | ||
variant: [debug, release, nightly] | ||
fail-fast: false | ||
# Allow all jobs on develop. Just one per PR. | ||
concurrency: | ||
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) }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Ensure we are building the branch and not the branch after being merged on develop | ||
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
- name: Configure gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }} | ||
- name: Assemble debug Gplay Enterprise APK | ||
if: ${{ matrix.variant == 'debug' }} | ||
env: | ||
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }} | ||
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }} | ||
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }} | ||
run: ./gradlew :app:assembleGplayDebug -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES | ||
- name: Upload debug Enterprise APKs | ||
if: ${{ matrix.variant == 'debug' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: elementx-enterprise-debug | ||
path: | | ||
app/build/outputs/apk/gplay/debug/*-universal-debug.apk | ||
- name: Compile release sources | ||
if: ${{ matrix.variant == 'release' }} | ||
run: ./gradlew compileReleaseSources -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES | ||
- name: Compile nightly sources | ||
if: ${{ matrix.variant == 'nightly' }} | ||
run: ./gradlew compileGplayNightlySources -PallWarningsAsErrors=true $CI_GRADLE_ARG_PROPERTIES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,17 @@ jobs: | |
name: Danger main check | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- run: | | ||
npm install --save-dev @babel/plugin-transform-flow-strip-types | ||
- name: Danger | ||
uses: danger/[email protected].2 | ||
uses: danger/[email protected].3 | ||
with: | ||
args: "--dangerfile ./tools/danger/dangerfile.js" | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build and release Enterprise nightly application | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Every nights at 4 | ||
- cron: "0 4 * * *" | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx6g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseG1GC | ||
CI_GRADLE_ARG_PROPERTIES: --stacktrace --no-daemon -Dsonar.gradle.skipCompile=true | ||
|
||
jobs: | ||
nightly: | ||
name: Build and publish Enterprise nightly bundle to Firebase | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
- name: Build and upload Nightly application | ||
run: | | ||
./gradlew assembleGplayNightly appDistributionUploadGplayNightly $CI_GRADLE_ARG_PROPERTIES | ||
env: | ||
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }} | ||
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }} | ||
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }} | ||
ELEMENT_ANDROID_NIGHTLY_KEYID: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_KEYID }} | ||
ELEMENT_ANDROID_NIGHTLY_KEYPASSWORD: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_KEYPASSWORD }} | ||
ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD }} | ||
FIREBASE_TOKEN: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_FIREBASE_TOKEN }} | ||
- name: Additionally upload Nightly APK to browserstack for testing | ||
continue-on-error: true # don't block anything by this upload failing (for now) | ||
run: | | ||
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" | ||
env: | ||
BROWSERSTACK_USERNAME: ${{ secrets.ELEMENT_ANDROID_BROWSERSTACK_USERNAME }} | ||
BROWSERSTACK_PASSWORD: ${{ secrets.ELEMENT_ANDROID_BROWSERSTACK_ACCESS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- name: Run code quality check suite | ||
run: ./tools/check/check_code_quality.sh | ||
|
||
|
@@ -68,6 +75,13 @@ jobs: | |
# Ensure we are building the branch and not the branch after being merged on develop | ||
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -100,6 +114,13 @@ jobs: | |
# Ensure we are building the branch and not the branch after being merged on develop | ||
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -136,6 +157,13 @@ jobs: | |
# Ensure we are building the branch and not the branch after being merged on develop | ||
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -168,6 +196,13 @@ jobs: | |
# Ensure we are building the branch and not the branch after being merged on develop | ||
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -200,6 +235,13 @@ jobs: | |
# Ensure we are building the branch and not the branch after being merged on develop | ||
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -245,7 +287,7 @@ jobs: | |
yarn add danger-plugin-lint-report --dev | ||
- name: Danger lint | ||
if: always() | ||
uses: danger/[email protected].2 | ||
uses: danger/[email protected].3 | ||
with: | ||
args: "--dangerfile ./tools/danger/dangerfile-lint.js" | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,40 @@ jobs: | |
path: | | ||
app/build/outputs/bundle/gplayRelease/app-gplay-release.aab | ||
enterprise: | ||
name: Create App Bundle Enterprise | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ format('build-release-main-gplay-{0}', github.sha) }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
- name: Configure gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Create Enterprise app bundle | ||
env: | ||
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }} | ||
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }} | ||
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }} | ||
run: ./gradlew bundleGplayRelease $CI_GRADLE_ARG_PROPERTIES | ||
- name: Upload bundle as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: elementx-enterprise-app-gplay-bundle-unsigned | ||
path: | | ||
app/build/outputs/bundle/gplayRelease/app-gplay-release.aab | ||
fdroid: | ||
name: Create APKs (FDroid) | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,4 @@ jobs: | |
- Update Strings from Localazy | ||
branch: sync-localazy | ||
base: develop | ||
labels: PR-i18n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,5 +31,6 @@ jobs: | |
- Update SAS Strings from matrix-doc. | ||
branch: sync-sas-strings | ||
base: develop | ||
labels: PR-Misc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,13 @@ jobs: | |
# Ensure we are building the branch and not the branch after being merged on develop | ||
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: github.repository == 'element-hq/element-x-android' | ||
run: git submodule update --init --recursive | ||
- name: ☕️ Use JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
Oops, something went wrong.