Skip to content

Commit

Permalink
Merge branch 'release/1.5.2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Oct 5, 2022
2 parents aca5d3f + b49585b commit f6411d6
Show file tree
Hide file tree
Showing 177 changed files with 4,504 additions and 525 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- 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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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:
Expand Down
56 changes: 56 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
Changes in Element v1.5.2 (2022-10-05)
======================================

Features ✨
----------
- New App Layout is now enabled by default! Go to the Settings > Labs to toggle this ([#7166](https://github.com/vector-im/element-android/issues/7166))
- Render inline images in the timeline ([#351](https://github.com/vector-im/element-android/issues/351))
- Add privacy setting to disable personalized learning by the keyboard ([#6633](https://github.com/vector-im/element-android/issues/6633))

Bugfixes 🐛
----------
- Disable emoji keyboard not applies in reply ([#5029](https://github.com/vector-im/element-android/issues/5029))
- Fix animated images not autoplaying sometimes if only a thumbnail was fetched from the server ([#6215](https://github.com/vector-im/element-android/issues/6215))
- Add Warning shield when a user previously verified rotated their cross signing keys ([#6702](https://github.com/vector-im/element-android/issues/6702))
- Can't verify user when option to send keys to verified devices only is selected ([#6723](https://github.com/vector-im/element-android/issues/6723))
- Add option to only send to verified devices per room (web parity) ([#6725](https://github.com/vector-im/element-android/issues/6725))
- Delete pin code key and the key used for biometrics authentication on logout ([#6906](https://github.com/vector-im/element-android/issues/6906))
- Fix crash on previewing images to upload on Android Pie. ([#7184](https://github.com/vector-im/element-android/issues/7184))
- Fix app restarts in loop on Android 13 on the first run of the app. ([#7224](https://github.com/vector-im/element-android/issues/7224))

In development 🚧
----------------
- [Device Management] Learn more bottom sheets ([#7100](https://github.com/vector-im/element-android/issues/7100))
- [Device management] Verify current session ([#7114](https://github.com/vector-im/element-android/issues/7114))
- [Device management] Verify another session ([#7143](https://github.com/vector-im/element-android/issues/7143))
- [Device management] Rename a session ([#7158](https://github.com/vector-im/element-android/issues/7158))
- [Device Manager] Unverified and inactive sessions list ([#7170](https://github.com/vector-im/element-android/issues/7170))
- [Device management] Sign out a session ([#7190](https://github.com/vector-im/element-android/issues/7190))
- [Device Manager] Parse user agents ([#7247](https://github.com/vector-im/element-android/issues/7247))
- [Voice Broadcast] Add a feature flag with the composer action ([#7258](https://github.com/vector-im/element-android/issues/7258))

Improved Documentation 📚
------------------------
- Draft onboarding documentation of the project at `./docs/_developer_onboarding.md` ([#7126](https://github.com/vector-im/element-android/issues/7126))

SDK API changes ⚠️
------------------
- Allow the sync timeout to be configured (mainly useful for testing) ([#7198](https://github.com/vector-im/element-android/issues/7198))
- Ports SDK instrumentation tests to use suspending functions instead of countdown latches ([#7207](https://github.com/vector-im/element-android/issues/7207))
- [Device Manager] Extend user agent to include device information ([#7209](https://github.com/vector-im/element-android/issues/7209))

Other changes
-------------
- Add support for `/tableflip` command ([#12](https://github.com/vector-im/element-android/issues/12))
- Decreases the size of rounded corners and increases the maximum width of message bubbles to help avoid unnecessary unused space on screen ([#5712](https://github.com/vector-im/element-android/issues/5712))
- Adds screenshot testing tooling ([#5798](https://github.com/vector-im/element-android/issues/5798))
- [AppLayout]: added tracking of new analytics events ([#6508](https://github.com/vector-im/element-android/issues/6508))
- Target API 12 and compile with Android SDK 32. ([#6929](https://github.com/vector-im/element-android/issues/6929))
- Add basic integration of Sentry to capture errors and crashes if user has given consent. ([#7076](https://github.com/vector-im/element-android/issues/7076))
- Add support to `/devtools` command. ([#7126](https://github.com/vector-im/element-android/issues/7126))
- Fix lint warning, and cleanup the code ([#7159](https://github.com/vector-im/element-android/issues/7159))
- Mutualize the pending auth handling ([#7193](https://github.com/vector-im/element-android/issues/7193))
- CI: Prevent modification of translations by developer. ([#7211](https://github.com/vector-im/element-android/issues/7211))
- Fix typo in strings.xml and make sure this is American English. ([#7287](https://github.com/vector-im/element-android/issues/7287))


Changes in Element v1.5.1 (2022-09-28)
======================================

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ buildscript {
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513'
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.5'
classpath "com.likethesalad.android:stem-plugin:2.2.2"
classpath 'org.owasp:dependency-check-gradle:7.2.0'
classpath 'org.owasp:dependency-check-gradle:7.2.1'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.7.10"
classpath "org.jetbrains.kotlinx:kotlinx-knit:0.4.0"
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
Expand Down
1 change: 0 additions & 1 deletion changelog.d/12.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5798.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6929.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7114.wip

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7126.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7126.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7143.wip

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7158.wip

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7159.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7166.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7170.wip

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7190.wip

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7193.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7198.sdk

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7207.sdk

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7209.sdk

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/7211.misc

This file was deleted.

14 changes: 10 additions & 4 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ext.versions = [

def gradle = "7.2.2"
// Ref: https://kotlinlang.org/releases.html
def kotlin = "1.7.10"
def kotlin = "1.7.20"
def kotlinCoroutines = "1.6.4"
def dagger = "2.43.2"
def dagger = "2.44"
def appDistribution = "16.0.0-beta04"
def retrofit = "2.9.0"
def arrow = "0.8.2"
Expand All @@ -22,13 +22,15 @@ def flowBinding = "1.2.0"
def flipper = "0.164.0"
def epoxy = "4.6.2"
def mavericks = "2.7.0"
def glide = "4.13.2"
def glide = "4.14.1"
def bigImageViewer = "1.8.1"
def jjwt = "0.11.5"
// Temporary version to unblock #6929. Once 0.16.0 is released we should use it, and revert
// the whole commit which set version 0.16.0-SNAPSHOT
def vanniktechEmoji = "0.16.0-SNAPSHOT"

def sentry = "6.4.1"

def fragment = "1.5.3"

// Testing
Expand Down Expand Up @@ -119,6 +121,7 @@ ext.libs = [
markwon : [
'core' : "io.noties.markwon:core:$markwon",
'extLatex' : "io.noties.markwon:ext-latex:$markwon",
'imageGlide' : "io.noties.markwon:image-glide:$markwon",
'inlineParser' : "io.noties.markwon:inline-parser:$markwon",
'html' : "io.noties.markwon:html:$markwon"
],
Expand Down Expand Up @@ -164,10 +167,13 @@ ext.libs = [
apache : [
'commonsImaging' : "org.apache.sanselan:sanselan:0.97-incubator"
],
sentry: [
'sentryAndroid' : "io.sentry:sentry-android:$sentry"
],
tests : [
'kluent' : "org.amshove.kluent:kluent-android:1.68",
'timberJunitRule' : "net.lachlanmckee:timber-junit-rule:1.0.1",
'junit' : "junit:junit:4.13.2"
'junit' : "junit:junit:4.13.2",
]
]

Expand Down
2 changes: 1 addition & 1 deletion dependencies_groups.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ ext.groups = [
'io.opencensus',
'io.reactivex.rxjava2',
'io.realm',
'io.sentry',
'it.unimi.dsi',
'jakarta.activation',
'jakarta.xml.bind',
Expand Down Expand Up @@ -210,7 +211,6 @@ ext.groups = [
'org.ow2.asm',
'org.ow2.asm',
'org.reactivestreams',
'org.robolectric',
'org.slf4j',
'org.sonatype.oss',
'org.testng',
Expand Down
3 changes: 3 additions & 0 deletions fastlane/metadata/android/cs-CZ/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Nový vzhled aplikace lze povolit v Experimentálních funkcích. Prosíme, vyzkoušejte ho!
Oprava problémů s chybějícími oznámeními a dlouhou přírůstkovou synchronizací.
Úplný seznam změn: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/de-DE/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Das neue App-Layout kann in den experimentellen Einstellungen aktiviert werden. Probier es gerne aus!
Fehler bzgl. ausbleibender Benachrichtigungen und langwierigem inkrementellem Synchronisieren behoben.
Vollständiges Änderungsprotokoll: https://github.com/vector-im/element-android/releases
2 changes: 1 addition & 1 deletion fastlane/metadata/android/de-DE/short_description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Gruppen-Messenger - verschlüsselte Kommunikation, Gruppenchat und Videoanrufe
Gruppen-Messenger verschlüsselte Kommunikation, Gruppen und Videoanrufe
2 changes: 1 addition & 1 deletion fastlane/metadata/android/de-DE/title.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Element - Sicherer Messenger
Element – Sicher kommunizieren
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/40105020.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Main changes in this version: New app layout enabled by default!
Full changelog: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/et/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Testide alt saad sisse lülitada uue kujunduse - palun proovi seda!
Parandasime teavitustega seotud vigu ning andmete sünkroniseerimist pika viitega.
Kogu ingliskeelne muudatuste logi: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/fa/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
چینش کارهٔ جدید می‌تواند در تنظیمات آزمایشگاه‌ها به کار بیفتند. لطفاً بیازماییدش!
رفع مشکلات مربوط به آگاهی غایب و همگام‌سازی تجمعّی طولانی.
گزارش دگرگونی کامل: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
La nouvelle présentation de l’application est disponibles dans les paramètres expérimentaux. Essayez-là !
Correction de problèmes sur les notifications manquantes, et la synchronisation incrémentale lente.
Intégralité des changements : https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/hu-HU/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Az új alkalmazás megjelenés a Laborokban bekapcsolható. Próbáld ki!
Hiányzó értesítések és hosszú inkrementális szinkronizáció javítása.
Teljes változásnapló: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/id/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Tata Letak Aplikasi Baru dapat diaktifkan di pengaturan Uji Coba. Cobalah!
Perbariki masalah tentang notifikasi hilang, dan penyinkronan inkremental panjang.
Catatan perubahan lanjutan: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/it-IT/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Nuova disposizione dell'app attivabile nelle impostazioni Laboratori. Provala!
Corretti problemi su notifiche mancanti e sincronizzazioni incrementali lunghe.
Cronologia completa: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/pt-BR/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Novo Layout de App poder ser habilitado nas configurações de Labs. Por favor dê uma chance!
Consertar problemas sobre notificação faltando, e sinc incremental longo.
Changelog completo: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/sk/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Nové usporiadanie aplikácie môžete povoliť v nastaveniach laboratórií. Vyskúšajte to!
Oprava problémov týkajúcich sa chýbajúcich oznámení a dlhej inkrementálnej synchronizácie.
Úplný zoznam zmien: https://github.com/vector-im/element-android/releases
3 changes: 3 additions & 0 deletions fastlane/metadata/android/uk/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Новий макет програми можна увімкнути в налаштуваннях лабораторії. Спробуйте!
Виправлено проблеми з відсутністю сповіщень та тривалою інкрементною синхронізацією.
Список усіх змін: https://github.com/vector-im/element-android/releases
2 changes: 1 addition & 1 deletion fastlane/metadata/android/uk/full_description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Element — це і безпечний месенджер, і застосуно
- Повністю зашифровані повідомлення для надання можливості безпечнішого корпоративного спілкування, навіть для віддалених працівників
- Децентралізований чат на основі відкритого коду Matrix
- Безпечний обмін файлами із зашифрованими даними для керування проєктами
- Відеочати з передачею голосу через IP та показом екрану іншим
- Відеочати з передачею голосу через IP та показом екрана іншим
- Проста інтеграція з вашими улюбленими інструментами для онлайн-співпраці, інструментами керування проєктами, послугами VoIP та іншими застосунками обміну повідомленнями для команд

Element цілковито відрізняється від інших застосунків обміну повідомленнями та спільної роботи. Він працює на Matrix, відкритій мережі для безпечного обміну повідомленнями та децентралізованого зв'язку. Це дозволяє самостійне розгортання, щоб надати користувачам якнайбільше володіння та контролю над їх даними та повідомленнями.
Expand Down
2 changes: 1 addition & 1 deletion fastlane/metadata/android/zh-CN/full_description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Element 透过不同的方式让你掌控一切:
你可以与 Matrix 网络上的任何人聊天,不论他们是使用 Element、其他 Matrix 应用或其他通讯应用。

<b>超级安全</b>
真正的端到端加密(仅有那些在对话中的可以解密讯息)以及交叉签章装置验证。
真正的端到端加密(仅有那些在对话中的人可以解密讯息)以及交叉签章装置验证。

<b>完整的通讯与整合</b>
信息传递、语音与视频通话、文件分享、画面分享与超多的整合、机器人与挂件。建构房间、社群、保持联络并完成工作。
Expand Down
2 changes: 1 addition & 1 deletion fastlane/metadata/android/zh-CN/short_description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
群组消息应用-加密的消息传递、群组聊天和视频通话
群组消息应用——加密的消息传递、群组聊天和视频通话
3 changes: 3 additions & 0 deletions fastlane/metadata/android/zh-TW/changelogs/40104360.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
新的應用程式佈局可在「實驗室」設定中啟用。請試試看!
修復關於遺失通知的問題,以及增量同步需要長時間的問題。
完整的變更紀錄:https://github.com/vector-im/element-android/releases
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ org.gradle.vfs.watch=true
org.gradle.caching=true

# Android Settings
android.enableJetifier=false
android.enableJetifier=true
android.jetifier.ignorelist=android-base-common,common
android.useAndroidX=true

#Project Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ object ImageUtils {
fun getBitmap(context: Context, uri: Uri): Bitmap? {
return try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
ImageDecoder.decodeBitmap(ImageDecoder.createSource(context.contentResolver, uri))
val source = ImageDecoder.createSource(context.contentResolver, uri)
val listener = ImageDecoder.OnHeaderDecodedListener { decoder, _, _ ->
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.P) {
// Allocating hardware bitmap may cause a crash on framework versions prior to Android Q
decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE
}
}

ImageDecoder.decodeBitmap(source, listener)
} else {
context.contentResolver.openInputStream(uri)?.use { inputStream ->
BitmapFactory.decodeStream(inputStream)
Expand Down
Loading

0 comments on commit f6411d6

Please sign in to comment.