Merge pull request #5620 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-25.x
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.10.28
This commit is contained in:
commit
09552cb20d
6 changed files with 21 additions and 11 deletions
|
|
@ -171,7 +171,7 @@ test_detekt_test = { module = "io.gitlab.arturbosch.detekt:detekt-test", version
|
||||||
# https://github.com/matrix-org/matrix-rust-components-kotlin/commits/main/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt
|
# https://github.com/matrix-org/matrix-rust-components-kotlin/commits/main/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt
|
||||||
# All new features should not be implemented in the pull request that upgrades the version, developers should
|
# All new features should not be implemented in the pull request that upgrades the version, developers should
|
||||||
# only fix API breaks and may add some TODOs.
|
# only fix API breaks and may add some TODOs.
|
||||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.10.13"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.10.28"
|
||||||
|
|
||||||
# Others
|
# Others
|
||||||
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,6 @@ sealed class QrLoginException : Exception() {
|
||||||
data object SlidingSyncNotAvailable : QrLoginException()
|
data object SlidingSyncNotAvailable : QrLoginException()
|
||||||
data object OtherDeviceNotSignedIn : QrLoginException()
|
data object OtherDeviceNotSignedIn : QrLoginException()
|
||||||
data object Unknown : QrLoginException()
|
data object Unknown : QrLoginException()
|
||||||
|
data object CheckCodeAlreadySent : QrLoginException()
|
||||||
|
data object CheckCodeCannotBeSent : QrLoginException()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -289,10 +289,13 @@ class RustMatrixAuthenticationService(
|
||||||
qrCodeData = sdkQrCodeLoginData,
|
qrCodeData = sdkQrCodeLoginData,
|
||||||
)
|
)
|
||||||
client.loginWithQrCode(
|
client.loginWithQrCode(
|
||||||
qrCodeData = qrCodeData.rustQrCodeData,
|
|
||||||
oidcConfiguration = oidcConfiguration,
|
oidcConfiguration = oidcConfiguration,
|
||||||
progressListener = progressListener,
|
).use {
|
||||||
)
|
it.scan(
|
||||||
|
qrCodeData = qrCodeData.rustQrCodeData,
|
||||||
|
progressListener = progressListener,
|
||||||
|
)
|
||||||
|
}
|
||||||
// Ensure that the user is not already logged in with the same account
|
// Ensure that the user is not already logged in with the same account
|
||||||
ensureNotAlreadyLoggedIn(client)
|
ensureNotAlreadyLoggedIn(client)
|
||||||
val sessionData = client.session()
|
val sessionData = client.session()
|
||||||
|
|
|
||||||
|
|
@ -42,5 +42,7 @@ object QrErrorMapper {
|
||||||
is RustHumanQrLoginException.Unknown -> QrLoginException.Unknown
|
is RustHumanQrLoginException.Unknown -> QrLoginException.Unknown
|
||||||
is RustHumanQrLoginException.OidcMetadataInvalid -> QrLoginException.OidcMetadataInvalid
|
is RustHumanQrLoginException.OidcMetadataInvalid -> QrLoginException.OidcMetadataInvalid
|
||||||
is RustHumanQrLoginException.SlidingSyncNotAvailable -> QrLoginException.SlidingSyncNotAvailable
|
is RustHumanQrLoginException.SlidingSyncNotAvailable -> QrLoginException.SlidingSyncNotAvailable
|
||||||
|
is RustHumanQrLoginException.CheckCodeAlreadySent -> QrLoginException.CheckCodeAlreadySent
|
||||||
|
is RustHumanQrLoginException.CheckCodeCannotBeSent -> QrLoginException.CheckCodeCannotBeSent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,9 @@ internal fun ComposerDraft.into(): RustComposerDraft {
|
||||||
return RustComposerDraft(
|
return RustComposerDraft(
|
||||||
plainText = plainText,
|
plainText = plainText,
|
||||||
htmlText = htmlText,
|
htmlText = htmlText,
|
||||||
draftType = draftType.into()
|
draftType = draftType.into(),
|
||||||
|
// TODO add media attachments to the draft
|
||||||
|
attachments = emptyList(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,9 @@
|
||||||
* Please see LICENSE files in the repository root for full details.
|
* Please see LICENSE files in the repository root for full details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.net.URI
|
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
includeBuild("plugins")
|
includeBuild("plugins")
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
@ -18,14 +16,17 @@ pluginManagement {
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
maven {
|
maven {
|
||||||
url = URI("https://www.jitpack.io")
|
url = uri("https://www.jitpack.io")
|
||||||
content {
|
content {
|
||||||
includeModule("com.github.matrix-org", "matrix-analytics-events")
|
includeModule("com.github.matrix-org", "matrix-analytics-events")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
url = uri("https://repo1.maven.org/maven2/")
|
||||||
|
}
|
||||||
flatDir {
|
flatDir {
|
||||||
dirs("libraries/matrix/libs")
|
dirs("libraries/matrix/libs")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue