Commit graph

18 commits

Author SHA1 Message Date
Andy Balaam
350d8bc61f
Fix a missing : in build-rust-sdk (#6522)
This prevented us providing a build target argument.
2026-04-03 11:41:57 +02:00
Benjamin Bouvier
ef041baeb4
chore: update the build-rust-sdk script (#6476) 2026-03-27 07:36:48 +01:00
renovate[bot]
0c8a01d2cf
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v26.03.19 (#6411)
* fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v26.03.18

* Fix API breaks

* Add compatibility with rustls (#6367)

A new `rustls-platform-verifier-android` library has to be added to the project, it'll be called from Rust to get access to the certificates on Android.

Originally, this was supposed to be added as a local maven repo pointing to the rust crate that publishes the AAR, but that's just plain terrible (more details [here](https://github.com/rustls/rustls-platform-verifier#android).

Instead, what we can do is use a script that uses `cargo-download` to download the latest crate or a specified version, unzip it and add the `aar` file to the `:libraries:matrix:impl` module.

* Try fixing Sonar with local AAR files

* Remove `UserCertificatesProvider`: this is no longer needed after integrating rustls

* Added some docs for rustls and its `platform-verifier` library

* Upgrade SDK to `26.03.19`: this version contains a workaround that allows the app to use the same TLS verifier as before, fixing the Let's Encrypt issues we saw with some homeservers (like element.io)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2026-03-20 16:20:37 +01:00
Andy Balaam
a877e9f054 Adjust the build-rust-sdk script to allow non-interactive use 2026-03-04 15:35:43 +00:00
Benoit Marty
eb31505dc7 Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
Benoit Marty
f86431e663 Copyright: Add final period 2025-11-10 10:13:41 +01:00
Benoit Marty
97f3be3dc5 Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Richard van der Hoff
56a5f55e18 Handle uname -m returning arm64 2024-12-11 22:29:35 +00:00
Richard van der Hoff
3e58c7aafd Build SDK for the local hardware
It's likely that you want to build the SDK to run on the emulator on your
machine, so let's default to that, rather than aarch64.
2024-12-11 18:03:09 +00:00
Jorge Martín
52a08a37cb When building a snapshot of the SDK bindings, don't build the app by default too 2024-10-25 15:57:20 +02:00
Benoit Marty
0c414bdce4 Add missing license header on shell files. 2024-09-06 17:48:14 +02:00
Erik Johnston
20d02785f9
Fix build_rust_sdk.sh script to work on linux (#3291)
A few linux distributions don't have `gdate`, but I think they should
all have `date`.
2024-08-09 16:04:49 +02:00
Benoit Marty
31cfae0578 Run shellcheck autofix. 2024-06-11 15:27:02 +02:00
Hugh Nimmo-Smith
fd54aeb653 Escape paths in build_rust_sdk script 2024-05-01 10:04:36 +01:00
Benoit Marty
88f2ff3975 Fix script to work when SDK is located anywhere. 2023-12-13 18:02:06 +01:00
Benoit Marty
12f5ee5b1b Fix small issue in the script. 2023-10-20 10:52:13 +02:00
Benoit Marty
21e24990c4 Improve and fix build_rust_sdk.sh after PR review 2023-10-16 18:29:25 +02:00
Benoit Marty
9d0cfd903d Add script to build the rustSdk 2023-10-16 13:31:26 +02:00