-
Notifications
You must be signed in to change notification settings - Fork 782
Merging Element R in Element Android as a new flavor #7628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This updates the rust-sdk to support fallback keys, note that fallback keys are not yet uploaded, they just can be used when downloaded and info about the fallback keys coming from a sync can be passed to the rust side.
If there's an invalid user id that gets passed to the Rust side we're going to throw an error, this error doesn't tell us what is invalid nor what the string contained. Add the string that is being parsed to the error so that the log line becomes actionable.
…into rust_upstream_develop
Rust upstream develop
801a631
to
425cbc9
Compare
dependencies { | ||
implementation libs.jetbrains.coroutinesCore | ||
implementation libs.jetbrains.coroutinesAndroid | ||
|
||
|
||
// implementation(name: 'crypto-android-release', ext: 'aar') | ||
implementation 'net.java.dev.jna:jna:5.10.0@aar' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ A newer version of net.java.dev.jna:jna than 5.10.0 is available: 5.13.0⚠️ A newer version of net.java.dev.jna:jna than 5.10.0 is available: 5.13.0
@@ -121,6 +127,6 @@ internal class MegolmSessionDataImporter @Inject constructor( | |||
|
|||
Timber.tag(loggerTag.value).v("## importMegolmSessionsData : sessions import " + (t1 - t0) + " ms (" + megolmSessionsData.size + " sessions)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Replace String concatenation with Timber's string formatting⚠️ Replace String concatenation with Timber's string formatting
@@ -127,32 +125,34 @@ class DevicesViewModelTest { | |||
} | |||
|
|||
@Test | |||
@Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation
} | ||
|
||
@Test | ||
@Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation
@@ -107,36 +105,38 @@ class OtherSessionsViewModelTest { | |||
} | |||
|
|||
@Test | |||
@Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation
} | ||
|
||
@Test | ||
@Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation
} | ||
} | ||
|
||
@Test | ||
@Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation⚠️ Test is ignored without giving any explanation
SonarCloud Quality Gate failed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, let's merge this big PR now that we have just issued a release.
Type of change
Content
Integration of the rust crypto crate in Element Android.
Currently it's a bit hard to extract a clean crypto-backend API that could be implemented in rust or kotlin.
As a first step and to avoid disruption on the kotlin side, the code is separated as different source sets
Task:
Create a new flavor dimension for rust vs kotlin
Suspendable Verification:
Fix unit tests
Rust parity
Clear various debug/dev logs (VALR.., ##)
...
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist