Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/0.9.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Feb 21, 2019
2 parents 6417d3f + 4b3d651 commit e1cd00e
Show file tree
Hide file tree
Showing 50 changed files with 1,617 additions and 301 deletions.
26 changes: 24 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
Changes to Matrix Android SDK in 0.9.16 (2018-02-01)
Changes to Matrix Android SDK in 0.9.17 (2019-02-21)
=======================================================

Features:
- Ensure Room V3 eventId format is supported.

Improvements:
- Crypto: Cancel share request on restore/import (vector-im/riot-android#2928).
- CreateRoomParams: add `powerLevelContentOverride` param to override the default power level event.
- KeysBackup: Declare backup trust using new `PUT /room_keys/version/{version}` API (vector-im/riot-android#2921).

Bugfix:
- Fix DataSaveMode issue in filter
- CreateRoomParams - setHistoryVisibility: remove existing value if any.
- Fix issue in Japanese translation (#423)

Others:
- Create a RealmCryptoStoreModule to allow clients of the Matrix SDK to use Realm

Build:
- Enforce lint rules check

Changes to Matrix Android SDK in 0.9.16 beta (2019-02-01)
=======================================================

Improvements:
Expand Down Expand Up @@ -1413,7 +1435,7 @@ Features:
=======================================================


Changes to Matrix Android SDK in 0.9.X (2018-XX-XX)
Changes to Matrix Android SDK in 0.9.X (2019-XX-XX)
=======================================================

Features:
Expand Down
26 changes: 21 additions & 5 deletions matrix-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 916
versionName "0.9.16"
versionCode 917
versionName "0.9.17"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand Down Expand Up @@ -98,18 +98,34 @@ android {


lintOptions {
disable 'InvalidPackage'
disable 'MissingTranslation'
disable 'RestrictedApi'
warning 'MissingTranslation'

// Treat some warnings as errors
// Resources
error 'TypographyEllipsis'
warning 'ImpliedQuantity'

// UX
error 'ButtonOrder'

// Layout
error 'StringFormatCount'
error 'HardcodedText'
error 'SpUsage'
error 'ObsoleteLayoutParam'
error 'InefficientWeight'
error 'DisableBaselineAlignment'
error 'ScrollViewSize'

// RTL
error 'RtlEnabled'
error 'RtlHardcoded'
error 'RtlSymmetry'

// Code
error 'SetTextI18n'
error 'ViewConstructor'
error 'UseValueOf'
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@file:Suppress("DEPRECATION")

package org.matrix.androidsdk.crypto

import android.support.test.InstrumentationRegistry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@file:Suppress("DEPRECATION")

package org.matrix.androidsdk.crypto

import android.support.test.InstrumentationRegistry
Expand Down Expand Up @@ -129,8 +131,11 @@ class CryptoStoreImportationTest {
fun test_importationOutgoingRoomKeyRequest() {
val request = OutgoingRoomKeyRequest(
// Request body
HashMap<String, String>().apply {
put("key", "value")
RoomKeyRequestBody().apply {
algorithm = "algorithm"
roomId = "roomId"
senderKey = "senderKey"
sessionId = "sessionId"
},
// Recipients
ArrayList<Map<String, String>>().apply {
Expand All @@ -153,7 +158,10 @@ class CryptoStoreImportationTest {

assertNotNull(requestFromRealm)

assertEquals("value", requestFromRealm!!.mRequestBody["key"])
assertEquals("algorithm", requestFromRealm!!.mRequestBody.algorithm)
assertEquals("roomId", requestFromRealm.mRequestBody.roomId)
assertEquals("senderKey", requestFromRealm.mRequestBody.senderKey)
assertEquals("sessionId", requestFromRealm.mRequestBody.sessionId)
assertEquals("recipientsValue", requestFromRealm.mRecipients[0]["recipient"])
assertEquals("RequestId", requestFromRealm.mRequestId)
assertEquals(OutgoingRoomKeyRequest.RequestState.CANCELLATION_PENDING_AND_WILL_RESEND, requestFromRealm.mState)
Expand All @@ -169,9 +177,9 @@ class CryptoStoreImportationTest {
mRequestId = "RequestId"
mRequestBody = RoomKeyRequestBody().apply {
algorithm = "Algo"
room_id = "RoomId"
sender_key = "SenderKey"
session_id = "SessionId"
roomId = "RoomId"
senderKey = "SenderKey"
sessionId = "SessionId"
}
}

Expand All @@ -188,9 +196,9 @@ class CryptoStoreImportationTest {
assertEquals("DeviceId", requestFromRealm.mDeviceId)
assertEquals("RequestId", requestFromRealm.mRequestId)
assertEquals("Algo", requestFromRealm.mRequestBody.algorithm)
assertEquals("RoomId", requestFromRealm.mRequestBody.room_id)
assertEquals("SenderKey", requestFromRealm.mRequestBody.sender_key)
assertEquals("SessionId", requestFromRealm.mRequestBody.session_id)
assertEquals("RoomId", requestFromRealm.mRequestBody.roomId)
assertEquals("SenderKey", requestFromRealm.mRequestBody.senderKey)
assertEquals("SessionId", requestFromRealm.mRequestBody.sessionId)
})
}

Expand Down
Loading

0 comments on commit e1cd00e

Please sign in to comment.