Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 35626cc

Browse files
committed
Merge branch 'release/0.9.7'
2 parents a313527 + 5a4ade4 commit 35626cc

File tree

125 files changed

+4922
-788
lines changed

Some content is hidden

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

125 files changed

+4922
-788
lines changed

.buildkite/pipeline.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ steps:
99
agents:
1010
# We use a medium sized instance instead of the normal small ones because
1111
# gradle build is long
12-
queue: "medium"
12+
queue: "xlarge"
1313
commands:
1414
- "./set_debug_env.sh"
15-
- "./gradlew clean lintAppRelease assembleAppDebug --stacktrace"
15+
- "./gradlew --no-daemon clean lintAppRelease assembleAppDebug --stacktrace"
1616
artifact_paths:
1717
- "vector/build/outputs/apk/app/debug/*.apk"
1818
branches: "develop feature/*"
@@ -24,10 +24,10 @@ steps:
2424
agents:
2525
# We use a medium sized instance instead of the normal small ones because
2626
# gradle build is long
27-
queue: "medium"
27+
queue: "xlarge"
2828
commands:
2929
- "./set_debug_env.sh"
30-
- "./gradlew clean lintAppfdroidRelease assembleAppfdroidDebug --stacktrace"
30+
- "./gradlew --no-daemon clean lintAppfdroidRelease assembleAppfdroidDebug --stacktrace"
3131
artifact_paths:
3232
- "vector/build/outputs/apk/appfdroid/debug/*.apk"
3333
branches: "develop feature/*"
@@ -39,9 +39,9 @@ steps:
3939
agents:
4040
# We use a medium sized instance instead of the normal small ones because
4141
# gradle build is long
42-
queue: "medium"
42+
queue: "xlarge"
4343
commands:
44-
- "./gradlew clean assembleAppRelease --stacktrace"
44+
- "./gradlew --no-daemon clean assembleAppRelease --stacktrace"
4545
artifact_paths:
4646
- "vector/build/outputs/apk/app/release/*.apk"
4747
branches: "master"
@@ -52,4 +52,5 @@ steps:
5252
# Code quality
5353

5454
- label: "Code quality"
55-
command: "./tools/check/check_code_quality.sh"
55+
commands:
56+
- "./tools/check/check_code_quality.sh"

CHANGES.rst

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
Changes in Riot 0.9.7 (2019-10-07)
2+
===================================================
3+
4+
MatrixSdk:
5+
- Upgrade MatrixSdk to version 0.9.29.
6+
- Changelog: https://github.com/matrix-org/matrix-android-sdk/releases/tag/v0.9.29
7+
8+
Features:
9+
- Privacy: Use the hashed v2 lookup API for 3PIDs (#3257)
10+
- Privacy: Prompt to accept identity server policies before inviting them to a room (#3227)
11+
- Privacy: Make clear that device names are publicly readable (#3265)
12+
- Privacy: Email help text on registration should be updated without binding (#3278)
13+
- Privacy: Use wellknown to discover the IS of a HS (#3283)
14+
- Privacy: Remove the bind true flag from 3PID adds in settings (#3254)
15+
- Privacy: Remove the ability to set an IS at login/registration (#3264)
16+
- Privacy: Allow password reset when no IS (#3261)
17+
- Privacy: Allow email registration when no IS (#3260)
18+
- Privacy: Separate Add and Bind for 3PID (#3300)
19+
20+
Improvements:
21+
- Notification [Fdroid] Add a new mode for notification (#3122)
22+
23+
Other changes:
24+
- Widgets: Whitelist [MSC1961](https://github.com/matrix-org/matrix-doc/pull/1961) widget urls
25+
- Privacy: Remove the bind true flag from 3PID calls on registration (#3252)
26+
27+
Bugfix:
28+
- Fix reset password broken UI (#3125)
29+
- Execute 1 request instead of 2 for 3Pid lookup (#3344)
30+
131
Changes in Riot 0.9.6 (2019-09-13)
232
===================================================
333

@@ -1422,25 +1452,25 @@ Changes in Vector 0.2.0 (2016-04-14)
14221452
Changes in Riot 0.9.XX (2019-XX-XX)
14231453
===================================================
14241454

1425-
MatrixSdk:
1455+
MatrixSdk 🚀:
14261456
- Upgrade MatrixSdk to version 0.X.Y.
14271457
- Changelog: https://github.com/matrix-org/matrix-android-sdk/releases/tag/v0.X.Y
14281458

1429-
Features:
1459+
Features:
14301460
-
14311461

1432-
Improvements:
1462+
Improvements 🙌:
14331463
-
14341464

14351465
Other changes:
14361466
-
14371467

1438-
Bugfix:
1468+
Bug fixes 🐛:
14391469
-
14401470

1441-
Translations:
1471+
Translations 🗣:
14421472
-
14431473

1444-
Build:
1474+
Build 🧱:
14451475
-
14461476

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ buildscript {
2323

2424
// global properties used in sub modules
2525
ext {
26-
versionCodeProp = 90600
27-
versionNameProp = "0.9.6"
26+
versionCodeProp = 90700
27+
versionNameProp = "0.9.7-dev"
2828
versionBuild = System.getenv("BUILD_NUMBER") as Integer ?: 0
2929
buildNumberProp = "${versionBuild}"
3030
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13-
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
13+
# org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
1414

1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip

vector/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ android {
9595

9696
buildTypes {
9797
debug {
98+
9899
resValue "bool", "debug_mode", "true"
99100
resValue "string", "git_revision", "\"${gitRevision()}\""
100101
resValue "string", "git_revision_date", "\"${gitRevisionDate()}\""
@@ -215,6 +216,7 @@ dependencies {
215216

216217
// Epoxy
217218
implementation 'com.airbnb.android:epoxy:3.7.0'
219+
implementation 'com.airbnb.android:mvrx:1.0.1'
218220
kapt 'com.airbnb.android:epoxy-processor:3.7.0'
219221

220222
// Network
@@ -243,7 +245,7 @@ dependencies {
243245
/************* Matrix SDK management **************/
244246
// update settings.gradle
245247
// use the matrix SDK as external dependency
246-
implementation 'com.github.matrix-org:matrix-android-sdk:v0.9.27'
248+
implementation 'com.github.matrix-org:matrix-android-sdk:v0.9.29'
247249
// use the matrix SDK as a sub project
248250
// you have to uncomment some lines in settings.gradle
249251
//implementation project(':matrix-sdk')
@@ -260,7 +262,7 @@ dependencies {
260262
/************* flavors management **************/
261263

262264
// app flavor only
263-
appImplementation('com.google.firebase:firebase-messaging:17.4.0') {
265+
appImplementation('com.google.firebase:firebase-messaging:20.0.0') {
264266
exclude group: 'com.google.firebase', module: 'firebase-core'
265267
exclude group: 'com.google.firebase', module: 'firebase-analytics'
266268
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'

vector/src/app/java/im/vector/push/fcm/VectorFirebaseMessagingService.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,8 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() {
5959
*
6060
* @param message the message
6161
*/
62-
override fun onMessageReceived(message: RemoteMessage?) {
63-
if (message == null || message.data == null) {
64-
Log.e(LOG_TAG, "## onMessageReceived() : received a null message or message with no data")
65-
return
66-
}
62+
override fun onMessageReceived(message: RemoteMessage) {
63+
6764
if (BuildConfig.LOW_PRIVACY_LOG_ENABLE) {
6865
Log.i(LOG_TAG, "## onMessageReceived()" + message.data.toString())
6966
Log.i(LOG_TAG, "## onMessageReceived() from FCM with priority " + message.priority)
@@ -86,7 +83,7 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() {
8683
* when the InstanceID token is initially generated, so this is where
8784
* you retrieve the token.
8885
*/
89-
override fun onNewToken(refreshedToken: String?) {
86+
override fun onNewToken(refreshedToken: String) {
9087
Log.i(LOG_TAG, "onNewToken: FCM Token has been updated")
9188
FcmHelper.storeFcmToken(this, refreshedToken)
9289
Matrix.getInstance(this)?.pushManager?.resetFCMRegistration(refreshedToken)

vector/src/appfdroid/java/im/vector/receiver/OnApplicationUpgradeReceiver.java renamed to vector/src/appfdroid/java/im/vector/receiver/OnApplicationUpgradeReceiver.kt

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,22 @@
1414
* limitations under the License.
1515
*/
1616

17-
package im.vector.receiver;
17+
package im.vector.receiver
1818

19-
import android.content.BroadcastReceiver;
20-
import android.content.Context;
21-
import android.content.Intent;
19+
import android.content.BroadcastReceiver
20+
import android.content.Context
21+
import android.content.Intent
22+
import im.vector.services.EventStreamServiceX
23+
import org.matrix.androidsdk.core.Log
2224

23-
import org.matrix.androidsdk.core.Log;
25+
class OnApplicationUpgradeReceiver : BroadcastReceiver() {
2426

25-
import im.vector.services.EventStreamServiceX;
26-
27-
public class OnApplicationUpgradeReceiver extends BroadcastReceiver {
28-
29-
private static final String LOG_TAG = OnApplicationUpgradeReceiver.class.getSimpleName();
30-
31-
@Override
32-
public void onReceive(Context context, Intent intent) {
33-
Log.d(LOG_TAG, "## onReceive() : Application has been upgraded, restart event stream service.");
27+
override fun onReceive(context: Context, intent: Intent) {
28+
Log.d(LOG_TAG, "## onReceive() : Application has been upgraded, restart event stream service.")
29+
EventStreamServiceX.onApplicationUpgrade(context)
30+
}
3431

35-
// Start Event stream
36-
EventStreamServiceX.Companion.onApplicationUpgrade(context);
32+
companion object {
33+
private val LOG_TAG = OnApplicationUpgradeReceiver::class.java.simpleName
3734
}
3835
}

vector/src/main/java/im/vector/LoginHandler.java

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,23 @@ public void submitEmailTokenValidation(final Context aCtx,
214214
final String aClientSecret,
215215
final String aSid,
216216
final ApiCallback<Boolean> aRespCallback) {
217-
final ThreePid pid = new ThreePid(null, ThreePid.MEDIUM_EMAIL);
218217
ThirdPidRestClient restClient = new ThirdPidRestClient(aHomeServerConfig);
219218

220-
pid.submitValidationToken(restClient, aToken, aClientSecret, aSid, new UnrecognizedCertApiCallback<Boolean>(aHomeServerConfig, aRespCallback) {
221-
@Override
222-
public void onSuccess(Boolean info) {
223-
aRespCallback.onSuccess(info);
224-
}
225-
226-
@Override
227-
public void onAcceptedCert() {
228-
submitEmailTokenValidation(aCtx, aHomeServerConfig, aToken, aClientSecret, aSid, aRespCallback);
229-
}
230-
});
219+
restClient.submitValidationToken(
220+
ThreePid.MEDIUM_EMAIL,
221+
aToken,
222+
aClientSecret,
223+
aSid,
224+
new UnrecognizedCertApiCallback<Boolean>(aHomeServerConfig, aRespCallback) {
225+
@Override
226+
public void onSuccess(Boolean info) {
227+
aRespCallback.onSuccess(info);
228+
}
229+
230+
@Override
231+
public void onAcceptedCert() {
232+
submitEmailTokenValidation(aCtx, aHomeServerConfig, aToken, aClientSecret, aSid, aRespCallback);
233+
}
234+
});
231235
}
232236
}

0 commit comments

Comments
 (0)