Skip to content

Commit 8dcb5f7

Browse files
author
ganfra
committed
Merge branch 'release/1.5.32' into main
2 parents 0b09a51 + ca849e4 commit 8dcb5f7

File tree

33 files changed

+223
-104
lines changed

33 files changed

+223
-104
lines changed

.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.2.4
14+
uses: danger/danger-js@11.2.6
1515
with:
1616
args: "--dangerfile ./tools/danger/dangerfile.js"
1717
env:

.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/danger-js@11.2.4
69+
uses: danger/danger-js@11.2.6
7070
with:
7171
args: "--dangerfile ./tools/danger/dangerfile-lint.js"
7272
env:

.github/workflows/sync-from-external-sources.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Run Emoji script
2424
run: ./tools/import_emojis.py
2525
- name: Create Pull Request for Emojis
26-
uses: peter-evans/create-pull-request@v4
26+
uses: peter-evans/create-pull-request@v5
2727
with:
2828
commit-message: Sync Emojis
2929
title: Sync Emojis
@@ -49,7 +49,7 @@ jobs:
4949
- name: Run SAS String script
5050
run: ./tools/import_sas_strings.py
5151
- name: Create Pull Request for SAS Strings
52-
uses: peter-evans/create-pull-request@v4
52+
uses: peter-evans/create-pull-request@v5
5353
with:
5454
commit-message: Sync SAS Strings
5555
title: Sync SAS Strings
@@ -68,7 +68,7 @@ jobs:
6868
- name: Run analytics import script
6969
run: ./tools/import_analytic_plan.sh
7070
- name: Create Pull Request for analytics plan
71-
uses: peter-evans/create-pull-request@v4
71+
uses: peter-evans/create-pull-request@v5
7272
with:
7373
commit-message: Sync analytics plan
7474
title: Sync analytics plan

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
Changes in Element v1.5.32 (2023-04-19)
2+
=======================================
3+
4+
Bugfixes 🐛
5+
----------
6+
- Fix multiple read receipts for the same user in timeline. ([#7882](https://github.com/vector-im/element-android/issues/7882))
7+
- The new permalink rendering is not applied on permalink created with the potential clientPermalinkBaseUrl ([#8307](https://github.com/vector-im/element-android/issues/8307))
8+
- Keep screen on while recording voicebroadcast ([#8313](https://github.com/vector-im/element-android/issues/8313))
9+
10+
111
Changes in Element v1.5.30 (2023-04-05)
212
=======================================
313

dependencies.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def markwon = "4.6.2"
1818
def moshi = "1.14.0"
1919
def lifecycle = "2.5.1"
2020
def flowBinding = "1.2.0"
21-
def flipper = "0.188.0"
21+
def flipper = "0.189.0"
2222
def epoxy = "5.0.0"
2323
def mavericks = "3.0.2"
2424
def glide = "4.15.1"
@@ -27,7 +27,7 @@ def jjwt = "0.11.5"
2727
def vanniktechEmoji = "0.16.0"
2828
def sentry = "6.17.0"
2929
// Use 1.6.0 alpha to fix issue with test
30-
def fragment = "1.6.0-alpha08"
30+
def fragment = "1.6.0-alpha09"
3131
// Testing
3232
def mockk = "1.12.3" // We need to use 1.12.3 to have mocking in androidTest until a new version is released: https://github.com/mockk/mockk/issues/819
3333
def espresso = "3.5.1"
@@ -50,14 +50,14 @@ ext.libs = [
5050
'activity' : "androidx.activity:activity-ktx:1.7.0",
5151
'appCompat' : "androidx.appcompat:appcompat:1.6.1",
5252
'biometric' : "androidx.biometric:biometric:1.1.0",
53-
'core' : "androidx.core:core-ktx:1.9.0",
53+
'core' : "androidx.core:core-ktx:1.10.0",
5454
'recyclerview' : "androidx.recyclerview:recyclerview:1.3.0",
5555
'exifinterface' : "androidx.exifinterface:exifinterface:1.3.6",
5656
'fragmentKtx' : "androidx.fragment:fragment-ktx:$fragment",
5757
'fragmentTesting' : "androidx.fragment:fragment-testing:$fragment",
5858
'fragmentTestingManifest' : "androidx.fragment:fragment-testing-manifest:$fragment",
5959
'constraintLayout' : "androidx.constraintlayout:constraintlayout:2.1.4",
60-
'work' : "androidx.work:work-runtime-ktx:2.8.0",
60+
'work' : "androidx.work:work-runtime-ktx:2.8.1",
6161
'autoFill' : "androidx.autofill:autofill:1.1.0",
6262
'preferenceKtx' : "androidx.preference:preference-ktx:1.2.0",
6363
'junit' : "androidx.test.ext:junit:1.1.5",
@@ -86,7 +86,7 @@ ext.libs = [
8686
'appdistributionApi' : "com.google.firebase:firebase-appdistribution-api-ktx:$appDistribution",
8787
'appdistribution' : "com.google.firebase:firebase-appdistribution:$appDistribution",
8888
// Phone number https://github.com/google/libphonenumber
89-
'phonenumber' : "com.googlecode.libphonenumber:libphonenumber:8.13.8"
89+
'phonenumber' : "com.googlecode.libphonenumber:libphonenumber:8.13.10"
9090
],
9191
dagger : [
9292
'dagger' : "com.google.dagger:dagger:$dagger",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Main changes in this version: Mainly bugfixing.
2+
Full changelog: https://github.com/vector-im/element-android/releases

matrix-sdk-android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ android {
6262
// that the app's state is completely cleared between tests.
6363
testInstrumentationRunnerArguments clearPackageData: 'true'
6464

65-
buildConfigField "String", "SDK_VERSION", "\"1.5.30\""
65+
buildConfigField "String", "SDK_VERSION", "\"1.5.32\""
6666

6767
buildConfigField "String", "GIT_SDK_REVISION", "\"${gitRevision()}\""
6868
buildConfigField "String", "GIT_SDK_REVISION_UNIX_DATE", "\"${gitRevisionUnixDate()}\""

matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/session/room/send/TestPermalinkService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@ class TestPermalinkService : PermalinkService {
4848
MARKDOWN -> "[%2\$s](https://matrix.to/#/%1\$s)"
4949
}
5050
}
51+
52+
override fun isPermalinkSupported(supportedHosts: Array<String>, url: String): Boolean {
53+
return false
54+
}
5155
}

matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/MatrixPatterns.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object MatrixPatterns {
6262
// regex pattern to find permalink with message id.
6363
// Android does not support in URL so extract it.
6464
private const val PERMALINK_BASE_REGEX = "https://matrix\\.to/#/"
65-
private const val APP_BASE_REGEX = "https://[A-Z0-9.-]+\\.[A-Z]{2,}/[A-Z]{3,}/#/room/"
65+
private const val APP_BASE_REGEX = "https://[A-Z0-9.-]+\\.[A-Z]{2,}/#/(room|user)/"
6666
const val SEP_REGEX = "/"
6767

6868
private val PATTERN_CONTAIN_MATRIX_TO_PERMALINK = PERMALINK_BASE_REGEX.toRegex(RegexOption.IGNORE_CASE)

matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/PermalinkService.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,15 @@ interface PermalinkService {
9797
* @return the created template
9898
*/
9999
fun createMentionSpanTemplate(type: SpanTemplateType, forceMatrixTo: Boolean = false): String
100+
101+
/**
102+
* Check if the url is a permalink. It must be a matrix.to link
103+
* or a link with host provided by the string-array `permalink_supported_hosts` in the config file
104+
*
105+
* @param supportedHosts the list of hosts supported for permalinks
106+
* @param url the link to check, Ex: "https://matrix.to/#/@benoit:matrix.org"
107+
*
108+
* @return true when url is a permalink
109+
*/
110+
fun isPermalinkSupported(supportedHosts: Array<String>, url: String): Boolean
100111
}

0 commit comments

Comments
 (0)