Skip to content

Commit f4549b6

Browse files
authored
Merge branch 'develop' into feature/bma/paparazzi_version
2 parents e875d9d + 1728c66 commit f4549b6

File tree

460 files changed

+9313
-1791
lines changed

Some content is hidden

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

460 files changed

+9313
-1791
lines changed

.github/ISSUE_TEMPLATE/enhancement.yml

Lines changed: 1 addition & 1 deletion
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 a new feature or make a suggestion.
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).
99
- type: textarea
1010
id: usecase
1111
attributes:

.github/ISSUE_TEMPLATE/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ body:
2020
- [ ] Check the update of the store descriptions (using Google Translate if necessary) to ensure that the changes are acceptable to be published to the stores.
2121
- [ ] While Weblate is locked, and after the PR from Weblate has been merged, handle all the TODOs in the main `strings.xml` file
2222
- [ ] Run the script `./tools/release/pushPlayStoreMetaData.sh`. You can check in the GooglePlay console the Activity log to check the effect.
23-
2423
- [ ] Ensure all [the required PRs](https://github.com/vector-im/element-android/pulls?q=is%3Aopen+is%3Apr+label%3AZ-NextRelease) have been merged
2524
2625
### Do the release
@@ -32,7 +31,6 @@ body:
3231
- [ ] Run the integration test, and especially `UiAllScreensSanityTest.allScreensTest()`
3332
- [ ] Create an account on matrix.org and do some smoke tests that the sanity test does not cover like: 1-1 call, 1-1 video call, Jitsi call for instance
3433
- [ ] Run towncrier: `towncrier build --version v1.2.3 --draft` (remove `--draft` do write the file CHANGES.md)
35-
- [ ] Check that the folder `changelog.d` is empty. It can happen that some remaining files stay here
3634
- [ ] Check the file CHANGES.md consistency. It's possible to reorder items (most important changes first) or change their section if relevant. Also an opportunity to fix some typo, or rewrite things
3735
- [ ] Add file for fastlane under ./fastlane/metadata/android/en-US/changelogs
3836
- [ ] (optional) Push the branch and start a draft PR (will not be merged), to check that the CI is happy with all the changes.

.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/[email protected].3
14+
uses: danger/[email protected].4
1515
with:
1616
args: "--dangerfile tools/danger/dangerfile.js"
1717
env:

.github/workflows/post-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
restore-keys: |
5353
${{ runner.os }}-gradle-
5454
- name: Start synapse server
55-
uses: michaelkaye/[email protected].3
55+
uses: michaelkaye/[email protected].4
5656
with:
5757
uploadLogs: true
5858
httpPort: 8080
@@ -94,7 +94,7 @@ jobs:
9494
needs:
9595
- should-i-run
9696
- ui-tests
97-
if: always() && (needs.should-i-run.result == 'success' ) && ((needs.codecov-units.result != 'success' ) || (needs.ui-tests.result != 'success') || (needs.integration-tests.result != 'success'))
97+
if: always() && (needs.should-i-run.result == 'success' ) && (needs.ui-tests.result != 'success')
9898
# No concurrency required, runs every time on a schedule.
9999
steps:
100100
- uses: michaelkaye/[email protected]

.github/workflows/quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
yarn add danger-plugin-lint-report --dev
6767
- name: Danger lint
6868
if: always()
69-
uses: danger/[email protected].3
69+
uses: danger/[email protected].4
7070
with:
7171
args: "--dangerfile tools/danger/dangerfile-lint.js"
7272
env:

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- uses: actions/setup-python@v4
5151
with:
5252
python-version: 3.8
53-
- uses: michaelkaye/[email protected].3
53+
- uses: michaelkaye/[email protected].4
5454
with:
5555
uploadLogs: true
5656
httpPort: 8080

.github/workflows/triage-incoming.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
# Skip in forks
1111
if: github.repository == 'vector-im/element-android'
1212
steps:
13-
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
13+
- uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d
1414
with:
1515
project: Issue triage
1616
column: Incoming

.github/workflows/triage-labelled.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ jobs:
4848
# Skip in forks
4949
if: >
5050
github.repository == 'vector-im/element-android' &&
51-
contains(github.event.issue.labels.*.name, 'X-Needs-Design')
51+
contains(github.event.issue.labels.*.name, 'X-Needs-Design') &&
52+
(contains(github.event.issue.labels.*.name, 'S-Critical') &&
53+
(contains(github.event.issue.labels.*.name, 'O-Frequent') ||
54+
contains(github.event.issue.labels.*.name, 'O-Occasional')) ||
55+
(contains(github.event.issue.labels.*.name, 'S-Major') &&
56+
contains(github.event.issue.labels.*.name, 'O-Frequent')) ||
57+
contains(github.event.issue.labels.*.name, 'A11y'))
5258
steps:
5359
- uses: octokit/[email protected]
5460
id: add_to_project

.github/workflows/triage-priority-bugs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
contains(github.event.issue.labels.*.name, 'A11y') &&
2525
contains(github.event.issue.labels.*.name, 'O-Frequent'))
2626
steps:
27-
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
27+
- uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d
2828
with:
2929
project: Android App Team
3030
column: Important Issues & Topics (P1)
@@ -50,7 +50,7 @@ jobs:
5050
contains(github.event.issue.labels.*.name, 'A11y') &&
5151
contains(github.event.issue.labels.*.name, 'O-Frequent')))
5252
steps:
53-
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
53+
- uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d
5454
with:
5555
project: Crypto Team
5656
column: Ready

.github/workflows/triage-unlabelled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
echo "ALREADY_IN_BOARD=false" >> $GITHUB_ENV
2929
fi
3030
- name: Move issue
31-
uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
31+
uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d
3232
if: ${{ env.ALREADY_IN_BOARD == 'true' }}
3333
with:
3434
project: Issue triage

CHANGES.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
Changes in Element v1.5.4 (2022-10-19)
2+
======================================
3+
4+
Features ✨
5+
----------
6+
- Add WYSIWYG editor, under a lab flag. ([#7288](https://github.com/vector-im/element-android/issues/7288))
7+
- New Device management, can be enabled in the labs settings.
8+
- Voice broadcast can be enabled in the labs settings (recording is possible only on Android 10 and up).
9+
10+
Bugfixes 🐛
11+
----------
12+
- Fix wrong mic button direction to cancel on RTL languages ([#5968](https://github.com/vector-im/element-android/issues/5968))
13+
- Handle properly when getUser returns null - prefer using getUserOrDefault ([#7372](https://github.com/vector-im/element-android/issues/7372))
14+
- [Device Management] Long session names not handled well ([#7310](https://github.com/vector-im/element-android/issues/7310))
15+
- Fix editing formatted messages with plain text editor ([#7359](https://github.com/vector-im/element-android/issues/7359))
16+
17+
In development 🚧
18+
----------------
19+
- [Device Management] Save "matrix_client_information" events on login/registration ([#7257](https://github.com/vector-im/element-android/issues/7257))
20+
- [Device management] Add lab flag for the feature ([#7336](https://github.com/vector-im/element-android/issues/7336))
21+
- [Device management] Add lab flag for matrix client info account data event ([#7344](https://github.com/vector-im/element-android/issues/7344))
22+
- [Device Management] Redirect to the new screen everywhere when lab flag is on ([#7374](https://github.com/vector-im/element-android/issues/7374))
23+
- [Device Management] Show correct device type icons ([#7277](https://github.com/vector-im/element-android/issues/7277))
24+
- [Device Management] Render extended device info ([#7294](https://github.com/vector-im/element-android/issues/7294))
25+
- [Device management] Improve the parsing for OS of Desktop/Web sessions ([#7321](https://github.com/vector-im/element-android/issues/7321))
26+
- [Device management] Hide the IP address and last activity date on current session ([#7324](https://github.com/vector-im/element-android/issues/7324))
27+
- [Device management] Update the unknown verification status icon ([#7327](https://github.com/vector-im/element-android/issues/7327))
28+
- [Voice Broadcast] Add the "io.element.voice_broadcast_info" state event with a minimalist timeline widget ([#7273](https://github.com/vector-im/element-android/issues/7273))
29+
- [Voice Broadcast] Aggregate state events in the timeline ([#7283](https://github.com/vector-im/element-android/issues/7283))
30+
- [Voice Broadcast] Record and send non aggregated voice messages to the room ([#7363](https://github.com/vector-im/element-android/issues/7363))
31+
- [Voice Broadcast] Start listening to a voice broadcast ([#7387](https://github.com/vector-im/element-android/issues/7387))
32+
- [Voice Broadcast] Enable the feature (behind a lab flag and only for Android 10 and up) ([#7393](https://github.com/vector-im/element-android/issues/7393))
33+
- [Voice Broadcast] Add additional data in events ([#7397](https://github.com/vector-im/element-android/issues/7397))
34+
- Implements MSC3881: Parses `enabled` and `device_id` fields from updated Pusher API ([#7217](https://github.com/vector-im/element-android/issues/7217))
35+
- Adds pusher toggle setting to device manager v2 ([#7261](https://github.com/vector-im/element-android/issues/7261))
36+
- Implement QR Code Login UI ([#7338](https://github.com/vector-im/element-android/issues/7338))
37+
- Implements client-side of local notification settings event ([#7300](https://github.com/vector-im/element-android/issues/7300))
38+
- Links "Enable Notifications for this session" setting to enabled value in pusher ([#7281](https://github.com/vector-im/element-android/issues/7281))
39+
40+
SDK API changes ⚠️
41+
------------------
42+
- Stop using `original_event` field from `/relations` endpoint ([#7282](https://github.com/vector-im/element-android/issues/7282))
43+
- Add `formattedText` or similar optional parameters in several methods:
44+
* RelationService:
45+
* editTextMessage
46+
* editReply
47+
* replyToMessage
48+
* SendService:
49+
* sendQuotedTextMessage
50+
This allows us to send any HTML formatted text message without needing to rely on automatic Markdown > HTML translation. All these new parameters have a `null` value by default, so previous calls to these API methods remain compatible. ([#7288](https://github.com/vector-im/element-android/issues/7288))
51+
- Add support for `m.login.token` auth during QR code based sign in ([#7358](https://github.com/vector-im/element-android/issues/7358))
52+
- Allow getting the formatted or plain text body of a message for the fun `TimelineEvent.getTextEditableContent()`. ([#7359](https://github.com/vector-im/element-android/issues/7359))
53+
54+
Other changes
55+
-------------
56+
- Refactor TimelineFragment, split it into MessageComposerFragment and VoiceRecorderFragment. ([#7285](https://github.com/vector-im/element-android/issues/7285))
57+
- Dependency to arrow has been removed. Please use `org.matrix.android.sdk.api.util.Optional` instead. ([#7335](https://github.com/vector-im/element-android/issues/7335))
58+
- Update WYSIWYG editor designs. ([#7354](https://github.com/vector-im/element-android/issues/7354))
59+
- Update WYSIWYG library to v0.2.1. ([#7384](https://github.com/vector-im/element-android/issues/7384))
60+
61+
162
Changes in Element v1.5.2 (2022-10-05)
263
======================================
364

build.gradle

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ buildscript {
2828
classpath 'com.google.gms:google-services:4.3.14'
2929
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513'
3030
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.5'
31-
classpath "com.likethesalad.android:stem-plugin:2.2.2"
32-
classpath 'org.owasp:dependency-check-gradle:7.2.1'
33-
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.7.10"
31+
classpath "com.likethesalad.android:stem-plugin:2.2.3"
32+
classpath 'org.owasp:dependency-check-gradle:7.3.0'
33+
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.7.20"
3434
classpath "org.jetbrains.kotlinx:kotlinx-knit:0.4.0"
3535
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
3636
classpath libs.squareup.paparazziPlugin
@@ -45,7 +45,7 @@ plugins {
4545
// Detekt
4646
id "io.gitlab.arturbosch.detekt" version "1.21.0"
4747
// Ksp
48-
id "com.google.devtools.ksp" version "1.7.20-1.0.6"
48+
id "com.google.devtools.ksp" version "1.7.20-1.0.7"
4949

5050
// Dependency Analysis
5151
id 'com.autonomousapps.dependency-analysis' version "1.13.1"
@@ -342,17 +342,21 @@ subprojects { project ->
342342
if (it instanceof com.android.build.gradle.LibraryExtension) {
343343
libraryVariants.all { variant ->
344344
def outputFolder = new File("build/generated/ksp/${variant.name}/kotlin")
345-
variant.addJavaSourceFoldersToModel(outputFolder)
346-
android.sourceSets.getAt(variant.name).java {
347-
srcDir(outputFolder)
345+
if (outputFolder.exists()) {
346+
variant.addJavaSourceFoldersToModel(outputFolder)
347+
android.sourceSets.getAt(variant.name).java {
348+
srcDir(outputFolder)
349+
}
348350
}
349351
}
350352
} else if (it instanceof com.android.build.gradle.AppExtension) {
351353
applicationVariants.all { variant ->
352354
def outputFolder = new File("build/generated/ksp/${variant.name}/kotlin")
353-
variant.addJavaSourceFoldersToModel(outputFolder)
354-
android.sourceSets.getAt(variant.name).java {
355-
srcDir(outputFolder)
355+
if (outputFolder.exists()) {
356+
variant.addJavaSourceFoldersToModel(outputFolder)
357+
android.sourceSets.getAt(variant.name).java {
358+
srcDir(outputFolder)
359+
}
356360
}
357361
}
358362
}

changelog.d/7217.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7257.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7261.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7273.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7277.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7281.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7283.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7285.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7288.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7288.sdk

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

changelog.d/7294.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7300.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7310.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7321.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7324.wip

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7335.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7336.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/7369.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add logic for sign in with QR code

changelog.d/7419.wip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Voice Broadcast] Live listening support

changelog.d/7421.wip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Voice Broadcast] Improve rendering in the timeline

changelog.d/7428.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix crash by disabling Flipper on Android API 22 and below - only affects debug version of the application.

0 commit comments

Comments
 (0)