Merge branch 'develop' into feature/fix_crash_notification
This commit is contained in:
commit
b8f66a36d5
@ -9,6 +9,7 @@ Improvements 🙌:
|
|||||||
|
|
||||||
Bugfix 🐛:
|
Bugfix 🐛:
|
||||||
- Fix crash when coming from a notification (#1601)
|
- Fix crash when coming from a notification (#1601)
|
||||||
|
- Fix Exception when importing keys (#1576)
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
16
matrix-sdk-android/proguard-rules.pro
vendored
16
matrix-sdk-android/proguard-rules.pro
vendored
@ -64,3 +64,19 @@
|
|||||||
|
|
||||||
### Webrtc
|
### Webrtc
|
||||||
-keep class org.webrtc.** { *; }
|
-keep class org.webrtc.** { *; }
|
||||||
|
|
||||||
|
### Serializable persisted classes
|
||||||
|
# https://www.guardsquare.com/en/products/proguard/manual/examples#serializable
|
||||||
|
-keepnames class * implements java.io.Serializable
|
||||||
|
|
||||||
|
-keepclassmembers class * implements java.io.Serializable {
|
||||||
|
static final long serialVersionUID;
|
||||||
|
private static final java.io.ObjectStreamField[] serialPersistentFields;
|
||||||
|
!static !transient <fields>;
|
||||||
|
!private <fields>;
|
||||||
|
!private <methods>;
|
||||||
|
private void writeObject(java.io.ObjectOutputStream);
|
||||||
|
private void readObject(java.io.ObjectInputStream);
|
||||||
|
java.lang.Object writeReplace();
|
||||||
|
java.lang.Object readResolve();
|
||||||
|
}
|
@ -176,13 +176,14 @@ internal class RealmCryptoStoreMigration @Inject constructor(private val crossSi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert MXOlmInboundGroupSession2 to OlmInboundGroupSessionWrapper2
|
// Convert MXOlmInboundGroupSession2 to OlmInboundGroupSessionWrapper
|
||||||
realm.schema.get("OlmInboundGroupSessionEntity")
|
realm.schema.get("OlmInboundGroupSessionEntity")
|
||||||
?.transform { obj ->
|
?.transform { obj ->
|
||||||
try {
|
try {
|
||||||
val oldSerializedData = obj.getString("olmInboundGroupSessionData")
|
val oldSerializedData = obj.getString("olmInboundGroupSessionData")
|
||||||
deserializeFromRealm<MXOlmInboundGroupSession2>(oldSerializedData)?.let { mxOlmInboundGroupSession2 ->
|
deserializeFromRealm<MXOlmInboundGroupSession2>(oldSerializedData)?.let { mxOlmInboundGroupSession2 ->
|
||||||
val newOlmInboundGroupSessionWrapper2 = OlmInboundGroupSessionWrapper2()
|
val sessionKey = mxOlmInboundGroupSession2.mSession.sessionIdentifier()
|
||||||
|
val newOlmInboundGroupSessionWrapper = OlmInboundGroupSessionWrapper(sessionKey, false)
|
||||||
.apply {
|
.apply {
|
||||||
olmInboundGroupSession = mxOlmInboundGroupSession2.mSession
|
olmInboundGroupSession = mxOlmInboundGroupSession2.mSession
|
||||||
roomId = mxOlmInboundGroupSession2.mRoomId
|
roomId = mxOlmInboundGroupSession2.mRoomId
|
||||||
@ -191,7 +192,7 @@ internal class RealmCryptoStoreMigration @Inject constructor(private val crossSi
|
|||||||
forwardingCurve25519KeyChain = mxOlmInboundGroupSession2.mForwardingCurve25519KeyChain
|
forwardingCurve25519KeyChain = mxOlmInboundGroupSession2.mForwardingCurve25519KeyChain
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.setString("olmInboundGroupSessionData", serializeForRealm(newOlmInboundGroupSessionWrapper2))
|
obj.setString("olmInboundGroupSessionData", serializeForRealm(newOlmInboundGroupSessionWrapper))
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Timber.e(e, "Error")
|
Timber.e(e, "Error")
|
||||||
|
5
vector/proguard-rules.pro
vendored
5
vector/proguard-rules.pro
vendored
@ -20,4 +20,7 @@
|
|||||||
# hide the original source file name.
|
# hide the original source file name.
|
||||||
#-renamesourcefileattribute SourceFile
|
#-renamesourcefileattribute SourceFile
|
||||||
|
|
||||||
-keep class im.vector.riotx.features.** { *; }
|
-keep class im.vector.riotx.features.** { *; }
|
||||||
|
|
||||||
|
## print all the rules in a file
|
||||||
|
# -printconfiguration ../proguard_files/full-r8-config.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user